google_compute_addresses resource
Syntax
A google_compute_addresses is used to test a Google Address resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource.
Examples
describe google_compute_addresses(project: 'chef-gcp-inspec', location: 'europe-west2') do
its('addresses') { should include '10.2.0.3' }
its('names') { should include 'inspec-gcp-global-address' }
end
Properties
Properties that can be accessed from the google_compute_addresses resource:
See google_compute_address for more detailed information.
addresses: an array ofgoogle_compute_addressaddressaddress_types: an array ofgoogle_compute_addressaddress_typecreation_timestamps: an array ofgoogle_compute_addresscreation_timestampdescriptions: an array ofgoogle_compute_addressdescriptionids: an array ofgoogle_compute_addressidnames: an array ofgoogle_compute_addressnamepurposes: an array ofgoogle_compute_addresspurposenetwork_tiers: an array ofgoogle_compute_addressnetwork_tiersubnetworks: an array ofgoogle_compute_addresssubnetworkusers: an array ofgoogle_compute_addressuserslabels: (Beta only) an array ofgoogle_compute_addresslabelslabel_fingerprints: (Beta only) an array ofgoogle_compute_addresslabel_fingerprintstatuses: an array ofgoogle_compute_addressstatusregions: an array ofgoogle_compute_addressregion
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.