Spec-Zone.ru › Chef 16

Ресурс google_resourcemanager_organization_policy

Синтаксис

Используется для проверки ограничений политики организации. Дополнительную информацию можно найти здесь Ограничения политики организации

Примеры

describe google_resourcemanager_organization_policy(organization_name: "organizations/123456789", constraint: "constraints/compute.disableSerialPortAccess") do
  it { should exist }
  its('constraint') { should eq 'constraints/compute.disableSerialPortAccess' }
  its('boolean_policy.enforced') { should be true }
end

Свойства

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

version
Версия политики.
constraint
Имя ограничения, которое настраивает политика.
update_time
Отметка времени последнего обновления политики.
list_policy
Список разрешенных или запрещенных значений
allowed_values
Список разрешенных значений
denied_values
Список запрещенных значений
boolean_policy
Используется для указания поведения булевой политики
enforced
Если значение true, политика применяется. Если false, любая конфигурация допустима

Разрешения GCP

Убедитесь, что для текущего проекта включен API Cloud Resource Manager: Cloud Resource Manager 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_resourcemanager_organization_policy/

Spec-Zone.ru

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