Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.21 KB

google_sql_operations.md

File metadata and controls

36 lines (28 loc) · 1.21 KB
title platform
About the google_sql_operations resource
gcp

Syntax

A google_sql_operations is used to test a Google Operation resource

Examples


describe google_sql_operations(project: 'chef-gcp-inspec', instance: 'my-database') do
  it { should exist }
  its('names') { should include 'e5c522f1-8391-4830-a8ff-ff1cc4a7b2a5' }
  its('statuses') { should include 'DONE' }
  its('operation_types') { should include 'CREATE' }
end

Properties

Properties that can be accessed from the google_sql_operations resource:

See google_sql_operation.md for more detailed information

  • users: an array of google_sql_operation user
  • names: an array of google_sql_operation name
  • statuses: an array of google_sql_operation status
  • operation_types: an array of google_sql_operation operation_type
  • instances: an array of google_sql_operation instance

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 Cloud SQL Admin API is enabled for the current project.