Ресурс 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_groupid names- массив
google_compute_network_endpoint_groupимен descriptions- массив
google_compute_network_endpoint_groupописаний network_endpoint_types- массив
google_compute_network_endpoint_groupnetwork_endpoint_type sizes- массив
google_compute_network_endpoint_groupразмеров networks- массив
google_compute_network_endpoint_groupсетей subnetworks- массив
google_compute_network_endpoint_groupподсетей default_ports- массив
google_compute_network_endpoint_groupdefault_port 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/