Skip to main content

kaj_policy_config

Creates, updates, deletes, gets or lists a kaj_policy_config resource.

Overview

Namekaj_policy_config
TypeResource
Idgoogle.cloudkms.kaj_policy_config

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig".
defaultKeyAccessJustificationPolicyobjectOptional. The default key access justification policy used when a CryptoKey is created in this folder. This is only used when a Key Access Justifications policy is not provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. (id: KeyAccessJustificationsPolicy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kaj_policy_configselectorganizationsIdGets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
update_kaj_policy_configupdateorganizationsIdupdateMaskUpdates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
organizationsIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.

SELECT
name,
defaultKeyAccessJustificationPolicy
FROM google.cloudkms.kaj_policy_config
WHERE organizationsId = '{{ organizationsId }}' -- required;

UPDATE examples

Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.

UPDATE google.cloudkms.kaj_policy_config
SET
data__name = '{{ name }}',
data__defaultKeyAccessJustificationPolicy = '{{ defaultKeyAccessJustificationPolicy }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
defaultKeyAccessJustificationPolicy;