title | platform |
---|---|
About the google_compute_backend_services resource |
gcp |
A google_compute_backend_services
is used to test a Google BackendService resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
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 that can be accessed from the google_compute_backend_services
resource:
See google_compute_backend_service.md for more detailed information
affinity_cookie_ttl_secs
: an array ofgoogle_compute_backend_service
affinity_cookie_ttl_secbackends
: an array ofgoogle_compute_backend_service
backendscircuit_breakers
: an array ofgoogle_compute_backend_service
circuit_breakersconsistent_hashes
: an array ofgoogle_compute_backend_service
consistent_hashcdn_policies
: an array ofgoogle_compute_backend_service
cdn_policyconnection_drainings
: an array ofgoogle_compute_backend_service
connection_drainingcreation_timestamps
: an array ofgoogle_compute_backend_service
creation_timestampcustom_request_headers
: an array ofgoogle_compute_backend_service
custom_request_headerscustom_response_headers
: (Beta only) an array ofgoogle_compute_backend_service
custom_response_headersfingerprints
: an array ofgoogle_compute_backend_service
fingerprintdescriptions
: an array ofgoogle_compute_backend_service
descriptionenable_cdns
: an array ofgoogle_compute_backend_service
enable_cdnhealth_checks
: an array ofgoogle_compute_backend_service
health_checksids
: an array ofgoogle_compute_backend_service
idiaps
: an array ofgoogle_compute_backend_service
iapload_balancing_schemes
: an array ofgoogle_compute_backend_service
load_balancing_schemelocality_lb_policies
: an array ofgoogle_compute_backend_service
locality_lb_policynames
: an array ofgoogle_compute_backend_service
nameoutlier_detections
: an array ofgoogle_compute_backend_service
outlier_detectionport_names
: an array ofgoogle_compute_backend_service
port_nameprotocols
: an array ofgoogle_compute_backend_service
protocolsecurity_policies
: an array ofgoogle_compute_backend_service
security_policysession_affinities
: an array ofgoogle_compute_backend_service
session_affinitytimeout_secs
: an array ofgoogle_compute_backend_service
timeout_seclog_configs
: an array ofgoogle_compute_backend_service
log_config
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Compute Engine API is enabled for the current project.