Method: projects.locations.bareMetalClusters.queryVersionConfig

Queries the bare metal user cluster version config.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent of the project and location to query for version config. Format: "projects/{project}/locations/{location}"

Query parameters

Parameters
Union parameter config_type. The config of the version config request to specify the use case to list versions. config_type can be only one of the following:
createConfig

object (BareMetalClusterCreateConfig)

User cluster create use case. Require admin cluster membership or resource name.

upgradeConfig

object (BareMetalClusterUpgradeConfig)

User cluster upgrade use case. Require user cluster resource name.

Request body

The request body must be empty.

Response body

Response message for querying bare metal admin cluster version config.

If successful, the response body contains data with the following structure:

JSON representation
{
  "versions": [
    {
      object (BareMetalVersionInfo)
    }
  ]
}
Fields
versions[]

object (BareMetalVersionInfo)

List of available versions to install or to upgrade to.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

BareMetalClusterCreateConfig

Message for bare metal user cluster create config.

JSON representation
{

  // 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.
}
Fields

Union field admin_cluster.

admin_cluster can be only one of the following:

adminClusterMembership

string

The admin cluster membership. This is the full resource name of the admin cluster's fleet membership. Format: "projects/{project}/locations/{location}/memberships/{membership}"

adminClusterName

string

The admin cluster resource name. This is the full resource name of the admin cluster resource. Format: "projects/{project}/locations/{location}/bareMetalAdminClusters/{bareMetalAdminCluster}"

BareMetalClusterUpgradeConfig

Message for bare metal user cluster upgrade config.

JSON representation
{
  "clusterName": string
}
Fields
clusterName

string

The user cluster resource name. This is the full resource name of the user cluster resource. Format: "projects/{project}/locations/{location}/bareMetalClusters/{bareMetalCluster}"