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

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.
createTimestringOutput 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. Details can be found in conditions.
deleteTimestringOutput only. Time when this workstation cluster was soft-deleted.
displayNamestringOptional. Human-readable name for this workstation cluster.
domainConfigobjectConfiguration options for a custom domain.
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.
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.
privateClusterConfigobjectConfiguration options for private workstation clusters.
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.
uidstringOutput only. A system-assigned unique identifier for this workstation cluster.
updateTimestringOutput only. Time when this workstation cluster was most recently updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, workstationClustersIdReturns the requested workstation cluster.
listSELECTlocationsId, projectsIdReturns all workstation clusters in the specified location.
createINSERTlocationsId, projectsIdCreates a new workstation cluster.
deleteDELETElocationsId, projectsId, workstationClustersIdDeletes the specified workstation cluster.
patchUPDATElocationsId, projectsId, workstationClustersIdUpdates an existing workstation cluster.

SELECT examples

Returns all workstation clusters in the specified location.

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

INSERT example

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

/*+ create */
INSERT INTO google.workstations.workstation_clusters (
locationsId,
projectsId,
name,
displayName,
annotations,
labels,
etag,
network,
subnetwork,
privateClusterConfig,
domainConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ annotations }}',
'{{ labels }}',
'{{ etag }}',
'{{ network }}',
'{{ subnetwork }}',
'{{ privateClusterConfig }}',
'{{ domainConfig }}'
;

UPDATE example

Updates a workstation_clusters resource.

/*+ update */
UPDATE google.workstations.workstation_clusters
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
annotations = '{{ annotations }}',
labels = '{{ labels }}',
etag = '{{ etag }}',
network = '{{ network }}',
subnetwork = '{{ subnetwork }}',
privateClusterConfig = '{{ privateClusterConfig }}',
domainConfig = '{{ domainConfig }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND workstationClustersId = '{{ workstationClustersId }}';

DELETE example

Deletes the specified workstation_clusters resource.

/*+ delete */
DELETE FROM google.workstations.workstation_clusters
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND workstationClustersId = '{{ workstationClustersId }}';