google_compute_network_attachments resource
Use the google_compute_network_attachments InSpec audit resource to to test a Google Cloud NetworkAttachment resource.
Examples
describe google_compute_network_attachments(project: 'chef-gcp-inspec', region: ' value_region') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_network_attachments resource:
See google_compute_network_attachment for more detailed information.
kinds: an array ofgoogle_compute_network_attachmentkindids: an array ofgoogle_compute_network_attachmentidcreation_timestamps: an array ofgoogle_compute_network_attachmentcreation_timestampnames: an array ofgoogle_compute_network_attachmentnamedescriptions: an array ofgoogle_compute_network_attachmentdescriptionself_links: an array ofgoogle_compute_network_attachmentself_linkself_link_with_ids: an array ofgoogle_compute_network_attachmentself_link_with_idregions: an array ofgoogle_compute_network_attachmentregionconnection_preferences: an array ofgoogle_compute_network_attachmentconnection_preferenceconnection_endpoints: an array ofgoogle_compute_network_attachmentconnection_endpointssubnetworks: an array ofgoogle_compute_network_attachmentsubnetworksproducer_reject_lists: an array ofgoogle_compute_network_attachmentproducer_reject_listsproducer_accept_lists: an array ofgoogle_compute_network_attachmentproducer_accept_listsfingerprints: an array ofgoogle_compute_network_attachmentfingerprintnetworks: an array ofgoogle_compute_network_attachmentnetwork
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.