os_policy_assignments_revisions
Creates, updates, deletes, gets or lists a os_policy_assignments_revisions
resource.
Overview
Name | os_policy_assignments_revisions |
Type | Resource |
Id | google.osconfig.os_policy_assignments_revisions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Resource name. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id} This field is ignored when you create an OS policy assignment. |
description | string | OS policy assignment description. Length of the description is limited to 1024 characters. |
baseline | boolean | Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of true for this field. |
deleted | boolean | Output only. Indicates that this revision deletes the OS policy assignment. |
etag | string | The etag for this OS policy assignment. If this is provided on update, it must match the server's etag. |
instanceFilter | object | Filters to select target VMs for an assignment. If more than one filter criteria is specified below, a VM will be selected if and only if it satisfies all of them. |
osPolicies | array | Required. List of OS policies to be applied to the VMs. |
reconciling | boolean | Output only. Indicates that reconciliation is in progress for the revision. This value is true when the rollout_state is one of: IN_PROGRESS CANCELLING |
revisionCreateTime | string | Output only. The timestamp that the revision was created. |
revisionId | string | Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment |
rollout | object | Message to configure the rollout at the zonal level for the OS policy assignment. |
rolloutState | string | Output only. OS policy assignment rollout state |
uid | string | Output only. Server generated unique id for the OS policy assignment resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_revisions | SELECT | locationsId, osPolicyAssignmentsId, projectsId | List the OS policy assignment revisions for a given OS policy assignment. |
SELECT
examples
List the OS policy assignment revisions for a given OS policy assignment.
SELECT
name,
description,
baseline,
deleted,
etag,
instanceFilter,
osPolicies,
reconciling,
revisionCreateTime,
revisionId,
rollout,
rolloutState,
uid
FROM google.osconfig.os_policy_assignments_revisions
WHERE locationsId = '{{ locationsId }}'
AND osPolicyAssignmentsId = '{{ osPolicyAssignmentsId }}'
AND projectsId = '{{ projectsId }}';