Ресурс google_compute_target_pools
Синтаксис
Для проверки ресурса 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_poolbackup_pool creation_timestamps- массив
google_compute_target_poolcreation_timestamp descriptions- массив
google_compute_target_pooldescription failover_ratios- массив
google_compute_target_poolfailover_ratio health_checks- массив
google_compute_target_poolhealth_check ids- массив
google_compute_target_poolid instances- массив
google_compute_target_poolinstances names- массив
google_compute_target_poolname session_affinities- массив
google_compute_target_poolsession_affinity regions- массив
google_compute_target_poolregion
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут использоваться с 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/