Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.97 KB

google_compute_machine_types.md

File metadata and controls

43 lines (36 loc) · 1.97 KB
title platform
About the google_compute_machine_types resource
gcp

Syntax

A google_compute_machine_types is used to test a Google MachineType resource

Examples

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

Properties

Properties that can be accessed from the google_compute_machine_types resource:

See google_compute_machine_type.md for more detailed information

  • kinds: an array of google_compute_machine_type kind
  • ids: an array of google_compute_machine_type id
  • creation_timestamps: an array of google_compute_machine_type creation_timestamp
  • names: an array of google_compute_machine_type name
  • descriptions: an array of google_compute_machine_type description
  • guest_cpus: an array of google_compute_machine_type guest_cpus
  • memory_mbs: an array of google_compute_machine_type memory_mb
  • image_space_gbs: an array of google_compute_machine_type image_space_gb
  • scratch_disks: an array of google_compute_machine_type scratch_disks
  • maximum_persistent_disks: an array of google_compute_machine_type maximum_persistent_disks
  • maximum_persistent_disks_size_gbs: an array of google_compute_machine_type maximum_persistent_disks_size_gb
  • deprecateds: an array of google_compute_machine_type deprecated
  • zones: an array of google_compute_machine_type zone
  • self_links: an array of google_compute_machine_type self_link
  • is_shared_cpus: an array of google_compute_machine_type is_shared_cpu
  • accelerators: an array of google_compute_machine_type accelerators

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.