Method: projects.locations.vmwareClusters.queryVersionConfig

查詢 VMware 使用者叢集版本設定。

HTTP 要求

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

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

路徑參數

參數
parent

string

這是必要旗標,專案和位置的父項,用於查詢版本設定。格式:「projects/{project}/locations/{location}」

查詢參數

參數
聯集參數 config_type。版本設定要求的設定,用於指定列出版本的用途。config_type 只能是下列其中一項:
createConfig

object (VmwareClusterCreateConfig)

使用者叢集建立用途。要求管理員叢集成員資格或資源名稱。

upgradeConfig

object (VmwareClusterUpgradeConfig)

使用者叢集升級用途。要求使用者叢集資源名稱。

要求主體

要求主體必須為空白。

回應主體

用於查詢 VMware 使用者叢集版本設定的回應訊息。

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

JSON 表示法
{
  "versions": [
    {
      object (VmwareVersionInfo)
    }
  ]
}
欄位
versions[]

object (VmwareVersionInfo)

列出可安裝或升級至的版本。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 Authentication Overview

VmwareClusterCreateConfig

訊息:VMware 使用者叢集建立設定。

JSON 表示法
{

  // Union field admin_cluster can be only one of the following:
  "adminClusterMembership": string,
  "adminClusterName": string
  // End of list of possible types for union field admin_cluster.
}
欄位

聯集欄位 admin_cluster

admin_cluster 只能是下列其中一項:

adminClusterMembership

string

管理員叢集成員資格。這是管理員叢集機群成員的完整資源名稱。格式:「projects/{project}/locations/{location}/memberships/{membership}」

adminClusterName

string

管理員叢集資源名稱。這是管理員叢集資源的完整資源名稱。Format: "projects/{project}/locations/{location}/vmwareAdminClusters/{vmwareAdminCluster}"

VmwareClusterUpgradeConfig

訊息:VMware 使用者叢集升級設定。

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

string

使用者叢集資源名稱。這是使用者叢集資源的完整資源名稱。Format: "projects/{project}/locations/{location}/vmwareClusters/{vmwareCluster}"

VmwareVersionInfo

包含特定 VMware 版 Anthos 的相關資訊。

JSON 表示法
{
  "version": string,
  "hasDependencies": boolean,
  "isInstalled": boolean,
  "dependencies": [
    {
      object (UpgradeDependency)
    }
  ]
}
欄位
version

string

版本號碼,例如 1.13.1-gke.1000。

hasDependencies

boolean

如果已設定,則必須先升級叢集依附元件 (例如管理員叢集、由同一管理員叢集管理的其他使用者叢集),才能安裝或升級至這個版本。

isInstalled

boolean

如果已設定,系統會在管理員叢集中安裝該版本。否則,您必須先下載並安裝版本套件,才能在這個版本中建立使用者叢集,或將使用者叢集升級至這個版本。

dependencies[]

object (UpgradeDependency)

此版本的升級依附元件清單。