updates
Creates, updates, deletes, gets or lists a updates
resource.
Overview
Name | updates |
Type | Resource |
Id | google.assuredworkloads.updates |
Fields
The following fields are returned by SELECT
queries:
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Immutable. Identifier. Resource name of the WorkloadUpdate. Format: organizations/{organization}/locations/{location}/workloads/{workload}/updates/{update} |
createTime | string (google-datetime) | The time the update was created. |
details | object | The details of the update. (id: GoogleCloudAssuredworkloadsV1UpdateDetails) |
state | string | Output only. The state of the update. |
updateTime | string (google-datetime) | The time the update was last updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | organizationsId , locationsId , workloadsId | pageSize , pageToken | This endpoint lists all updates for the given workload. |
apply | exec | organizationsId , locationsId , workloadsId , updatesId | This 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
organizationsId | string | |
updatesId | string | |
workloadsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- list
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
- apply
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 }}"
}';