[KEY_NAME]
with the name of the key you want to enable rotation for, [KEY_RING_NAME]
with the name of the key ring containing the key, and [ROTATION_PERIOD]
with the desired rotation period in seconds.[KEY_NAME]
with the name of the key, [KEY_RING_NAME]
with the name of the key ring, [MEMBER]
with the email address or service account of the user or service account you want to grant access to, and [ROLE]
with the desired IAM role.[KEY_VERSION]
with the version number of the key you want to enable versioning for, [KEY_NAME]
with the name of the key, and [KEY_RING_NAME]
with the name of the key ring.google-cloud-kms
library to retrieve the list of keys in your CloudKMS keyring.rotation_period
property.update_key
method.google-cloud-kms
library to retrieve the list of keys in your CloudKMS keyring.version_template
property.update_key
method.google-cloud-kms
library to retrieve the list of keys in your CloudKMS keyring.logging_config
property.update_crypto_key
method."your-project-id"
, "your-location-id"
, and "your-keyring-id"
with your actual GCP project ID, location ID, and keyring ID respectively.