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 文档。