Send feedback
Method: cryptoKeyVersions.getPublicKey
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
Choose a location:
global europe-west3 europe-west8 europe-west9 me-central2 us-east1 us-east4 us-west2 us-west1 us-east7 us-central1 us-west3 us-central2 us-west4 us-west8 us-east5 us-south1
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters
name
string
Required. The name
of the CryptoKeyVersion
public key to get.
Authorization requires the following IAM permission on the specified resource name
:
cloudkms.cryptoKeyVersions.viewPublicKey
Request body
The request body must be empty.
Response body
The public keys for a given CryptoKeyVersion
. Obtained via cryptoKeyVersions.getPublicKey
.
If successful, the response body contains data with the following structure:
Fields
pem
string
The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info .
algorithm
enum (CryptoKeyVersionAlgorithm
)
The Algorithm
associated with this key.
pemCrc32c
string (Int64Value format)
Integrity verification field. A CRC32C checksum of the returned PublicKey.pem
. An integrity check of PublicKey.pem
can be performed by computing the CRC32C checksum of PublicKey.pem
and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.
NOTE: This field is in Beta.
name
string
The name
of the CryptoKeyVersion
public key. Provided here for verification.
NOTE: This field is in Beta.
protectionLevel
enum (ProtectionLevel
)
The ProtectionLevel
of the CryptoKeyVersion
public key.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudkms
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]