Ресурс google_compute_routes
Синтаксис
Для проверки ресурса маршрута Google используется google_compute_routes
Ресурс бета-версии
Этот ресурс содержит доступные поля бета-версии. Для получения этих полей включите beta: true в конструктор ресурса.
Примеры
describe google_compute_routes(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('dest_ranges') { should include '15.0.0.0/24' }
its('next_hop_ips') { should include '10.2.0.1' }
its('priorities') { should include '100' }
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_compute_routes:
Дополнительную информацию см. в ресурсе google_compute_route.
dest_ranges- массив
google_compute_routedest_range descriptions- массив
google_compute_routedescription names- массив
google_compute_routename networks- массив
google_compute_routenetwork priorities- массив
google_compute_routepriority tags- массив
google_compute_routetags next_hop_gateways- массив
google_compute_routenext_hop_gateway next_hop_instances- массив
google_compute_routenext_hop_instance next_hop_ips- массив
google_compute_routenext_hop_ip next_hop_vpn_tunnels- массив
google_compute_routenext_hop_vpn_tunnel next_hop_networks- массив
google_compute_routenext_hop_network next_hop_ilbs- массив
google_compute_routenext_hop_ilb
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут быть использованы с 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_routes/