Syntax
A google_compute_region_backend_services
is used to test a Google RegionBackendService 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_region_backend_services(project: 'chef-gcp-inspec', region: 'europe-west2') do
its('count') { should be >= 1 }
its('names') { should include 'inspec-gcp-region-backend-service' }
its('protocols') { should include 'TCP' }
its('timeout_secs') { should include '15' }
end
Properties
Properties that can be accessed from the google_compute_region_backend_services
resource:
See googlecomputeregionbackendservice.md for more detailed information
* affinity_cookie_ttl_secs
: an array of google_compute_region_backend_service
affinitycookiettlsec
* backends
: an array of `googlecomputeregionbackendservicebackends
*
circuitbreakers: an array of
googlecomputeregionbackendservicecircuit_breakers
*
consistenthashes: an array of
googlecomputeregionbackendservice` consistenthash
* connection_drainings
: an array of google_compute_region_backend_service
connectiondraining
* `creationtimestamps: an array of
googlecomputeregionbackendservicecreation_timestamp
*
descriptions: an array of
googlecomputeregionbackendservicedescription
*
failoverpolicies: an array of
googlecomputeregionbackendservice` failoverpolicy
* fingerprints
: an array of google_compute_region_backend_service
fingerprint
* health_checks
: an array of google_compute_region_backend_service
healthchecks
* ids
: an array of `googlecomputeregionbackendserviceid
*
loadbalancingschemes: an array of
googlecomputeregionbackendservice` loadbalancingscheme
* `localitylbpolicies: an array of
googlecomputeregionbackendservice` localitylbpolicy
* names
: an array of `googlecomputeregionbackendservicename
*
outlierdetections: an array of
googlecomputeregionbackendserviceoutlier_detection
*
portnames: an array of
googlecomputeregionbackendservice` portname
* protocols
: an array of google_compute_region_backend_service
protocol
* session_affinities
: an array of google_compute_region_backend_service
sessionaffinity
* `timeoutsecs: an array of
googlecomputeregionbackendservicetimeout_sec
*
logconfigs: an array of
googlecomputeregionbackendservice` logconfig
* networks
: an array of google_compute_region_backend_service
network
* regions
: an array of google_compute_region_backend_service
region
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.