Ресурс google_compute_url_maps
Синтаксис
Используется 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_mapcreation_timestamp default_services- массив
google_compute_url_mapdefault_service descriptions- массив
google_compute_url_mapdescription ids- массив
google_compute_url_mapid fingerprints- массив
google_compute_url_mapfingerprint header_actions- массив
google_compute_url_mapheader_action host_rules- массив
google_compute_url_maphost_rules names- массив
google_compute_url_mapname path_matchers- массив
google_compute_url_mappath_matchers tests- массив
google_compute_url_maptests default_url_redirects- массив
google_compute_url_mapdefault_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/