Skip to main content

ekm_config

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

Overview

Nameekm_config
TypeResource
Idgoogle.cloudkms.ekm_config

Fields

The following fields are returned by SELECT queries:

Successful response

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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ekm_configselectprojectsId, locationsIdReturns the EkmConfig singleton resource for a given project and location.
update_ekm_configupdateprojectsId, locationsIdupdateMaskUpdates the EkmConfig singleton resource for a given project and location.

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
updateMaskstring (google-fieldmask)

SELECT examples

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

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

UPDATE examples

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

UPDATE google.cloudkms.ekm_config
SET
data__defaultEkmConnection = '{{ defaultEkmConnection }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
defaultEkmConnection;