Skip to main content

encryption_spec

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

Overview

Nameencryption_spec
TypeResource
Idgoogle.contactcenterinsights.encryption_spec

Fields

NameDatatypeDescription
namestringImmutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec
kmsKeystringRequired. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by the default Google encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}

Methods

NameAccessible byRequired ParamsDescription
get_encryption_specSELECTlocationsId, projectsIdGets location-level encryption key specification.
initializeEXEClocationsId, projectsIdInitializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

SELECT examples

Gets location-level encryption key specification.

SELECT
name,
kmsKey
FROM google.contactcenterinsights.encryption_spec
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';