google_compute_region_commitments resource
Use the google_compute_region_commitments InSpec audit resource to to test a Google Cloud RegionCommitment resource.
Examples
describe google_compute_region_commitments(project: 'chef-gcp-inspec', region: ' value_region') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_region_commitments resource:
See google_compute_region_commitment for more detailed information.
kinds: an array ofgoogle_compute_region_commitmentkindids: an array ofgoogle_compute_region_commitmentidcreation_timestamps: an array ofgoogle_compute_region_commitmentcreation_timestampnames: an array ofgoogle_compute_region_commitmentnamedescriptions: an array ofgoogle_compute_region_commitmentdescriptionregions: an array ofgoogle_compute_region_commitmentregionself_links: an array ofgoogle_compute_region_commitmentself_linkself_link_with_ids: an array ofgoogle_compute_region_commitmentself_link_with_idstatuses: an array ofgoogle_compute_region_commitmentstatusstatus_messages: an array ofgoogle_compute_region_commitmentstatus_messageplans: an array ofgoogle_compute_region_commitmentplanstart_timestamps: an array ofgoogle_compute_region_commitmentstart_timestampend_timestamps: an array ofgoogle_compute_region_commitmentend_timestampresources: an array ofgoogle_compute_region_commitmentresourcestypes: an array ofgoogle_compute_region_commitmenttypereservations: an array ofgoogle_compute_region_commitmentreservationscategories: an array ofgoogle_compute_region_commitmentcategorylicense_resources: an array ofgoogle_compute_region_commitmentlicense_resourceauto_renews: an array ofgoogle_compute_region_commitmentauto_renewmerge_source_commitments: an array ofgoogle_compute_region_commitmentmerge_source_commitmentssplit_source_commitments: an array ofgoogle_compute_region_commitmentsplit_source_commitmentresource_statuses: an array ofgoogle_compute_region_commitmentresource_statusexisting_reservations: an array ofgoogle_compute_region_commitmentexisting_reservations
Filter criteria
This resource supports all of the above properties as filter criteria, which can be used
with where as a block or a method.
GCP permissions
Ensure the Compute Engine API is enabled for the current project.