Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 2.12 KB

google_compute_machine_images.md

File metadata and controls

44 lines (37 loc) · 2.12 KB
title platform
About the google_compute_machine_images resource
gcp

Syntax

A google_compute_machine_images is used to test a Google MachineImage resource

Examples

  describe google_compute_machine_images(project: 'chef-gcp-inspec') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_compute_machine_images resource:

See google_compute_machine_image.md for more detailed information

  • kinds: an array of google_compute_machine_image kind
  • ids: an array of google_compute_machine_image id
  • creation_timestamps: an array of google_compute_machine_image creation_timestamp
  • names: an array of google_compute_machine_image name
  • descriptions: an array of google_compute_machine_image description
  • self_links: an array of google_compute_machine_image self_link
  • source_instances: an array of google_compute_machine_image source_instance
  • statuses: an array of google_compute_machine_image status
  • source_instance_properties: an array of google_compute_machine_image source_instance_properties
  • instance_properties: an array of google_compute_machine_image instance_properties
  • saved_disks: an array of google_compute_machine_image saved_disks
  • storage_locations: an array of google_compute_machine_image storage_locations
  • machine_image_encryption_keys: an array of google_compute_machine_image machine_image_encryption_key
  • guest_flushes: an array of google_compute_machine_image guest_flush
  • source_disk_encryption_keys: an array of google_compute_machine_image source_disk_encryption_keys
  • total_storage_bytes: an array of google_compute_machine_image total_storage_bytes
  • satisfies_pzs: an array of google_compute_machine_image satisfies_pzs

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.