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_attachment
kindids
: an array ofgoogle_compute_network_attachment
idcreation_timestamps
: an array ofgoogle_compute_network_attachment
creation_timestampnames
: an array ofgoogle_compute_network_attachment
namedescriptions
: an array ofgoogle_compute_network_attachment
descriptionself_links
: an array ofgoogle_compute_network_attachment
self_linkself_link_with_ids
: an array ofgoogle_compute_network_attachment
self_link_with_idregions
: an array ofgoogle_compute_network_attachment
regionconnection_preferences
: an array ofgoogle_compute_network_attachment
connection_preferenceconnection_endpoints
: an array ofgoogle_compute_network_attachment
connection_endpointssubnetworks
: an array ofgoogle_compute_network_attachment
subnetworksproducer_reject_lists
: an array ofgoogle_compute_network_attachment
producer_reject_listsproducer_accept_lists
: an array ofgoogle_compute_network_attachment
producer_accept_listsfingerprints
: an array ofgoogle_compute_network_attachment
fingerprintnetworks
: an array ofgoogle_compute_network_attachment
network
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.