OS policy assignment

An OS policy assignment in Google Cloud is a configuration resource that defines and enforces operating system policies across virtual machine instances. It allows administrators to specify compliance rules, package installations, and configuration settings to ensure systems meet organizational standards. The assignments can target specific VM groups or projects and are automatically applied and monitored for compliance.

gcp.osconfig_os_policy_assignment

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
baselinecoreboolOutput 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.
datadog_display_namecorestring
deletedcoreboolOutput only. Indicates that this revision deletes the OS policy assignment.
descriptioncorestringOS policy assignment description. Length of the description is limited to 1024 characters.
etagcorestringThe etag for this OS policy assignment. If this is provided on update, it must match the server's etag.
instance_filtercorejsonRequired. Filter to select VMs.
labelscorearray<string>
namecorestringResource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.
organization_idcorestring
os_policiescorejsonRequired. List of OS policies to be applied to the VMs.
parentcorestring
project_idcorestring
project_numbercorestring
reconcilingcoreboolOutput only. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING
region_idcorestring
resource_namecorestring
revision_create_timecoretimestampOutput only. The timestamp that the revision was created.
revision_idcorestringOutput only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
rolloutcorejsonRequired. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
rollout_statecorestringOutput only. OS policy assignment rollout state
tagscorehstore_csv
uidcorestringOutput only. Server generated unique id for the OS policy assignment resource.
zone_idcorestring