gcloud beta kms keys versions describe Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta kms keys versions describe - get metadata for a given version
- SYNOPSIS
gcloud beta kms keys versions describeVERSION[--attestation-file=ATTESTATION_FILE][--key=KEY][--keyring=KEYRING][--location=LOCATION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Returns metadata for the given version.The optional flag
attestation-filespecifies file to write theattestation object into. The attestation object enables the user to verify theintegrity and provenance of the key. Seehttps://cloud.google.com/kms/docs/attest-keyfor more information about attestations.- EXAMPLES
- The following command returns metadata for version 2 within key
frodowithin the keyringfellowshipin the locationus-east1:gcloudbetakmskeysversionsdescribe2--key=frodo--keyring=fellowship--location=us-east1For key versions with protection level
HSM, use the--attestation-fileflag to save the attestation to a local file.gcloudbetakmskeysversionsdescribe2--key=frodo--keyring=fellowship--location=us-east1--attestation-file=path/to/attestation.dat - POSITIONAL ARGUMENTS
VERSION- Name of the version to describe.
- FLAGS
--attestation-file=ATTESTATION_FILE- Path to the output attestation file.
--key=KEY- The containing key.
--keyring=KEYRING- Key ring of the key.
--location=LOCATION- Location of the keyring.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudkmskeysversionsdescribegcloudalphakmskeysversionsdescribe
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-16 UTC.