Skip to main content

updates

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

Overview​

Nameupdates
TypeResource
Idgoogle.assuredworkloads.updates

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Immutable. Identifier. Resource name of the WorkloadUpdate. Format: organizations/{organization}/locations/{location}/workloads/{workload}/updates/{update}
createTimestring (google-datetime)The time the update was created.
detailsobjectThe details of the update. (id: GoogleCloudAssuredworkloadsV1UpdateDetails)
statestringOutput only. The state of the update. (STATE_UNSPECIFIED, AVAILABLE, APPLIED, WITHDRAWN)
updateTimestring (google-datetime)The time the update was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectorganizationsId, locationsId, workloadsIdpageSize, pageTokenThis endpoint lists all updates for the given workload.
applyexecorganizationsId, locationsId, workloadsId, updatesIdThis endpoint creates a new operation to apply the given update.

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
organizationsIdstring
updatesIdstring
workloadsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

This endpoint lists all updates for the given workload.

SELECT
name,
createTime,
details,
state,
updateTime
FROM google.assuredworkloads.updates
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND workloadsId = '{{ workloadsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;

Lifecycle Methods​

This endpoint creates a new operation to apply the given update.

EXEC google.assuredworkloads.updates.apply
@organizationsId='{{ organizationsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@workloadsId='{{ workloadsId }}' --required,
@updatesId='{{ updatesId }}' --required
@@json=
'{
"action": "{{ action }}"
}'
;