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_operationcreation_timestampdescriptions: an array ofgoogle_compute_global_operationdescriptionids: an array ofgoogle_compute_global_operationidnames: an array ofgoogle_compute_global_operationnamezones: an array ofgoogle_compute_global_operationzoneclient_operation_ids: an array ofgoogle_compute_global_operationclient_operation_idoperation_types: an array ofgoogle_compute_global_operationoperation_typeusers: an array ofgoogle_compute_global_operationuserprogresses: an array ofgoogle_compute_global_operationprogressinsert_times: an array ofgoogle_compute_global_operationinsert_timestart_times: an array ofgoogle_compute_global_operationstart_timeend_times: an array ofgoogle_compute_global_operationend_timestatuses: an array ofgoogle_compute_global_operationstatusstatus_messages: an array ofgoogle_compute_global_operationstatus_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.