Method: projects.locations.indexEndpoints.deployIndex

將索引部署至 IndexEndpoint。

HTTP 要求

POST https://visionai.googleapis.com/v1/{indexEndpoint=projects/*/locations/*/indexEndpoints/*}:deployIndex

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
indexEndpoint

string

這是必要旗標,要部署索引的 IndexEndpoint。格式:projects/{project}/locations/{location}/indexEndpoints/{indexEndpoint}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "deployedIndex": {
    object (DeployedIndex)
  }
}
欄位
deployedIndex

object (DeployedIndex)

這是必要旗標,要部署的索引。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱驗證總覽一文。

IAM 權限

需要在 indexEndpoint 資源上具備下列 IAM 權限:

  • visionai.indexEndpoints.deploy

詳情請參閱 身分與存取權管理說明文件