google_compute_reservations resource
Use the google_compute_reservations InSpec audit resource to to test a Google Cloud Reservation resource.
Examples
describe google_compute_reservations(project: 'chef-gcp-inspec', zone: ' value_zone') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_reservations resource:
See google_compute_reservation for more detailed information.
kinds: an array ofgoogle_compute_reservationkindids: an array ofgoogle_compute_reservationidcreation_timestamps: an array ofgoogle_compute_reservationcreation_timestampself_links: an array ofgoogle_compute_reservationself_linkself_link_with_ids: an array ofgoogle_compute_reservationself_link_with_idzones: an array ofgoogle_compute_reservationzonedescriptions: an array ofgoogle_compute_reservationdescriptionnames: an array ofgoogle_compute_reservationnamespecific_reservations: an array ofgoogle_compute_reservationspecific_reservationaggregate_reservations: an array ofgoogle_compute_reservationaggregate_reservationcommitments: an array ofgoogle_compute_reservationcommitmentspecific_reservation_requireds: an array ofgoogle_compute_reservationspecific_reservation_requiredstatuses: an array ofgoogle_compute_reservationstatusshare_settings: an array ofgoogle_compute_reservationshare_settingssatisfies_pzs: an array ofgoogle_compute_reservationsatisfies_pzsresource_policies: an array ofgoogle_compute_reservationresource_policiesresource_statuses: an array ofgoogle_compute_reservationresource_statusdelete_at_times: an array ofgoogle_compute_reservationdelete_at_timedelete_after_durations: an array ofgoogle_compute_reservationdelete_after_duration
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.