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_groupkindids: an array ofgoogle_compute_global_network_endpoint_groupidcreation_timestamps: an array ofgoogle_compute_global_network_endpoint_groupcreation_timestampself_links: an array ofgoogle_compute_global_network_endpoint_groupself_linknames: an array ofgoogle_compute_global_network_endpoint_groupnamedescriptions: an array ofgoogle_compute_global_network_endpoint_groupdescriptionnetwork_endpoint_types: an array ofgoogle_compute_global_network_endpoint_groupnetwork_endpoint_typesizes: an array ofgoogle_compute_global_network_endpoint_groupsizeregions: an array ofgoogle_compute_global_network_endpoint_groupregionzones: an array ofgoogle_compute_global_network_endpoint_groupzonenetworks: an array ofgoogle_compute_global_network_endpoint_groupnetworksubnetworks: an array ofgoogle_compute_global_network_endpoint_groupsubnetworkdefault_ports: an array ofgoogle_compute_global_network_endpoint_groupdefault_portannotations: an array ofgoogle_compute_global_network_endpoint_groupannotationscloud_runs: an array ofgoogle_compute_global_network_endpoint_groupcloud_runapp_engines: an array ofgoogle_compute_global_network_endpoint_groupapp_enginecloud_functions: an array ofgoogle_compute_global_network_endpoint_groupcloud_functionpsc_target_services: an array ofgoogle_compute_global_network_endpoint_grouppsc_target_servicepsc_data: an array ofgoogle_compute_global_network_endpoint_grouppsc_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.