google_compute_zone_operations resource
Use the google_compute_zone_operations InSpec audit resource to to test a Google Cloud ZoneOperation resource.
Examples
describe google_compute_zone_operations(project: 'chef-gcp-inspec', zone: 'us-central1-a') do
it { should exist }
its('names') { should include 'operation-1641188179305-5d4a6e66fe2bd-8fd1812d-d97f3b69' }
its('progresses') { should include '100' }
end
Properties
Properties that can be accessed from the google_compute_zone_operations resource:
See google_compute_zone_operation for more detailed information.
creation_timestamps: an array ofgoogle_compute_zone_operationcreation_timestampdescriptions: an array ofgoogle_compute_zone_operationdescriptionids: an array ofgoogle_compute_zone_operationidnames: an array ofgoogle_compute_zone_operationnamestatus_messages: an array ofgoogle_compute_zone_operationstatus_messagetarget_ids: an array ofgoogle_compute_zone_operationtarget_idstatuses: an array ofgoogle_compute_zone_operationstatususers: an array ofgoogle_compute_zone_operationuserinsert_times: an array ofgoogle_compute_zone_operationinsert_timestart_times: an array ofgoogle_compute_zone_operationstart_timeend_times: an array ofgoogle_compute_zone_operationend_timeprogresses: an array ofgoogle_compute_zone_operationprogressregions: an array ofgoogle_compute_zone_operationregion
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.