Method: projects.locations.applications.instances.list

列出给定项目和位置中的实例。

HTTP 请求

GET https://{endpoint}/v1/{parent=projects/*/locations/*/applications/*}/instances

其中 {endpoint}受支持的服务端点之一。

网址使用 gRPC 转码语法。

路径参数

参数
parent

string

必需。ListInstancesRequest 的父级值。

查询参数

参数
pageSize

integer

请求的页面大小。 服务器返回的项可能要比请求的少。如果未指定,服务器会选择相应的默认值。

pageToken

string

标识服务器应返回的结果页面的令牌。

filter

string

过滤结果。

orderBy

string

有关如何对结果进行排序的提示。

请求正文

请求正文必须为空。

响应正文

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

对列出实例的响应消息。

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

object (Instance)

实例列表。

nextPageToken

string

标识服务器应返回的结果页面的令牌。

unreachable[]

string

无法到达的位置。

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅身份验证概览