Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.68 KB

google_compute_target_instances.md

File metadata and controls

39 lines (32 loc) · 1.68 KB
title platform
About the google_compute_target_instances resource
gcp

Syntax

A google_compute_target_instances is used to test a Google TargetInstance resource

Examples

    describe google_compute_target_instances(project: 'chef-gcp-inspec', zone: ' value_zone') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_compute_target_instances resource:

See google_compute_target_instance.md for more detailed information

  • kinds: an array of google_compute_target_instance kind
  • ids: an array of google_compute_target_instance id
  • creation_timestamps: an array of google_compute_target_instance creation_timestamp
  • names: an array of google_compute_target_instance name
  • descriptions: an array of google_compute_target_instance description
  • zones: an array of google_compute_target_instance zone
  • nat_policies: an array of google_compute_target_instance nat_policy
  • instances: an array of google_compute_target_instance instance
  • self_links: an array of google_compute_target_instance self_link
  • self_link_with_ids: an array of google_compute_target_instance self_link_with_id
  • networks: an array of google_compute_target_instance network
  • security_policies: an array of google_compute_target_instance security_policy

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.