Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idgoogle.vmwareengine.clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. 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
autoscalingSettingsobjectOptional. Configuration of the autoscaling applied to this cluster. (id: AutoscalingSettings)
createTimestring (google-datetime)Output 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.
stretchedClusterConfigobjectOptional. Configuration of a stretched cluster. Required for clusters that belong to a STRETCHED private cloud. (id: StretchedClusterConfig)
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestring (google-datetime)Output only. Last update time of this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateCloudsId, clustersIdRetrieves a Cluster resource by its resource name.
listselectprojectsId, locationsId, privateCloudsIdpageSize, pageToken, filter, orderByLists Cluster resources in a given private cloud.
createinsertprojectsId, locationsId, privateCloudsIdclusterId, requestId, validateOnlyCreates 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.
patchupdateprojectsId, locationsId, privateCloudsId, clustersIdupdateMask, requestId, validateOnlyModifies 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.
deletedeleteprojectsId, locationsId, privateCloudsId, clustersIdrequestIdDeletes 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.

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
clustersIdstring
locationsIdstring
privateCloudsIdstring
projectsIdstring
clusterIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Retrieves a Cluster resource by its resource name.

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

INSERT examples

Creates 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.

INSERT INTO google.vmwareengine.clusters (
data__autoscalingSettings,
data__nodeTypeConfigs,
data__stretchedClusterConfig,
projectsId,
locationsId,
privateCloudsId,
clusterId,
requestId,
validateOnly
)
SELECT
'{{ autoscalingSettings }}',
'{{ nodeTypeConfigs }}',
'{{ stretchedClusterConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ clusterId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Modifies 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.

UPDATE google.vmwareengine.clusters
SET
data__autoscalingSettings = '{{ autoscalingSettings }}',
data__nodeTypeConfigs = '{{ nodeTypeConfigs }}',
data__stretchedClusterConfig = '{{ stretchedClusterConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND clustersId = '{{ clustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes 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.

DELETE FROM google.vmwareengine.clusters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND clustersId = '{{ clustersId }}' --required
AND requestId = '{{ requestId }}';