encryption_spec
Creates, updates, deletes, gets or lists a encryption_spec
resource.
Overview
Name | encryption_spec |
Type | Resource |
Id | google.contactcenterinsights.encryption_spec |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec |
kmsKey | string | Required. 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_encryption_spec | SELECT | locationsId, projectsId | Gets location-level encryption key specification. |
initialize | EXEC | locationsId, projectsId | Initializes 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 }}';