Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idgoogle.vmwareengine.clusters

Fields

NameDatatypeDescription
namestringOutput only. The resource name of this cluster. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/clusters/my-cluster
autoscalingSettingsobjectAutoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.
createTimestringOutput only. Creation time of this resource.
managementbooleanOutput only. True if the cluster is a management cluster; false otherwise. There can only be one management cluster in a private cloud and it has to be the first one.
nodeTypeConfigsobjectRequired. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType).
statestringOutput only. State of the resource.
stretchedClusterConfigobjectConfiguration of a stretched cluster.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestringOutput only. Last update time of this resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclustersId, locationsId, privateCloudsId, projectsIdRetrieves a Cluster resource by its resource name.
listSELECTlocationsId, privateCloudsId, projectsIdLists Cluster resources in a given private cloud.
createINSERTlocationsId, privateCloudsId, projectsIdCreates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
deleteDELETEclustersId, locationsId, privateCloudsId, projectsIdDeletes a Cluster resource. To avoid unintended data loss, migrate or gracefully shut down any workloads running on the cluster before deletion. You cannot delete the management cluster of a private cloud using this method.
patchUPDATEclustersId, locationsId, privateCloudsId, projectsIdModifies a Cluster resource. Only fields specified in updateMask are applied. During operation processing, the resource is temporarily in the ACTIVE state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.

SELECT examples

Lists Cluster resources in a given private cloud.

SELECT
name,
autoscalingSettings,
createTime,
management,
nodeTypeConfigs,
state,
stretchedClusterConfig,
uid,
updateTime
FROM google.vmwareengine.clusters
WHERE locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new clusters resource.

/*+ create */
INSERT INTO google.vmwareengine.clusters (
locationsId,
privateCloudsId,
projectsId,
autoscalingSettings,
nodeTypeConfigs,
stretchedClusterConfig
)
SELECT
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ projectsId }}',
'{{ autoscalingSettings }}',
'{{ nodeTypeConfigs }}',
'{{ stretchedClusterConfig }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE google.vmwareengine.clusters
SET
autoscalingSettings = '{{ autoscalingSettings }}',
nodeTypeConfigs = '{{ nodeTypeConfigs }}',
stretchedClusterConfig = '{{ stretchedClusterConfig }}'
WHERE
clustersId = '{{ clustersId }}'
AND locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified clusters resource.

/*+ delete */
DELETE FROM google.vmwareengine.clusters
WHERE clustersId = '{{ clustersId }}'
AND locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';