Skip to main content

encryption_configs

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

Overview

Nameencryption_configs
TypeResource
Idgoogle.dataplex.encryption_configs

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.
createTimestring (google-datetime)Output only. The time when the Encryption configuration was created.
encryptionStatestringOutput only. The state of encryption of the databases.
etagstringEtag of the EncryptionConfig. This is a strong etag.
failureDetailsobjectOutput only. Details of the failure if anything related to Cmek db fails. (id: GoogleCloudDataplexV1EncryptionConfigFailureDetails)
keystringOptional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.
updateTimestring (google-datetime)Output only. The time when the Encryption configuration was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_locations_encryption_configs_getselectorganizationsId, locationsId, encryptionConfigsIdGet an EncryptionConfig.
organizations_locations_encryption_configs_listselectorganizationsId, locationsIdpageSize, pageToken, filter, orderByList EncryptionConfigs.
organizations_locations_encryption_configs_createinsertorganizationsId, locationsIdencryptionConfigIdCreate an EncryptionConfig.
organizations_locations_encryption_configs_patchupdateorganizationsId, locationsId, encryptionConfigsIdupdateMaskUpdate an EncryptionConfig.
organizations_locations_encryption_configs_deletedeleteorganizationsId, locationsId, encryptionConfigsIdetagDelete an EncryptionConfig.

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
encryptionConfigsIdstring
locationsIdstring
organizationsIdstring
encryptionConfigIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Get an EncryptionConfig.

SELECT
name,
createTime,
encryptionState,
etag,
failureDetails,
key,
updateTime
FROM google.dataplex.encryption_configs
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND encryptionConfigsId = '{{ encryptionConfigsId }}' -- required;

INSERT examples

Create an EncryptionConfig.

INSERT INTO google.dataplex.encryption_configs (
data__name,
data__key,
data__etag,
organizationsId,
locationsId,
encryptionConfigId
)
SELECT
'{{ name }}',
'{{ key }}',
'{{ etag }}',
'{{ organizationsId }}',
'{{ locationsId }}',
'{{ encryptionConfigId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update an EncryptionConfig.

UPDATE google.dataplex.encryption_configs
SET
data__name = '{{ name }}',
data__key = '{{ key }}',
data__etag = '{{ etag }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND encryptionConfigsId = '{{ encryptionConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete an EncryptionConfig.

DELETE FROM google.dataplex.encryption_configs
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND encryptionConfigsId = '{{ encryptionConfigsId }}' --required
AND etag = '{{ etag }}';