Skip to main content

ekm_config

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

Overview

Nameekm_config
TypeResource
Idgoogle.cloudkms.ekm_config

Fields

NameDatatypeDescription
namestringOutput only. The resource name for the EkmConfig in the format projects/*/locations/*/ekmConfig.
defaultEkmConnectionstringOptional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.

Methods

NameAccessible byRequired ParamsDescription
get_ekm_configSELECTlocationsId, projectsIdReturns the EkmConfig singleton resource for a given project and location.
update_ekm_configUPDATElocationsId, projectsIdUpdates the EkmConfig singleton resource for a given project and location.

SELECT examples

Returns the EkmConfig singleton resource for a given project and location.

SELECT
name,
defaultEkmConnection
FROM google.cloudkms.ekm_config
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a ekm_config resource.

/*+ update */
UPDATE google.cloudkms.ekm_config
SET
defaultEkmConnection = '{{ defaultEkmConnection }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';