Method: projects.locations.attachedClusters.patch

更新 AttachedCluster

HTTP 要求

PATCH https://{endpoint}/v1/{attachedCluster.name=projects/*/locations/*/attachedClusters/*}

其中 {endpoint}支援的服務端點之一。

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

路徑參數

參數
attachedCluster.name

string

這個資源的名稱。

叢集名稱的格式為 projects/<project-number>/locations/<region>/attachedClusters/<cluster-id>

如要進一步瞭解 Google Cloud Platform 資源名稱,請參閱「資源名稱」。

查詢參數

參數
validateOnly

boolean

如果設定此值,系統只會驗證要求,但不會實際更新叢集。

updateMask

string (FieldMask format)

這是必要旗標,要更新的欄位遮罩。這個欄位至少須提供一個路徑。重複路徑欄位的元素只能包含 AttachedCluster 中的下列欄位:

  • annotations
  • authorization.admin_groups
  • authorization.admin_users
  • binaryAuthorization.evaluation_mode
  • description
  • loggingConfig.component_config.enable_components
  • monitoringConfig.managed_prometheus_config.enabled
  • platformVersion
  • proxyConfig.kubernetes_secret.name
  • proxyConfig.kubernetes_secret.namespace
  • securityPostureConfig.vulnerability_mode
  • monitoringConfig.cloud_monitoring_config.enabled

這是以半形逗號分隔的完整欄位名稱清單。範例:"user.displayName,photo"

要求主體

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

回應主體

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

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

  • gkemulticloud.attachedClusters.update

詳情請參閱 IAM 說明文件