Ресурс google_compute_network_endpoint_groups
Синтаксис
Для проверки ресурса Google NetworkEndpointGroup используется google_compute_network_endpoint_groups
Ресурс Beta
В этом ресурсе доступны поля Beta. Для получения этих полей включите beta: true в конструктор ресурса
Примеры
describe google_compute_network_endpoint_groups(project: 'chef-gcp-inspec', zone: 'zone') do
its('default_ports') { should include '90' }
its('names') { should include 'inspec-gcp-endpoint-group' }
end
Свойства
Свойства, которые можно получить из ресурса google_compute_network_endpoint_groups:
Для получения дополнительной информации см. ресурс google_compute_network_endpoint_group.
ids- массив
google_compute_network_endpoint_groupидентификаторов names- массив
google_compute_network_endpoint_groupимён descriptions- массив
google_compute_network_endpoint_groupописаний network_endpoint_types- массив
google_compute_network_endpoint_groupтипов конечных точек сети sizes- массив
google_compute_network_endpoint_groupразмеров networks- массив
google_compute_network_endpoint_groupсетей subnetworks- массив
google_compute_network_endpoint_groupподсетей default_ports- массив
google_compute_network_endpoint_groupпортов по умолчанию zones- массив
google_compute_network_endpoint_groupзон
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые можно использовать с 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_network_endpoint_groups/