google_compute_regional_disks resource
Syntax
A google_compute_regional_disks is used to test a Google Regional Disk resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource.
Examples
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
Properties that can be accessed from the google_compute_regional_disks resource:
See google_compute_regional_disk for more detailed information.
ids: an array ofgoogle_compute_regional_diskidcreation_timestamps: an array ofgoogle_compute_regional_diskcreation_timestampnames: an array ofgoogle_compute_regional_disknamedescriptions: an array ofgoogle_compute_regional_diskdescriptionsize_gbs: an array ofgoogle_compute_regional_disksize_gbzones: an array ofgoogle_compute_zoneal_diskzonesource_snapshots: an array ofgoogle_compute_regional_disksource_snapshotsource_snapshot_encryption_keys: an array ofgoogle_compute_regional_disksource_snapshot_encryption_keysource_snapshot_ids: an array ofgoogle_compute_regional_disksource_snapshot_idsource_images: an array ofgoogle_compute_regional_disksource_imagesource_image_ids: an array ofgoogle_compute_regional_disksource_image_idsource_image_encryption_keys: an array ofgoogle_compute_regional_disksource_image_encryption_keytypes: an array ofgoogle_compute_regional_disktypelicenses: an array ofgoogle_compute_regional_disklicenseslast_attach_timestamps: an array ofgoogle_compute_regional_disklast_attach_timestamplast_detach_timestamps: an array ofgoogle_compute_regional_disklast_detach_timestampusers: an array ofgoogle_compute_regional_diskusersdisk_encryption_keys: an array ofgoogle_compute_regional_diskdisk_encryption_keylabels: an array ofgoogle_compute_regional_disklabelslabel_fingerprints: an array ofgoogle_compute_regional_disklabel_fingerprintphysical_block_size_bytes: an array ofgoogle_compute_regional_diskphysical_block_size_bytesregions: an array ofgoogle_compute_regional_diskregionreplica_zones: an array ofgoogle_compute_regional_diskreplica_zonestatuses: an array ofgoogle_compute_statusal_diskstatus
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.