Method: projects.locations.generateAttachedClusterInstallManifest

產生要安裝在目標叢集上的安裝資訊清單。

HTTP 要求

GET https://{endpoint}/v1/{parent=projects/*/locations/*}:generateAttachedClusterInstallManifest

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

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

路徑參數

參數
parent

string

這是必要旗標,將建立這個 AttachedCluster 資源的父項位置。

地點名稱的格式為 projects/<project-id>/locations/<region>

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

查詢參數

參數
attachedClusterId

string

這是必要旗標,資源的用戶端提供 ID。不得與父項資源中的其他名稱重複。

提供的 ID 會是 AttachedCluster 資源名稱的一部分,格式為 projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>

有效字元為 /[a-z][0-9]-/。長度不得超過 63 個字元。

產生安裝資訊清單以匯入現有 Membership 資源時,附加的 ClusterId 欄位必須是 Membership ID。

會員名稱的格式為 projects/<project-id>/locations/<region>/memberships/<membership-id>

platformVersion

string

這是必要旗標,叢集的平台版本 (例如 1.19.0-gke.1000)。

您可以呼叫 locations.getAttachedServerConfig,列出指定 Google Cloud 區域支援的所有版本。

proxyConfig

object (AttachedProxyConfig)

(選用步驟) 用於輸出 HTTP(S) 流量的 Proxy 設定。

要求主體

要求主體必須為空白。

回應主體

AttachedClusters.GenerateAttachedClusterInstallManifest 方法的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "manifest": string
}
欄位
manifest

string

要套用至要連結的叢集的一組 Kubernetes 資源 (YAML 格式)。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

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

  • gkemulticloud.attachedClusters.generateInstallManifest

詳情請參閱 IAM 說明文件