Skip to main content

actuations

Creates, updates, deletes, gets or lists an actuations resource.

Overview​

Nameactuations
TypeResource
Idgoogle.workloadmanager.actuations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the actuation resource. The format is projects/{project}/locations/{location}/deployments/{deployment}/actuations/{actuation}.
actuationOutputobjectOutput only. Actuation output. (id: ActuationOutput)
deploymentOutputarrayOutput only. Deployment output.
endTimestring (google-datetime)Output only. End time stamp.
startTimestring (google-datetime)Output only. Start time stamp.
statestringOutput only. Actuation state. (STATE_UNSPECIFIED, INFRA_CREATING, SUCCEEDED, FAILED, POST_INFRA_CONFIGURING, INFRA_DESTROYING, TIMEOUT)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, deploymentsId, actuationsIdGets details of a single Actuation.
listselectprojectsId, locationsId, deploymentsIdfilter, orderBy, pageSize, pageTokenLists Actuations in a given project, location and deployment.
createinsertprojectsId, locationsId, deploymentsIdrequestIdCreates a new actuation for an existing Deployment.
deletedeleteprojectsId, locationsId, deploymentsId, actuationsIdDeletes a single Actuation.

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
actuationsIdstring
deploymentsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples​

Gets details of a single Actuation.

SELECT
name,
actuationOutput,
deploymentOutput,
endTime,
startTime,
state
FROM google.workloadmanager.actuations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deploymentsId = '{{ deploymentsId }}' -- required
AND actuationsId = '{{ actuationsId }}' -- required
;

INSERT examples​

Creates a new actuation for an existing Deployment.

INSERT INTO google.workloadmanager.actuations (
data__name,
projectsId,
locationsId,
deploymentsId,
requestId
)
SELECT
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ deploymentsId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples​

Deletes a single Actuation.

DELETE FROM google.workloadmanager.actuations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND deploymentsId = '{{ deploymentsId }}' --required
AND actuationsId = '{{ actuationsId }}' --required
;