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:

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.
workstationAuthorizationUrlstringOptional. Specifies the redirect URL for unauthorized requests received by workstation VMs in this cluster. Redirects to this endpoint will send a base64 encoded state query param containing the target workstation name and original request hostname. The endpoint is responsible for retrieving a token using GenerateAccessToken and redirecting back to the original hostname with the token.
workstationLaunchUrlstringOptional. Specifies the launch URL for workstations in this cluster. Requests sent to unstarted workstations will be redirected to this URL. Requests redirected to the launch endpoint will be sent with a workstation and project query parameter containing the full workstation resource name and project ID, respectively. The launch endpoint is responsible for starting the workstation, polling it until it reaches STATE_RUNNING, and then issuing a redirect to the workstation's host URL.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, workstationClustersIdReturns the requested workstation cluster.
listselectprojectsId, locationsIdfilter, pageSize, pageTokenReturns all workstation clusters in the specified location.
createinsertprojectsId, locationsIdvalidateOnly, workstationClusterIdCreates a new workstation cluster.
patchupdateprojectsId, locationsId, workstationClustersIdallowMissing, updateMask, validateOnlyUpdates an existing workstation cluster.
deletedeleteprojectsId, locationsId, workstationClustersIdetag, force, validateOnlyDeletes 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,
workstationAuthorizationUrl,
workstationLaunchUrl
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__annotations,
data__displayName,
data__domainConfig,
data__etag,
data__gatewayConfig,
data__labels,
data__name,
data__network,
data__privateClusterConfig,
data__subnetwork,
data__tags,
data__workstationAuthorizationUrl,
data__workstationLaunchUrl,
projectsId,
locationsId,
validateOnly,
workstationClusterId
)
SELECT
'{{ annotations }}',
'{{ displayName }}',
'{{ domainConfig }}',
'{{ etag }}',
'{{ gatewayConfig }}',
'{{ labels }}',
'{{ name }}',
'{{ network }}',
'{{ privateClusterConfig }}',
'{{ subnetwork }}',
'{{ tags }}',
'{{ workstationAuthorizationUrl }}',
'{{ workstationLaunchUrl }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ validateOnly }}',
'{{ workstationClusterId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates an existing workstation cluster.

UPDATE google.workstations.workstation_clusters
SET
data__annotations = '{{ annotations }}',
data__displayName = '{{ displayName }}',
data__domainConfig = '{{ domainConfig }}',
data__etag = '{{ etag }}',
data__gatewayConfig = '{{ gatewayConfig }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__network = '{{ network }}',
data__privateClusterConfig = '{{ privateClusterConfig }}',
data__subnetwork = '{{ subnetwork }}',
data__tags = '{{ tags }}',
data__workstationAuthorizationUrl = '{{ workstationAuthorizationUrl }}',
data__workstationLaunchUrl = '{{ workstationLaunchUrl }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND workstationClustersId = '{{ workstationClustersId }}' --required
AND allowMissing = {{ allowMissing}}
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
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 etag = '{{ etag }}'
AND force = '{{ force }}'
AND validateOnly = '{{ validateOnly }}'
;