Method: projects.locations.updateCmekConfig

為客戶專案位置佈建 CMEK 金鑰。這個方法也會對提供的 cmekConfig 執行位置驗證,確保金鑰有效,且可在所選位置使用。

HTTP 要求


PATCH https://discoveryengine.googleapis.com/v1alpha/{config.name=projects/*/locations/*/cmekConfig}

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

路徑參數

參數
config.name

string

這是必要旗標,表單 projects/{project}/locations/{location}/cmekConfig 或 projects/{project}/locations/{location}/cmekConfigs/{cmekConfig} 的 CmekConfig 名稱。

查詢參數

參數
setDefault

boolean

如果未指定子項資源的 CmekConfig,請將下列 CmekConfig 設為預設值。

要求主體

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

回應主體

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

授權範圍

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

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

詳情請參閱Authentication Overview。

IAM 權限

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

  • discoveryengine.cmekConfigs.update

詳情請參閱 IAM 說明文件。