Method: projects.locations.indexEndpoints.list

列出项目中的所有 IndexEndpoint。

HTTP 请求

GET https://visionai.googleapis.com/v1/{parent=projects/*/locations/*}/indexEndpoints

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。格式:projects/{project}/locations/{location}

查询参数

参数
pageSize

integer

可选。请求的页面大小。 服务器返回的项可能要比请求的少。服务返回的值可能小于此值。如果未指定,则使用每页 50 个数据的大小。最大值为 1,000;大于 1,000 的值将被强制转换为 1,000。

pageToken

string

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

filter

string

可选。应用于返回列表的过滤条件。我们仅支持对 deployedImageIndex.image_index 字段进行过滤。不过,如需按语料库(而非图片索引)进行过滤,只需使用 deployedImageIndex.corpus 即可,它会返回给定语料库中包含 deployedImageIndex.image_index 的所有端点。针对图像索引的基本过滤器如下所示:deployedImageIndex.image_index = "projects/123/locations/us-central1/corpora/my_corpus/imageIndexes/my_image_index";针对语料库的基本过滤器如下所示:deployedImageIndex.corpus = "projects/123/locations/us-central1/corpora/my_corpus"

请求正文

请求正文必须为空。

响应正文

indexEndpoints.list 的响应消息。

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

JSON 表示法
{
  "indexEndpoints": [
    {
      object (IndexEndpoint)
    }
  ],
  "nextPageToken": string
}
字段
indexEndpoints[]

object (IndexEndpoint)

IndexEndpoint 列表。

nextPageToken

string

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

授权范围

需要以下 OAuth 范围:

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

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

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • visionai.indexEndpoints.list

如需了解详情,请参阅 IAM 文档