google_compute_backend_services resource
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 google_compute_backend_service for more detailed information.
affinity_cookie_ttl_secs: an array ofgoogle_compute_backend_serviceaffinity_cookie_ttl_secbackends: an array ofgoogle_compute_backend_servicebackendscircuit_breakers: an array ofgoogle_compute_backend_servicecircuit_breakersconsistent_hashes: an array ofgoogle_compute_backend_serviceconsistent_hashcdn_policies: an array ofgoogle_compute_backend_servicecdn_policyconnection_drainings: an array ofgoogle_compute_backend_serviceconnection_drainingcreation_timestamps: an array ofgoogle_compute_backend_servicecreation_timestampcustom_request_headers: an array ofgoogle_compute_backend_servicecustom_request_headerscustom_response_headers: (Beta only) an array ofgoogle_compute_backend_servicecustom_response_headersfingerprints: an array ofgoogle_compute_backend_servicefingerprintdescriptions: an array ofgoogle_compute_backend_servicedescriptionenable_cdns: an array ofgoogle_compute_backend_serviceenable_cdnhealth_checks: an array ofgoogle_compute_backend_servicehealth_checksids: an array ofgoogle_compute_backend_serviceidiaps: an array ofgoogle_compute_backend_serviceiapload_balancing_schemes: an array ofgoogle_compute_backend_serviceload_balancing_schemelocality_lb_policies: an array ofgoogle_compute_backend_servicelocality_lb_policynames: an array ofgoogle_compute_backend_servicenameoutlier_detections: an array ofgoogle_compute_backend_serviceoutlier_detectionport_names: an array ofgoogle_compute_backend_serviceport_nameprotocols: an array ofgoogle_compute_backend_serviceprotocolsecurity_policies: an array ofgoogle_compute_backend_servicesecurity_policysession_affinities: an array ofgoogle_compute_backend_servicesession_affinitytimeout_secs: an array ofgoogle_compute_backend_servicetimeout_seclog_configs: an array ofgoogle_compute_backend_servicelog_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.