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 ofgooglecomputeregionbackendservicecircuit_breakers *consistenthashes: an array ofgooglecomputeregionbackendservice` consistenthash * connection_drainings: an array of google_compute_region_backend_service connectiondraining * `creationtimestamps: an array ofgooglecomputeregionbackendservicecreation_timestamp *descriptions: an array ofgooglecomputeregionbackendservicedescription *failoverpolicies: an array ofgooglecomputeregionbackendservice` 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 ofgooglecomputeregionbackendservice` loadbalancingscheme * `localitylbpolicies: an array ofgooglecomputeregionbackendservice` localitylbpolicy * names: an array of `googlecomputeregionbackendservicename *outlierdetections: an array ofgooglecomputeregionbackendserviceoutlier_detection *portnames: an array ofgooglecomputeregionbackendservice` 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 ofgooglecomputeregionbackendservicetimeout_sec *logconfigs: an array ofgooglecomputeregionbackendservice` 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.