report
Creates, updates, deletes, gets or lists a report
resource.
Overview
Name | report |
Type | Resource |
Id | google.osconfig.report |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The OSPolicyAssignmentReport API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report |
instance | string | The Compute Engine VM instance name. |
lastRunId | string | Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM. This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs. |
osPolicyAssignment | string | Reference to the OSPolicyAssignment API resource that the OSPolicy belongs to. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id} |
osPolicyCompliances | array | Compliance data for each OSPolicy that is applied to the VM. |
updateTime | string | Timestamp for when the report was last generated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | instancesId, locationsId, osPolicyAssignmentsId, projectsId | Get the OS policy assignment report for the specified Compute Engine VM instance. |
SELECT
examples
Get the OS policy assignment report for the specified Compute Engine VM instance.
SELECT
name,
instance,
lastRunId,
osPolicyAssignment,
osPolicyCompliances,
updateTime
FROM google.osconfig.report
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND osPolicyAssignmentsId = '{{ osPolicyAssignmentsId }}'
AND projectsId = '{{ projectsId }}';