reports
Creates, updates, deletes, gets or lists a reports
resource.
Overview
Name | reports |
Type | Resource |
Id | google.osconfig.reports |
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 |
---|---|---|---|
list | SELECT | instancesId, locationsId, osPolicyAssignmentsId, projectsId | List OS policy assignment reports for all Compute Engine VM instances in the specified zone. |
SELECT
examples
List OS policy assignment reports for all Compute Engine VM instances in the specified zone.
SELECT
name,
instance,
lastRunId,
osPolicyAssignment,
osPolicyCompliances,
updateTime
FROM google.osconfig.reports
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND osPolicyAssignmentsId = '{{ osPolicyAssignmentsId }}'
AND projectsId = '{{ projectsId }}';