Spec-Zone.ru › Chef 17

Ресурс google_compute_target_pools

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

Синтаксис

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

Ресурс Beta

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

Примеры

describe google_compute_target_pools(project: 'chef-gcp-inspec', region: 'europe-west2') do
  its('names') { should include 'inspec-gcp-target-pool' }
  its('session_affinities') { should include 'CLIENT_IP' }
end

Свойства

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

Для получения дополнительной информации см. ресурс google_compute_target_pool.

backup_pools
массив google_compute_target_pool backup_pool
creation_timestamps
массив google_compute_target_pool creation_timestamp
descriptions
массив google_compute_target_pool description
failover_ratios
массив google_compute_target_pool failover_ratio
health_checks
массив google_compute_target_pool health_check
ids
массив google_compute_target_pool id
instances
массив google_compute_target_pool instances
names
массив google_compute_target_pool name
session_affinities
массив google_compute_target_pool session_affinity
regions
массив google_compute_target_pool region

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

Этот ресурс поддерживает все перечисленные выше свойства в качестве критериев фильтрации, которые можно использовать с 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_target_pools/

Spec-Zone.ru

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