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_reservation
kindids
: an array ofgoogle_compute_reservation
idcreation_timestamps
: an array ofgoogle_compute_reservation
creation_timestampself_links
: an array ofgoogle_compute_reservation
self_linkself_link_with_ids
: an array ofgoogle_compute_reservation
self_link_with_idzones
: an array ofgoogle_compute_reservation
zonedescriptions
: an array ofgoogle_compute_reservation
descriptionnames
: an array ofgoogle_compute_reservation
namespecific_reservations
: an array ofgoogle_compute_reservation
specific_reservationaggregate_reservations
: an array ofgoogle_compute_reservation
aggregate_reservationcommitments
: an array ofgoogle_compute_reservation
commitmentspecific_reservation_requireds
: an array ofgoogle_compute_reservation
specific_reservation_requiredstatuses
: an array ofgoogle_compute_reservation
statusshare_settings
: an array ofgoogle_compute_reservation
share_settingssatisfies_pzs
: an array ofgoogle_compute_reservation
satisfies_pzsresource_policies
: an array ofgoogle_compute_reservation
resource_policiesresource_statuses
: an array ofgoogle_compute_reservation
resource_statusdelete_at_times
: an array ofgoogle_compute_reservation
delete_at_timedelete_after_durations
: an array ofgoogle_compute_reservation
delete_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.