Spec-Zone.ru › Chef 17

Ресурс google_compute_node_templates

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

Синтаксис

Для проверки ресурса Google NodeTemplate используется google_compute_node_templates.

Ресурс Beta

Этот ресурс содержит доступные поля beta. Для получения этих полей включите 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_template creation_timestamp
descriptions
массив google_compute_node_template description
names
массив google_compute_node_template name
node_affinity_labels
массив google_compute_node_template node_affinity_labels
node_types
массив google_compute_node_template node_type
node_type_flexibilities
массив google_compute_node_template node_type_flexibility
server_bindings
(Только beta) массив google_compute_node_template server_binding
regions
массив google_compute_node_template region

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

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

Spec-Zone.ru

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