Spec-Zone.ru › Chef 17

Ресурс google_compute_vpn_tunnels

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

Синтаксис

Используется для проверки ресурса Google VpnTunnel.

Ресурс бета-версии

У этого ресурса доступны поля бета-версии. Чтобы получить доступ к этим полям, включите beta: true в конструктор ресурса.

Примеры

describe google_compute_vpn_tunnels(project: 'chef-gcp-inspec', region: 'europe-west2') do
	its('vpn_tunnel_names') { should include 'inspec-vpn-tunnel' }
  its('peer_ips') { should include '15.0.0.120' }
end

Проверка, что для проекта и региона доступно не более указанного количества vpn_tunnels

describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
  its('count') { should be <= 100}
end

Проверка, что ожидаемое имя vpn_tunnel доступно для проекта и региона

describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
  its('vpn_tunnel_names') { should include "vpn_tunnel-name" }
end

Проверка, что ожидаемое имя vpn_tunnel target_vpn_gateways отсутствует для проекта и региона

describe google_compute_vpn_tunnels(project: 'chef-inspec-gcp', region: 'europe-west2') do
  its('vpn_tunnel_target_vpn_gateways') { should not include "gateway-name" }
end

Свойства

Свойства, к которым можно получить доступ из ресурса google_compute_vpn_tunnels:

Дополнительную информацию см. в ресурсе google_compute_vpn_tunnel.

ids
массив из google_compute_vpn_tunnel идентификаторов
creation_timestamps
массив из google_compute_vpn_tunnel creation_timestamp
vpn_tunnel_names
массив из google_compute_vpn_tunnel имен
descriptions
массив из google_compute_vpn_tunnel описаний
target_vpn_gateways
массив из google_compute_vpn_tunnel target_vpn_gateway
vpn_gateways
(Только бета-версия) массив из google_compute_vpn_tunnel vpn_gateway
vpn_gateway_interfaces
(Только бета-версия) массив из google_compute_vpn_tunnel vpn_gateway_interface
peer_external_gateways
(Только бета-версия) массив из google_compute_vpn_tunnel peer_external_gateway
peer_external_gateway_interfaces
(Только бета-версия) массив из google_compute_vpn_tunnel peer_external_gateway_interface
peer_gcp_gateways
(Только бета-версия) массив из google_compute_vpn_tunnel peer_gcp_gateway
routers
массив из google_compute_vpn_tunnel маршрутизаторов
peer_ips
массив из google_compute_vpn_tunnel peer_ip
shared_secrets
массив из google_compute_vpn_tunnel shared_secret
shared_secret_hashes
массив из google_compute_vpn_tunnel shared_secret_hash
ike_versions
массив из google_compute_vpn_tunnel ike_version
local_traffic_selectors
массив из google_compute_vpn_tunnel local_traffic_selector
remote_traffic_selectors
массив из google_compute_vpn_tunnel remote_traffic_selector
labels
(Только бета-версия) массив из google_compute_vpn_tunnel тегов
label_fingerprints
(Только бета-версия) массив из google_compute_vpn_tunnel label_fingerprint
regions
массив из google_compute_vpn_tunnel region

Критерии фильтрации

Этот ресурс поддерживает все вышеперечисленные свойства как критерии фильтрации, которые могут быть использованы с 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_vpn_tunnels/

Spec-Zone.ru

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