Method: projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs

vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs 会返回适用于指定项目的所有组织级 VPC 流日志配置的列表。

HTTP 请求

GET https://networkmanagement.googleapis.com/v1beta1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。VpcFlowLogsConfig 的父资源,采用以下格式指定:projects/{projectId}/locations/global

必须对指定的资源 parent 具有以下 IAM 权限才能进行授权:

  • networkmanagement.vpcflowlogsconfigs.list

查询参数

参数
pageSize

integer

可选。要返回的 VpcFlowLogsConfigs 的数量。

pageToken

string

可选。来自先前的查询的页面令牌,如 nextPageToken 中返回的页面令牌。

filter

string

可选。列出与过滤条件表达式匹配的 VpcFlowLogsConfigs。过滤表达式必须使用受支持的 CEL 逻辑运算符

请求正文

请求正文必须为空。

响应正文

QueryVpcFlowLogsConfigs 方法的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "vpcFlowLogsConfigs": [
    {
      object (VpcFlowLogsConfig)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
字段
vpcFlowLogsConfigs[]

object (VpcFlowLogsConfig)

VPC 流日志配置的列表。

nextPageToken

string

用于提取下一组配置的页面令牌。

unreachable[]

string

无法到达的位置(使用 - 查询所有位置时)。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview