Skip to main content

vmware_admin_clusters

Creates, updates, deletes, gets or lists a vmware_admin_clusters resource.

Overview

Namevmware_admin_clusters
TypeResource
Idgoogle.gkeonprem.vmware_admin_clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The VMware admin cluster resource name.
addonNodeobjectThe VMware admin cluster addon node configuration. (id: VmwareAdminAddonNodeConfig)
annotationsobjectAnnotations on the VMware admin cluster. This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.
antiAffinityGroupsobjectThe VMware admin cluster anti affinity group configuration. (id: VmwareAAGConfig)
authorizationobjectThe VMware admin cluster authorization configuration. (id: VmwareAdminAuthorizationConfig)
autoRepairConfigobjectThe VMware admin cluster auto repair configuration. (id: VmwareAutoRepairConfig)
bootstrapClusterMembershipstringThe bootstrap cluster this VMware admin cluster belongs to.
controlPlaneNodeobjectThe VMware admin cluster control plane node configuration. (id: VmwareAdminControlPlaneNodeConfig)
createTimestring (google-datetime)Output only. The time at which VMware admin cluster was created.
descriptionstringA human readable description of this VMware admin cluster.
enableAdvancedClusterbooleanEnable advanced cluster.
endpointstringOutput only. The DNS name of VMware admin cluster's API server.
etagstringThis checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Allows clients to perform consistent read-modify-writes through optimistic concurrency control.
fleetobjectOutput only. Fleet configuration for the cluster. (id: Fleet)
imageTypestringThe OS image type for the VMware admin cluster.
loadBalancerobjectThe VMware admin cluster load balancer configuration. (id: VmwareAdminLoadBalancerConfig)
localNamestringOutput only. The object name of the VMware OnPremAdminCluster custom resource. This field is used to support conflicting names when enrolling existing clusters to the API. When used as a part of cluster enrollment, this field will differ from the ID in the resource name. For new clusters, this field will match the user provided cluster name and be visible in the last component of the resource name. It is not modifiable. All users should use this name to access their cluster using gkectl or kubectl and should expect to see the local name when viewing admin cluster controller logs.
networkConfigobjectThe VMware admin cluster network configuration. (id: VmwareAdminNetworkConfig)
onPremVersionstringThe Anthos clusters on the VMware version for the admin cluster.
platformConfigobjectThe VMware platform configuration. (id: VmwarePlatformConfig)
preparedSecretsobjectOutput only. The VMware admin cluster prepared secrets configuration. It should always be enabled by the Central API, instead of letting users set it. (id: VmwareAdminPreparedSecretsConfig)
privateRegistryConfigobjectConfiguration for registry. (id: VmwareAdminPrivateRegistryConfig)
reconcilingbooleanOutput only. If set, there are currently changes in flight to the VMware admin cluster.
statestringOutput only. The current state of VMware admin cluster.
statusobjectOutput only. ResourceStatus representing detailed cluster state. (id: ResourceStatus)
uidstringOutput only. The unique identifier of the VMware admin cluster.
updateTimestring (google-datetime)Output only. The time at which VMware admin cluster was last updated.
validationCheckobjectOutput only. ValidationCheck represents the result of the preflight check job. (id: ValidationCheck)
vcenterobjectThe VMware admin cluster VCenter configuration. (id: VmwareAdminVCenterConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_vmware_admin_clusters_getselectprojectsId, locationsId, vmwareAdminClustersIdview, allowMissingGets details of a single VMware admin cluster.
projects_locations_vmware_admin_clusters_listselectprojectsId, locationsIdpageSize, pageToken, view, allowMissingLists VMware admin clusters in a given project and location.
projects_locations_vmware_admin_clusters_createinsertprojectsId, locationsIdvmwareAdminClusterId, validateOnly, allowPreflightFailureCreates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.
projects_locations_vmware_admin_clusters_patchupdateprojectsId, locationsId, vmwareAdminClustersIdupdateMask, validateOnlyUpdates the parameters of a single VMware admin cluster.
projects_locations_vmware_admin_clusters_enrollexecprojectsId, locationsIdEnrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.
projects_locations_vmware_admin_clusters_unenrollexecprojectsId, locationsId, vmwareAdminClustersIdetag, allowMissing, validateOnly, ignoreErrorsUnenrolls an existing VMware admin cluster from the Anthos On-Prem API within a given project and location. Unenrollment removes the Cloud reference to the cluster without modifying the underlying OnPrem Resources. Clusters will continue to run; however, they will no longer be accessible through the Anthos On-Prem API or its clients.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
vmwareAdminClustersIdstring
allowMissingboolean
allowPreflightFailureboolean
etagstring
ignoreErrorsboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean
viewstring
vmwareAdminClusterIdstring

SELECT examples

Gets details of a single VMware admin cluster.

SELECT
name,
addonNode,
annotations,
antiAffinityGroups,
authorization,
autoRepairConfig,
bootstrapClusterMembership,
controlPlaneNode,
createTime,
description,
enableAdvancedCluster,
endpoint,
etag,
fleet,
imageType,
loadBalancer,
localName,
networkConfig,
onPremVersion,
platformConfig,
preparedSecrets,
privateRegistryConfig,
reconciling,
state,
status,
uid,
updateTime,
validationCheck,
vcenter
FROM google.gkeonprem.vmware_admin_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND vmwareAdminClustersId = '{{ vmwareAdminClustersId }}' -- required
AND view = '{{ view }}'
AND allowMissing = '{{ allowMissing }}';

INSERT examples

Creates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.

INSERT INTO google.gkeonprem.vmware_admin_clusters (
data__name,
data__description,
data__etag,
data__annotations,
data__bootstrapClusterMembership,
data__onPremVersion,
data__imageType,
data__vcenter,
data__networkConfig,
data__loadBalancer,
data__controlPlaneNode,
data__addonNode,
data__antiAffinityGroups,
data__autoRepairConfig,
data__platformConfig,
data__authorization,
data__enableAdvancedCluster,
data__privateRegistryConfig,
projectsId,
locationsId,
vmwareAdminClusterId,
validateOnly,
allowPreflightFailure
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ etag }}',
'{{ annotations }}',
'{{ bootstrapClusterMembership }}',
'{{ onPremVersion }}',
'{{ imageType }}',
'{{ vcenter }}',
'{{ networkConfig }}',
'{{ loadBalancer }}',
'{{ controlPlaneNode }}',
'{{ addonNode }}',
'{{ antiAffinityGroups }}',
'{{ autoRepairConfig }}',
'{{ platformConfig }}',
'{{ authorization }}',
{{ enableAdvancedCluster }},
'{{ privateRegistryConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ vmwareAdminClusterId }}',
'{{ validateOnly }}',
'{{ allowPreflightFailure }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single VMware admin cluster.

