google_compute_global_forwarding_rules resource
Syntax
A google_compute_global_forwarding_rules is used to test a Google GlobalForwardingRule 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_global_forwarding_rules(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('port_ranges') { should include '80-80' }
end
Properties
Properties that can be accessed from the google_compute_global_forwarding_rules resource:
See google_compute_global_forwarding_rule for more detailed information.
creation_timestamps: an array ofgoogle_compute_global_forwarding_rulecreation_timestampdescriptions: an array ofgoogle_compute_global_forwarding_ruledescriptionids: an array ofgoogle_compute_global_forwarding_ruleidip_addresses: an array ofgoogle_compute_global_forwarding_ruleip_addressip_protocols: an array ofgoogle_compute_global_forwarding_ruleip_protocolip_versions: an array ofgoogle_compute_global_forwarding_ruleip_versionlabels: (Beta only) an array ofgoogle_compute_global_forwarding_rulelabelslabel_fingerprints: (Beta only) an array ofgoogle_compute_global_forwarding_rulelabel_fingerprintload_balancing_schemes: an array ofgoogle_compute_global_forwarding_ruleload_balancing_schememetadata_filters: an array ofgoogle_compute_global_forwarding_rulemetadata_filtersnames: an array ofgoogle_compute_global_forwarding_rulenamenetworks: an array ofgoogle_compute_global_forwarding_rulenetworkport_ranges: an array ofgoogle_compute_global_forwarding_ruleport_rangetargets: an array ofgoogle_compute_global_forwarding_ruletarget
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.