Full name: projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey
Returns the public key for the given CryptoKeyVersion
. The CryptoKey.purpose
must be ASYMMETRIC_SIGN
or ASYMMETRIC_DECRYPT
.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The Authorization requires the following IAM permission on the specified resource
|
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:
JSON representation |
---|
{ "pem": string, "algorithm": enum ( |
Fields | |
---|---|
pem |
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 |
The |
pem |
Integrity verification field. A CRC32C checksum of the returned NOTE: This field is in Beta. |
name |
The NOTE: This field is in Beta. |
protection |
The |
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.