Syntax
A google_compute_backend_services
is used to test a Google BackendService 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_backend_services(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('names') { should include 'inspec-gcp-backend-service' }
its('port_names') { should include 'http' }
its('protocols') { should include 'HTTP' }
its('timeout_secs') { should include '10' }
end
Properties
Properties that can be accessed from the google_compute_backend_services
resource:
See googlecomputebackend_service.md for more detailed information
* affinity_cookie_ttl_secs
: an array of google_compute_backend_service
affinitycookiettlsec
* backends
: an array of `googlecomputebackendservicebackends
*
circuitbreakers: an array of
googlecomputebackendservicecircuit_breakers
*
consistenthashes: an array of
googlecomputebackendserviceconsistent_hash
*
cdnpolicies: an array of
googlecomputebackendservicecdn_policy
*
connectiondrainings: an array of
googlecomputebackendserviceconnection_draining
*
creationtimestamps: an array of
googlecomputebackendservicecreation_timestamp
*
customrequestheaders: an array of
googlecomputebackendservice` customrequestheaders
* fingerprints
: an array of `googlecomputebackendservicefingerprint
*
descriptions: an array of
googlecomputebackendservicedescription
*
enablecdns: an array of
googlecomputebackendservice` enablecdn
* health_checks
: an array of google_compute_backend_service
healthchecks
* ids
: an array of `googlecomputebackendserviceid
*
iaps: an array of
googlecomputebackendserviceiap
*
loadbalancingschemes: an array of
googlecomputebackendserviceload_balancing_scheme
*
localitylbpolicies: an array of
googlecomputebackendservice` localitylbpolicy
* names
: an array of `googlecomputebackendservicename
*
outlierdetections: an array of
googlecomputebackendserviceoutlier_detection
*
portnames: an array of
googlecomputebackendserviceport_name
*
protocols: an array of
googlecomputebackendserviceprotocol
*
securitypolicies: an array of
googlecomputebackendservice` securitypolicy
* session_affinities
: an array of google_compute_backend_service
sessionaffinity
* `timeoutsecs: an array of
googlecomputebackendservice` timeoutsec
* log_configs
: an array of google_compute_backend_service
log_config
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.