Method: projects.locations.getAttachedServerConfig

傳回指定 Google Cloud 地點的資訊,例如支援的 Kubernetes 版本。

HTTP 要求

GET https://{endpoint}/v1/{name=projects/*/locations/*/attachedServerConfig}

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

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

路徑參數

參數
name

string

這是必要旗標,要說明的 AttachedServerConfig 資源名稱。

AttachedServerConfig 名稱的格式為 projects/<project-id>/locations/<region>/attachedServerConfig

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

要求主體

要求主體必須為空白。

回應主體

AttachedServerConfig 提供支援的 Kubernetes 版本相關資訊

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

JSON 表示法
{
  "name": string,
  "validVersions": [
    {
      object (AttachedPlatformVersionInfo)
    }
  ]
}
欄位
name

string

設定的資源名稱。

validVersions[]

object (AttachedPlatformVersionInfo)

有效平台版本清單。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

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

  • gkemulticloud.attachedServerConfigs.get

詳情請參閱 IAM 說明文件

AttachedPlatformVersionInfo

支援的附加叢集平台版本相關資訊。

JSON 表示法
{
  "version": string,
  "enabled": boolean,
  "endOfLife": boolean,
  "endOfLifeDate": {
    object (Date)
  },
  "releaseDate": {
    object (Date)
  }
}
欄位
version

string

平台版本名稱。

enabled

boolean

(選用步驟) 如果該版本可用於建立附加叢集,則為 True。啟用版本後,即可用來附加新叢集。

endOfLife

boolean

(選用步驟) 如果這個叢集版本屬於已終止服務的子版本,且不再接收安全性修補程式和錯誤修正內容,則為 True。

endOfLifeDate

object (Date)

(選用步驟) 這個叢集版本預計終止服務的日期 (太平洋時間)。如果這個版本已停止支援 (endOfLife 欄位為 true),則這是該版本終止服務的實際日期 (太平洋時間)。

releaseDate

object (Date)

(選用步驟) 叢集版本的發布日期 (以太平洋時間為準)。