Method: projects.locations.bareMetalAdminClusters.enroll

将现有 Bare Metal 管理员集群注册到指定项目和位置中的 Anthos On-Prem API。通过注册,现有的管理员集群将由 Anthos On-Prem API 管理。系统会创建相应的 GCP 资源,并且预计未来对集群的所有修改都将通过 API 进行。

HTTP 请求

POST https://gkeonprem.googleapis.com/v1/{parent=projects/*/locations/*}/bareMetalAdminClusters:enroll

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。在其中注册集群的项目和位置的父级。格式:“projects/{project}/locations/{location}”

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "bareMetalAdminClusterId": string,
  "membership": string
}
字段
bareMetalAdminClusterId

string

用户提供的 OnePlatform 标识符,用作资源名称的一部分。此名称在项目和位置内的所有 GKE On-Prem 集群中必须是唯一的,如果集群已存在,则系统会返回 409 错误。

(https://tools.ietf.org/html/rfc1123) 格式。

membership

string

必需。这是此管理员集群的舰队成员资格的完整资源名称。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅 Authentication Overview