google_compute_global_network_endpoint_groups resource
Use the google_compute_global_network_endpoint_groups
InSpec audit resource to to test a Google Cloud GlobalNetworkEndpointGroup resource.
Examples
describe google_compute_global_network_endpoint_groups(project: 'chef-gcp-inspec') do
it { should exist }
its('default_ports') { should include '90' }
its('names') { should include 'inspec-gcp-global-endpoint-group' }
its('network_endpoint_types'){ should include 'INTERNET_IP_PORT' }
end
Properties
Properties that can be accessed from the google_compute_global_network_endpoint_groups
resource:
See google_compute_global_network_endpoint_group for more detailed information.
kinds
: an array ofgoogle_compute_global_network_endpoint_group
kindids
: an array ofgoogle_compute_global_network_endpoint_group
idcreation_timestamps
: an array ofgoogle_compute_global_network_endpoint_group
creation_timestampself_links
: an array ofgoogle_compute_global_network_endpoint_group
self_linknames
: an array ofgoogle_compute_global_network_endpoint_group
namedescriptions
: an array ofgoogle_compute_global_network_endpoint_group
descriptionnetwork_endpoint_types
: an array ofgoogle_compute_global_network_endpoint_group
network_endpoint_typesizes
: an array ofgoogle_compute_global_network_endpoint_group
sizeregions
: an array ofgoogle_compute_global_network_endpoint_group
regionzones
: an array ofgoogle_compute_global_network_endpoint_group
zonenetworks
: an array ofgoogle_compute_global_network_endpoint_group
networksubnetworks
: an array ofgoogle_compute_global_network_endpoint_group
subnetworkdefault_ports
: an array ofgoogle_compute_global_network_endpoint_group
default_portannotations
: an array ofgoogle_compute_global_network_endpoint_group
annotationscloud_runs
: an array ofgoogle_compute_global_network_endpoint_group
cloud_runapp_engines
: an array ofgoogle_compute_global_network_endpoint_group
app_enginecloud_functions
: an array ofgoogle_compute_global_network_endpoint_group
cloud_functionpsc_target_services
: an array ofgoogle_compute_global_network_endpoint_group
psc_target_servicepsc_data
: an array ofgoogle_compute_global_network_endpoint_group
psc_data
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.