google_compute_disk_types resource
Use the google_compute_disk_types
InSpec audit resource to to test a Google Cloud DiskType resource.
Examples
describe google_compute_disk_types(project: 'chef-gcp-inspec', zone: 'us-east1-b') do
it { should exist }
it { should be_up }
end
Properties
Properties that can be accessed from the google_compute_disk_types
resource:
See google_compute_disk_type for more detailed information.
creation_timestamps
: an array ofgoogle_compute_disk_type
creation_timestampdefault_disk_size_gbs
: an array ofgoogle_compute_disk_type
default_disk_size_gbdeprecateds
: an array ofgoogle_compute_disk_type
deprecateddescriptions
: an array ofgoogle_compute_disk_type
descriptionids
: an array ofgoogle_compute_disk_type
idnames
: an array ofgoogle_compute_disk_type
namevalid_disk_sizes
: an array ofgoogle_compute_disk_type
valid_disk_sizezones
: an array ofgoogle_compute_disk_type
zone
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.