Ресурс google_compute_instance_templates
Синтаксис
Для проверки ресурса Google InstanceTemplate используется google_compute_instance_templates
Ресурс бета-версии
Для данного ресурса доступны поля бета-версии. Для получения этих полей включите beta: true в конструктор ресурса.
Примеры
describe google_compute_instance_templates(project: 'chef-gcp-inspec') do
its('names') { should include 'inspec-gcp-instance-template' }
end
Свойства
Свойства, доступные для ресурса google_compute_instance_templates:
Для получения дополнительной информации см. ресурс google_compute_instance_template.
creation_timestamps- массив
google_compute_instance_templatecreation_timestamp descriptions- массив
google_compute_instance_templatedescription ids- массив
google_compute_instance_templateid names- массив
google_compute_instance_templatename properties- массив
google_compute_instance_templateproperties
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут быть использованы с 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_instance_templates/