Spec-Zone.ru › Chef 18

Ресурс google_compute_routes

[править на GitHub]

Синтаксис

Для проверки ресурса маршрута 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_route dest_range
descriptions
массив google_compute_route description
names
массив google_compute_route name
networks
массив google_compute_route network
priorities
массив google_compute_route priority
tags
массив google_compute_route tags
next_hop_gateways
массив google_compute_route next_hop_gateway
next_hop_instances
массив google_compute_route next_hop_instance
next_hop_ips
массив google_compute_route next_hop_ip
next_hop_vpn_tunnels
массив google_compute_route next_hop_vpn_tunnel
next_hop_networks
массив google_compute_route next_hop_network
next_hop_ilbs
массив google_compute_route next_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/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API