Compute Resource Policy

A Compute Resource Policy in Google Cloud is a configuration that defines rules for managing compute resources such as VM instances and disks. It allows you to automate tasks like snapshot schedules, disk replication, and instance placement policies. By applying a resource policy, you can ensure consistent management of resources, improve availability, and simplify operational tasks.

gcp.compute_resource_policy

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
creation_timestampcoretimestamp[Output Only] Creation timestamp in RFC3339 text format.
datadog_display_namecorestring
descriptioncorestring
disk_consistency_group_policycorejsonResource policy for disk consistency groups.
gcp_statuscorestring[Output Only] The status of resource policy creation. Possible values: ['CREATING', 'DELETING', 'EXPIRED', 'INVALID', 'READY']. Values descriptions: ['Resource policy is being created.', 'Resource policy is being deleted.', 'Resource policy is expired and will not run again.', '', 'Resource policy is ready to be used.']
group_placement_policycorejsonResource policy for instances for placement configuration.
idcorestring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
instance_schedule_policycorejsonResource policy for scheduling instance operations.
kindcorestring[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
labelscorearray<string>
namecorestringThe name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
regioncorestring
resource_namecorestring
resource_statuscorejson[Output Only] The system status of the resource policy.
self_linkcorestring[Output Only] Server-defined fully-qualified URL for this resource.
snapshot_schedule_policycorejsonResource policy for persistent disks for creating snapshots.
tagscorehstore