crypto_keys_primary_version
Creates, updates, deletes, gets or lists a crypto_keys_primary_version
resource.
Overview
Name | crypto_keys_primary_version |
Type | Resource |
Id | google.cloudkms.crypto_keys_primary_version |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
update_primary_version | UPDATE | cryptoKeysId, keyRingsId, locationsId, projectsId | Update 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 }}';