將現有的裸機節點集區註冊至特定專案和位置中的 Anthos On-Prem API。透過註冊程序,現有的節點集區將由 Anthos On-Prem API 管理。系統會建立相應的 GCP 資源。
HTTP 要求
POST https://gkeonprem.googleapis.com/v1/{parent=projects/*/locations/*/bareMetalClusters/*}/bareMetalNodePools:enroll
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
parent |
這是必要旗標,表示將建立這個節點集區的父項資源。projects/{project}/locations/{location}/bareMetalClusters/{cluster} |
要求主體
要求主體包含下列結構的資料:
JSON 表示法 |
---|
{ "bareMetalNodePoolId": string, "validateOnly": boolean } |
欄位 | |
---|---|
bare |
使用者提供的 OnePlatform ID,用於資源名稱。 (https://tools.ietf.org/html/rfc1123) 格式。 |
validate |
如果設為此值,系統只會驗證要求,但不會實際註冊節點集區。 |
回應主體
如果成功,回應主體會包含 Operation
的執行個體。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
詳情請參閱 Authentication Overview。