Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.19 KB

google_compute_xpn_resources.md

File metadata and controls

30 lines (23 loc) · 1.19 KB
title platform
About the google_compute_xpn_resources resource
gcp

Syntax

A google_compute_xpn_resources is used to test a Google Project resource

Examples

  describe google_compute_xpn_resources(project: 'chef-gcp-inspec') do
    it { should exist }
    its('ids') { should include xpn_resources['id']}
    its('types') { should include xpn_resources['type']}
  end

Properties

Properties that can be accessed from the google_compute_xpn_resources resource:

See google_compute_xpn_resources.md for more detailed information

  • kind: Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects)
  • resources[]: Service resources (a.k.a service projects) attached to this project as their shared VPC host.
  • resources[].type: The type of the service resource.
  • resources[].id: The ID of the service resource. In the case of projects, this field supports project id (e.g., my-project-123) and project number (e.g. 12345678).

GCP Permissions

Ensure the Compute Engine API is enabled for the current project.