Skip to main content

workstation_clusters

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

Overview

Nameworkstation_clusters
TypeResource
Idgoogle.workstations.workstation_clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Full name of this workstation cluster.
annotationsobjectOptional. Client-specified annotations.
conditionsarrayOutput only. Status conditions describing the workstation cluster's current state.
controlPlaneIpstringOutput only. The private IP address of the control plane for this workstation cluster. Workstation VMs need access to this IP address to work with the service, so make sure that your firewall rules allow egress from the workstation VMs to this address.
createTimestring (google-datetime)Output only. Time when this workstation cluster was created.
degradedbooleanOutput only. Whether this workstation cluster is in degraded mode, in which case it may require user action to restore full functionality. The conditions field contains detailed information about the status of the cluster.
deleteTimestring (google-datetime)Output only. Time when this workstation cluster was soft-deleted.
displayNamestringOptional. Human-readable name for this workstation cluster.
domainConfigobjectOptional. Configuration options for a custom domain. (id: DomainConfig)
etagstringOptional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
gatewayConfigobjectOptional. Configuration options for Cluster HTTP Gateway. (id: GatewayConfig)
labelsobjectOptional. Labels that are applied to the workstation cluster and that are also propagated to the underlying Compute Engine resources.
networkstringImmutable. Name of the Compute Engine network in which instances associated with this workstation cluster will be created.
privateClusterConfigobjectOptional. Configuration for private workstation cluster. (id: PrivateClusterConfig)
reconcilingbooleanOutput only. Indicates whether this workstation cluster is currently being updated to match its intended state.
subnetworkstringImmutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.
tagsobjectOptional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
uidstringOutput only. A system-assigned unique identifier for this workstation cluster.
updateTimestring (google-datetime)Output only. Time when this workstation cluster was most recently updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, workstationClustersIdReturns the requested workstation cluster.
listselectprojectsId, locationsIdpageSize, pageToken, filterReturns all workstation clusters in the specified location.
createinsertprojectsId, locationsIdworkstationClusterId, validateOnlyCreates a new workstation cluster.
patchupdateprojectsId, locationsId, workstationClustersIdupdateMask, validateOnly, allowMissingUpdates an existing workstation cluster.
deletedeleteprojectsId, locationsId, workstationClustersIdvalidateOnly, etag, forceDeletes the specified workstation cluster.

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
workstationClustersIdstring
allowMissingboolean
etagstring
filterstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean
workstationClusterIdstring

SELECT examples

Returns the requested workstation cluster.

SELECT
name,
annotations,
conditions,
controlPlaneIp,
createTime,
degraded,
deleteTime,
displayName,
domainConfig,
etag,
gatewayConfig,
labels,
network,
privateClusterConfig,
reconciling,
subnetwork,
tags,
uid,
updateTime
FROM google.workstations.workstation_clusters
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND workstationClustersId = '{{ workstationClustersId }}' -- required;

INSERT examples

Creates a new workstation cluster.

INSERT INTO google.workstations.workstation_clusters (
data__name,
data__displayName,
data__annotations,
data__labels,
data__etag,
data__network,
data__subnetwork,
data__privateClusterConfig,
data__domainConfig,
data__tags,
data__gatewayConfig,
projectsId,
locationsId,
workstationClusterId,
validateOnly
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ annotations }}',
'{{ labels }}',
'{{ etag }}',
'{{ network }}',
'{{ subnetwork }}',
'{{ privateClusterConfig }}',
'{{ domainConfig }}',
'{{ tags }}',
'{{ gatewayConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ workstationClusterId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an existing workstation cluster.

UPDATE google.workstations.workstation_clusters
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__annotations = '{{ annotations }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}',
data__network = '{{ network }}',
data__subnetwork = '{{ subnetwork }}',
data__privateClusterConfig = '{{ privateClusterConfig }}',
data__domainConfig = '{{ domainConfig }}',
data__tags = '{{ tags }}',
data__gatewayConfig = '{{ gatewayConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND workstationClustersId = '{{ workstationClustersId }}' --required
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
AND allowMissing = {{ allowMissing}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes the specified workstation cluster.

DELETE FROM google.workstations.workstation_clusters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND workstationClustersId = '{{ workstationClustersId }}' --required
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}'
AND force = '{{ force }}';