Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.04 KB

google_monitoring_groups.md

File metadata and controls

59 lines (45 loc) · 2.04 KB

+++

title = "google_monitoring_groups Resource" platform = "gcp" draft = false gh_repo = "inspec-gcp"

[menu.inspec]

title = "google_monitoring_groups" identifier = "inspec/resources/gcp/google_monitoring_groups Resource" parent = "inspec/resources/gcp" +++

Use the google_monitoring_groups InSpec audit resource to test the properties of a test a Google Group.

Installation

{{% inspec_gcp_install %}}

Syntax

A google_monitoring_groups is used to test a Google Group resource

Examples

  describe google_monitoring_groups(name: 'projects/*') do
    it { should exist }
    its('names') { should include 'value_name' }
    its('display_names') { should include 'value_displayname' }
    its('filters') { should include 'value_filter' }
  end

Parameters

Properties that can be accessed from the google_monitoring_groups resource:

See google_monitoring_group.md for more detailed information

  • names: an array of google_monitoring_group name
  • display_names: an array of google_monitoring_group display_name
  • parent_names: an array of google_monitoring_group parent_name
  • filters: an array of google_monitoring_group filter
  • is_clusters: an array of google_monitoring_group is_cluster

Properties

Properties that can be accessed from the google_monitoring_groups resource:

See google_monitoring_group.md for more detailed information

  • names: an array of google_monitoring_group name
  • display_names: an array of google_monitoring_group display_name
  • parent_names: an array of google_monitoring_group parent_name
  • filters: an array of google_monitoring_group filter
  • is_clusters: an array of google_monitoring_group is_cluster

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 Stackdriver Monitoring API is enabled for the current project.