Skip to main content

crypto_keys_primary_version

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

Overview

Namecrypto_keys_primary_version
TypeResource
Idgoogle.cloudkms.crypto_keys_primary_version

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
update_primary_versionUPDATEcryptoKeysId, keyRingsId, locationsId, projectsIdUpdate the version of a CryptoKey that will be used in Encrypt. Returns an error if called on a key whose purpose is not ENCRYPT_DECRYPT.

UPDATE example

Updates a crypto_keys_primary_version resource.

/*+ update */
UPDATE google.cloudkms.crypto_keys_primary_version
SET
cryptoKeyVersionId = '{{ cryptoKeyVersionId }}'
WHERE
cryptoKeysId = '{{ cryptoKeysId }}'
AND keyRingsId = '{{ keyRingsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';