Skip to main content

encryption_spec

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

Overview

Nameencryption_spec
TypeResource
Idgoogle.contactcenterinsights.encryption_spec

Fields

The following fields are returned by SELECT queries:

Successful response

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 our default 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_encryption_specselectprojectsId, locationsIdGets location-level encryption key specification.
initializeexecprojectsId, locationsIdInitializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After 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.

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
locationsIdstring
projectsIdstring

SELECT examples

Gets location-level encryption key specification.

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

Lifecycle Methods

Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After 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.

EXEC google.contactcenterinsights.encryption_spec.initialize 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"encryptionSpec": "{{ encryptionSpec }}"
}';