Spec-Zone.ru › Chef 17

Ресурс google_compute_backend_services

[править на GitHub]

Синтаксис

Используется google_compute_backend_services, чтобы проверить ресурс Google BackendService.

Ресурс бета-версии

Этот ресурс имеет доступные поля бета-версии. Чтобы получить доступ к этим полям, включите beta: true в конструктор ресурса.

Примеры

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

Свойства

Свойства, к которым можно получить доступ из ресурса google_compute_backend_services:

Дополнительную информацию см. в ресурсе google_compute_backend_service.

affinity_cookie_ttl_secs
массив google_compute_backend_service affinity_cookie_ttl_sec
backends
массив google_compute_backend_service backends
circuit_breakers
массив google_compute_backend_service circuit_breakers
consistent_hashes
массив google_compute_backend_service consistent_hash
cdn_policies
массив google_compute_backend_service cdn_policy
connection_drainings
массив google_compute_backend_service connection_draining
creation_timestamps
массив google_compute_backend_service creation_timestamp
custom_request_headers
массив google_compute_backend_service custom_request_headers
fingerprints
массив google_compute_backend_service fingerprint
descriptions
массив google_compute_backend_service description
enable_cdns
массив google_compute_backend_service enable_cdn
health_checks
массив google_compute_backend_service health_checks
ids
массив google_compute_backend_service id
iaps
массив google_compute_backend_service iap
load_balancing_schemes
массив google_compute_backend_service load_balancing_scheme
locality_lb_policies
массив google_compute_backend_service locality_lb_policy
names
массив google_compute_backend_service name
outlier_detections
массив google_compute_backend_service outlier_detection
port_names
массив google_compute_backend_service port_name
protocols
массив google_compute_backend_service protocol
security_policies
массив google_compute_backend_service security_policy
session_affinities
массив google_compute_backend_service session_affinity
timeout_secs
массив google_compute_backend_service timeout_sec
log_configs
массив google_compute_backend_service log_config

Критерии фильтрации

Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут быть использованы с where в виде блока или метода.

Разрешения GCP

Убедитесь, что API Compute Engine включен для текущего проекта.

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_compute_backend_services/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API