Spec-Zone.ru › Chef 17

Ресурс google_compute_http_health_checks

[редактировать на GitHub]

Синтаксис

Для проверки ресурса Google HttpHealthCheck используется google_compute_http_health_checks

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

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

Примеры

describe google_compute_http_health_checks(project: 'chef-gcp-inspec') do
  its('names') { should include 'inspec-gcp-http-health-check' }
  its('timeout_secs') { should include '20' }
  its('check_interval_secs') { should include '20' }
end

Свойства

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

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

check_interval_secs
массив google_compute_http_health_check check_interval_sec
creation_timestamps
массив google_compute_http_health_check creation_timestamp
descriptions
массив google_compute_http_health_check description
healthy_thresholds
массив google_compute_http_health_check healthy_threshold
hosts
массив google_compute_http_health_check host
ids
массив google_compute_http_health_check id
names
массив google_compute_http_health_check name
ports
массив google_compute_http_health_check port
request_paths
массив google_compute_http_health_check request_path
timeout_secs
массив google_compute_http_health_check timeout_sec
unhealthy_thresholds
массив google_compute_http_health_check unhealthy_threshold

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

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

Разрешения GCP

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

© 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_http_health_checks/

Spec-Zone.ru

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