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 googlecomputeglobalforwardingrule.md for more detailed information
* creation_timestamps
: an array of google_compute_global_forwarding_rule
creationtimestamp
* descriptions
: an array of `googlecomputeglobalforwardingruledescription
*
ids: an array of
googlecomputeglobalforwardingruleid
*
ipaddresses: an array of
googlecomputeglobalforwardingruleip_address
*
ipprotocols: an array of
googlecomputeglobalforwardingrule` ipprotocol
* ip_versions
: an array of google_compute_global_forwarding_rule
ipversion
* labels
: (Beta only) an array of `googlecomputeglobalforwardingrulelabels
*
labelfingerprints: (Beta only) an array of
googlecomputeglobalforwardingrulelabel_fingerprint
*
loadbalancingschemes: an array of
googlecomputeglobalforwardingruleload_balancing_scheme
*
metadatafilters: an array of
googlecomputeglobalforwardingrule` metadatafilters
* names
: an array of google_compute_global_forwarding_rule
name
* networks
: an array of google_compute_global_forwarding_rule
network
* port_ranges
: an array of google_compute_global_forwarding_rule
portrange
* targets
: an array of `googlecomputeglobalforwarding_rule` target
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.