Method: projects.locations.collections.engines.servingConfigs.create

建立 ServingConfig。

注意:Google Cloud 控制台僅適用於預設服務設定。只能透過 API 建立及管理其他 ServingConfig。

Engine 中最多只能有 100 個 ServingConfig,否則系統會傳回 RESOURCE_EXHAUSTED 錯誤。

HTTP 要求

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs

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

路徑參數

參數
parent

string

這是必要旗標,父項的完整資源名稱。格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

查詢參數

參數
servingConfigId

string

這是必要旗標,用於 ServingConfig 的 ID,會成為 ServingConfig 資源名稱的最終元件。

這個值的長度應為 4 至 63 個字元,有效字元為 /[a-zA-Z0-9][a-zA-Z0-9_-]+/。

要求主體

要求主體包含 ServingConfig 的執行個體。

回應主體

如果成功,回應主體會包含新建立的 ServingConfig 執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

需要 parent 資源的下列 IAM 權限:

  • discoveryengine.servingConfigs.create

詳情請參閱 IAM 說明文件