Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.89 KB

google_compute_global_operations.md

File metadata and controls

43 lines (36 loc) · 1.89 KB
title platform
About the google_compute_global_operations resource
gcp

Syntax

A google_compute_global_operations is used to test a Google 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.md for more detailed information

  • creation_timestamps: an array of google_compute_global_operation creation_timestamp
  • descriptions: an array of google_compute_global_operation description
  • ids: an array of google_compute_global_operation id
  • names: an array of google_compute_global_operation name
  • zones: an array of google_compute_global_operation zone
  • client_operation_ids: an array of google_compute_global_operation client_operation_id
  • operation_types: an array of google_compute_global_operation operation_type
  • users: an array of google_compute_global_operation user
  • progresses: an array of google_compute_global_operation progress
  • insert_times: an array of google_compute_global_operation insert_time
  • start_times: an array of google_compute_global_operation start_time
  • end_times: an array of google_compute_global_operation end_time
  • statuses: an array of google_compute_global_operation status
  • status_messages: an array of google_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.