Spec-Zone.ru › Chef 16

Ресурс google_iam_service_account_keys

Синтаксис

Для проверки ресурса Google ServiceAccountKey используется google_iam_service_account_keys

Примеры

describe google_iam_service_account_keys(project: 'chef-gcp-inspec', service_account: "display-name@project-id.iam.gserviceaccount.com") do
  its('count') { should be <= 1000 }
end

Свойства

Свойства, доступные для ресурса google_iam_service_account_keys:

Для получения дополнительной информации обратитесь к ресурсу google_iam_service_account_key.

key_names
массив из google_iam_service_account_key имен
private_key_types
массив из google_iam_service_account_key типов private_key
key_algorithms
массив из google_iam_service_account_key алгоритмов ключа
private_key_data
массив из google_iam_service_account_key данных private_key
public_key_data
массив из google_iam_service_account_key данных public_key
valid_after_times
массив из google_iam_service_account_key времени действия (после)
valid_before_times
массив из google_iam_service_account_key времени действия (до)
key_types
массив из google_iam_service_account_key типов ключа
service_accounts
массив из google_iam_service_account_key учетных записей сервиса
paths
массив из google_iam_service_account_key путей

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

Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут использоваться с where в качестве блока или метода.

Разрешения GCP

Убедитесь, что API управления идентификацией и доступом (IAM) включен для текущего проекта.

© 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_iam_service_account_keys/

Spec-Zone.ru

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