UPDATE google.gkeonprem.vmware_admin_clusters
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__etag = '{{ etag }}',
data__annotations = '{{ annotations }}',
data__bootstrapClusterMembership = '{{ bootstrapClusterMembership }}',
data__onPremVersion = '{{ onPremVersion }}',
data__imageType = '{{ imageType }}',
data__vcenter = '{{ vcenter }}',
data__networkConfig = '{{ networkConfig }}',
data__loadBalancer = '{{ loadBalancer }}',
data__controlPlaneNode = '{{ controlPlaneNode }}',
data__addonNode = '{{ addonNode }}',
data__antiAffinityGroups = '{{ antiAffinityGroups }}',
data__autoRepairConfig = '{{ autoRepairConfig }}',
data__platformConfig = '{{ platformConfig }}',
data__authorization = '{{ authorization }}',
data__enableAdvancedCluster = {{ enableAdvancedCluster }},
data__privateRegistryConfig = '{{ privateRegistryConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareAdminClustersId = '{{ vmwareAdminClustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

Lifecycle Methods

Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.

EXEC google.gkeonprem.vmware_admin_clusters.projects_locations_vmware_admin_clusters_enroll 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"vmwareAdminClusterId": "{{ vmwareAdminClusterId }}",
"membership": "{{ membership }}"
}';