Skip to main content

workstations_usable

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

Overview

Nameworkstations_usable
TypeResource
Idgoogle.workstations.workstations_usable

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Full name of this workstation.
annotationsobjectOptional. Client-specified annotations.
createTimestring (google-datetime)Output only. Time when this workstation was created.
deleteTimestring (google-datetime)Output only. Time when this workstation was soft-deleted.
displayNamestringOptional. Human-readable name for this workstation.
envobjectOptional. Environment variables passed to the workstation container's entrypoint.
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.
hoststringOutput only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format {port}-{host}.
kmsKeystringOutput only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is projects/*/locations/*/keyRings/*/cryptoKeys/*.
labelsobjectOptional. Labels that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
reconcilingbooleanOutput only. Indicates whether this workstation is currently being updated to match its intended state.
runtimeHostobjectOptional. Output only. Runtime host for the workstation when in STATE_RUNNING. (id: RuntimeHost)
sourceWorkstationstringOptional. The source workstation from which this workstation's persistent directories were cloned on creation.
startTimestring (google-datetime)Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
statestringOutput only. Current state of the workstation.
uidstringOutput only. A system-assigned unique identifier for this workstation.
updateTimestring (google-datetime)Output only. Time when this workstation was most recently updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_usableselectprojectsId, locationsId, workstationClustersId, workstationConfigsIdpageSize, pageTokenReturns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.

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
workstationConfigsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.

SELECT
name,
annotations,
createTime,
deleteTime,
displayName,
env,
etag,
host,
kmsKey,
labels,
reconciling,
runtimeHost,
sourceWorkstation,
startTime,
state,
uid,
updateTime
FROM google.workstations.workstations_usable
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND workstationClustersId = '{{ workstationClustersId }}' -- required
AND workstationConfigsId = '{{ workstationConfigsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';