Method: projects.locations.bareMetalClusters.queryVersionConfig

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

HTTP 要求

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

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

路徑參數

參數
parent

string

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

查詢參數

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

object (BareMetalClusterCreateConfig)

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

upgradeConfig

object (BareMetalClusterUpgradeConfig)

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

要求主體

要求主體必須為空白。

回應主體

用於查詢 Bare Metal 管理員叢集版本設定的回應訊息。

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

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

object (BareMetalVersionInfo)

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

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 Authentication Overview

BareMetalClusterCreateConfig

裸機使用者叢集建立設定的訊息。

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

管理員叢集資源名稱。這是管理員叢集資源的完整資源名稱。格式:「projects/{project}/locations/{location}/bareMetalAdminClusters/{bareMetalAdminCluster}」

BareMetalClusterUpgradeConfig

裸機使用者叢集升級設定的訊息。

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

string

使用者叢集資源名稱。這是使用者叢集資源的完整資源名稱。格式:「projects/{project}/locations/{location}/bareMetalClusters/{bareMetalCluster}」