Skip to main content

key_rings

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

Overview

Namekey_rings
TypeResource
Idgoogle.cloudkms.key_rings

Fields

NameDatatypeDescription
namestringOutput only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*.
createTimestringOutput only. The time at which this KeyRing was created.

Methods

NameAccessible byRequired ParamsDescription
getSELECTkeyRingsId, locationsId, projectsIdReturns metadata for a given KeyRing.
listSELECTlocationsId, projectsIdLists KeyRings.
createINSERTlocationsId, projectsIdCreate a new KeyRing in a given Project and Location.

SELECT examples

Lists KeyRings.

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

INSERT example

Use the following StackQL query and manifest file to create a new key_rings resource.

/*+ create */
INSERT INTO google.cloudkms.key_rings (
locationsId,
projectsId
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}'
;