google_compute_global_operations resource
Use the google_compute_global_operations
InSpec audit resource to to test a Google Cloud GlobalOperation resource.
Examples
describe google_compute_global_operations(project: 'chef-gcp-inspec') do
it { should exist }
it { should be_up }
its('operation_type') { should include 'delete' }
end
Properties
Properties that can be accessed from the google_compute_global_operations
resource:
See google_compute_global_operation for more detailed information.
creation_timestamps
: an array ofgoogle_compute_global_operation
creation_timestampdescriptions
: an array ofgoogle_compute_global_operation
descriptionids
: an array ofgoogle_compute_global_operation
idnames
: an array ofgoogle_compute_global_operation
namezones
: an array ofgoogle_compute_global_operation
zoneclient_operation_ids
: an array ofgoogle_compute_global_operation
client_operation_idoperation_types
: an array ofgoogle_compute_global_operation
operation_typeusers
: an array ofgoogle_compute_global_operation
userprogresses
: an array ofgoogle_compute_global_operation
progressinsert_times
: an array ofgoogle_compute_global_operation
insert_timestart_times
: an array ofgoogle_compute_global_operation
start_timeend_times
: an array ofgoogle_compute_global_operation
end_timestatuses
: an array ofgoogle_compute_global_operation
statusstatus_messages
: an array ofgoogle_compute_global_operation
status_message
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.