Spec-Zone.ru › Chef 18

Ресурс google_compute_url_maps

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

Синтаксис

Используется google_compute_url_maps, чтобы протестировать ресурс Google UrlMap.

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

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

Примеры

describe google_compute_url_maps(project: 'chef-gcp-inspec') do
  its('names') { should include 'inspec-gcp-url-map' }
end

Свойства

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

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

creation_timestamps
массив google_compute_url_map creation_timestamp
default_services
массив google_compute_url_map default_service
descriptions
массив google_compute_url_map description
ids
массив google_compute_url_map id
fingerprints
массив google_compute_url_map fingerprint
header_actions
массив google_compute_url_map header_action
host_rules
массив google_compute_url_map host_rules
names
массив google_compute_url_map name
path_matchers
массив google_compute_url_map path_matchers
tests
массив google_compute_url_map tests
default_url_redirects
массив google_compute_url_map default_url_redirect

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

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

Spec-Zone.ru

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