Class InstanceOSPoliciesCompliance (1.15.1)
Stay organized with collections
Save and categorize content based on your preferences.
mapping=None, *, ignore_unknown_fields=False, **kwargs
This API resource represents the OS policies compliance data for a
Compute Engine virtual machine (VM) instance at a given point in
A Compute Engine VM can have multiple OS policy assignments, and
each assignment can have multiple OS policies. As a result, multiple
OS policies could be applied to a single VM.
You can use this API resource to determine both the compliance state
of your VM as well as the compliance state of an individual OS
For more information, see
Attributes Name Description
Output only. The
Output only. The Compute Engine VM instance
Output only. Compliance state of the VM.
Output only. Detailed compliance state of the VM. This field
is populated only when compliance state is
It may contain one of the following values:
no-compliance-data: Compliance data is not available
for this VM.
no-agent-detected: OS Config agent is not detected
for this VM.
config-not-supported-by-agent: The version of the OS
Config agent running on this VM does not support
inactive: VM is not running.
internal-service-errors: There were internal service
errors encountered while enforcing compliance.
agent-errors: OS config agent encountered errors
while enforcing compliance.
Output only. The reason for the
detailed_state of the VM
Output only. Compliance data for each
OSPolicy that is
applied to the VM.
Output only. Timestamp of the last compliance
check for the VM.
Output only. Unique identifier for the last
compliance run. This id will be logged by the OS
config agent during a compliance run and can be
used for debugging and tracing purpose.
OSPolicyCompliance(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Compliance data for an OS policy
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-03-29 UTC.
"label":"Hard to understand"
"label":"Incorrect information or sample code"
"label":"Missing the information/samples I need"
"label":"Easy to understand"
"label":"Solved my problem"
Need to tell us more?