title | platform |
---|---|
About the google_compute_backend_services resource |
gcp |
A google_compute_backend_services
is used to test a Google BackendService 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
backendscdn_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_timestampfingerprints
: 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_schemenames
: an array ofgoogle_compute_backend_service
nameport_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_sec
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.