title | platform |
---|---|
About the google_compute_regional_disks resource |
gcp |
A google_compute_regional_disks
is used to test a Google Regional Disk resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
most_recent_image = google_compute_image(project: 'debian-cloud', name: 'debian-10-buster-v20191014')
describe google_compute_regional_disks(project: 'chef-gcp-inspec', region: 'region') do
it { should exist }
its('names') { should include 'inspec-snapshot-disk' }
its('source_images') { should include most_recent_image.self_link }
end
Properties that can be accessed from the google_compute_regional_disks
resource:
See google_compute_regional_disk.md for more detailed information
ids
: an array ofgoogle_compute_regional_disk
idcreation_timestamps
: an array ofgoogle_compute_regional_disk
creation_timestampnames
: an array ofgoogle_compute_regional_disk
namedescriptions
: an array ofgoogle_compute_regional_disk
descriptionsize_gbs
: an array ofgoogle_compute_regional_disk
size_gbzones
: an array ofgoogle_compute_zoneal_disk
zonesource_snapshots
: an array ofgoogle_compute_regional_disk
source_snapshotsource_snapshot_encryption_keys
: an array ofgoogle_compute_regional_disk
source_snapshot_encryption_keysource_snapshot_ids
: an array ofgoogle_compute_regional_disk
source_snapshot_idsource_images
: an array ofgoogle_compute_regional_disk
source_imagesource_image_ids
: an array ofgoogle_compute_regional_disk
source_image_idsource_image_encryption_keys
: an array ofgoogle_compute_regional_disk
source_image_encryption_keytypes
: an array ofgoogle_compute_regional_disk
typelicenses
: an array ofgoogle_compute_regional_disk
licenseslast_attach_timestamps
: an array ofgoogle_compute_regional_disk
last_attach_timestamplast_detach_timestamps
: an array ofgoogle_compute_regional_disk
last_detach_timestampusers
: an array ofgoogle_compute_regional_disk
usersdisk_encryption_keys
: an array ofgoogle_compute_regional_disk
disk_encryption_keylabels
: an array ofgoogle_compute_regional_disk
labelslabel_fingerprints
: an array ofgoogle_compute_regional_disk
label_fingerprintphysical_block_size_bytes
: an array ofgoogle_compute_regional_disk
physical_block_size_bytesregions
: an array ofgoogle_compute_regional_disk
regionreplica_zones
: an array ofgoogle_compute_regional_disk
replica_zonestatuses
: an array ofgoogle_compute_statusal_disk
status
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Compute Engine API is enabled for the current project.