Method: projects.locations.getAzureServerConfig

傳回指定 Google Cloud 位置的資訊,例如支援的 Azure 區域和 Kubernetes 版本。

HTTP 要求

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

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

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

路徑參數

參數
name

string

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

AzureServerConfig 名稱的格式為 projects/<project-id>/locations/<region>/azureServerConfig

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

要求主體

要求主體必須為空白。

回應主體

AzureServerConfig 包含 Google Cloud 位置的相關資訊,例如支援的 Azure 區域和 Kubernetes 版本。

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

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

string

AzureServerConfig 資源名稱。

AzureServerConfig 名稱的格式為 projects/<project-number>/locations/<region>/azureServerConfig

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

validVersions[]

object (AzureK8sVersionInfo)

所有已發布的 Kubernetes 版本清單,包括生命週期終止且無法再使用的版本。依enabled屬性篩選,只顯示目前可用的版本。建立和更新作業都支援有效版本

supportedAzureRegions[]

string

支援的 Azure 區域清單。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview

IAM 權限

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

  • gkemulticloud.azureServerConfigs.get

詳情請參閱 IAM 說明文件

AzureK8sVersionInfo

Azure 中 GKE 叢集的 Kubernetes 版本資訊。

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

string

Kubernetes 版本名稱 (例如 1.19.10-gke.1000)

enabled

boolean

(選用步驟) 如果該版本可用於建立叢集,則為 True。如果版本已啟用建立功能,即可用於建立新叢集。否則叢集建立作業會失敗。不過,即使未啟用該版本,叢集升級作業仍可能成功。

endOfLife

boolean

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

endOfLifeDate

object (Date)

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

releaseDate

object (Date)

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