Ресурс google_compute_global_forwarding_rules
Синтаксис
Для проверки ресурса Google GlobalForwardingRule используется google_compute_global_forwarding_rules
Ресурс бета-версии
Для этого ресурса доступны поля бета-версии. Чтобы получить доступ к этим полям, включите beta: true в конструктор ресурса
Примеры
describe google_compute_global_forwarding_rules(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('port_ranges') { should include '80-80' }
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_compute_global_forwarding_rules:
Для получения дополнительной информации см. ресурс google_compute_global_forwarding_rule.
creation_timestamps- массив
google_compute_global_forwarding_rulecreation_timestamp descriptions- массив
google_compute_global_forwarding_ruledescription ids- массив
google_compute_global_forwarding_ruleid ip_addresses- массив
google_compute_global_forwarding_ruleip_address ip_protocols- массив
google_compute_global_forwarding_ruleip_protocol ip_versions- массив
google_compute_global_forwarding_ruleip_version labels- (Только для бета-версии) массив
google_compute_global_forwarding_rulelabels label_fingerprints- (Только для бета-версии) массив
google_compute_global_forwarding_rulelabel_fingerprint load_balancing_schemes- массив
google_compute_global_forwarding_ruleload_balancing_scheme metadata_filters- массив
google_compute_global_forwarding_rulemetadata_filters names- массив
google_compute_global_forwarding_rulename networks- массив
google_compute_global_forwarding_rulenetwork port_ranges- массив
google_compute_global_forwarding_ruleport_range targets- массив
google_compute_global_forwarding_ruletarget
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут использоваться с 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_global_forwarding_rules/