Ресурс google_compute_node_templates
Синтаксис
Для проверки ресурса Google NodeTemplate используется google_compute_node_templates
Ресурс Бета-версии
Этот ресурс имеет доступные поля бета-версии. Для получения этих полей включите beta: true в конструктор ресурса
Примеры
describe google_compute_node_templates(project: 'chef-gcp-inspec', region: 'europe-west2') do
its('names') { should include 'inspec-node-template' }
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_compute_node_templates:
Для получения дополнительной информации см. ресурс google_compute_node_template.
creation_timestamps- массив
google_compute_node_templatecreation_timestamp descriptions- массив
google_compute_node_templatedescription names- массив
google_compute_node_templatename node_affinity_labels- массив
google_compute_node_templatenode_affinity_labels node_types- массив
google_compute_node_templatenode_type node_type_flexibilities- массив
google_compute_node_templatenode_type_flexibility server_bindings- (Только бета-версия) массив
google_compute_node_templateserver_binding regions- массив
google_compute_node_templateregion
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства как критерии фильтрации, которые можно использовать с 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_node_templates/