Cloud Key Management Service (KMS) API Stay organized with collections Save and categorize content based on your preferences.
Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.
Service: cloudkms.googleapis.com
The Service namecloudkms.googleapis.com is needed to create RPC client stubs.
google.cloud.kms.v1.Autokey
| Methods | |
|---|---|
| Creates a newKeyHandle, triggering the provisioning of a newCryptoKey for CMEK use with the given resource type in the configured key project and the same location. |
| Returns theKeyHandle. |
| ListsKeyHandles. |
google.cloud.kms.v1.AutokeyAdmin
| Methods | |
|---|---|
| Returns theAutokeyConfig for a folder or project. |
| Returns the effective Cloud KMS Autokey configuration for a given project. |
| Updates theAutokeyConfig for a folder or a project. |
google.cloud.kms.v1.EkmService
| Methods | |
|---|---|
| Creates a newEkmConnection in a given Project and Location. |
| Returns theEkmConfig singleton resource for a given project and location. |
| Returns metadata for a givenEkmConnection. |
| ListsEkmConnections. |
| Updates theEkmConfig singleton resource for a given project and location. |
| Updates anEkmConnection's metadata. |
| Verifies that Cloud KMS can successfully connect to the external key manager specified by anEkmConnection. |
google.cloud.kms.v1.HsmManagement
| Methods | |
|---|---|
| Approves aSingleTenantHsmInstanceProposal for a givenSingleTenantHsmInstance. |
| Creates a newSingleTenantHsmInstance in a given Project and Location. |
| Creates a newSingleTenantHsmInstanceProposal for a givenSingleTenantHsmInstance. |
| Deletes aSingleTenantHsmInstanceProposal. |
| Executes aSingleTenantHsmInstanceProposal for a givenSingleTenantHsmInstance. |
| Returns metadata for a givenSingleTenantHsmInstance. |
| Returns metadata for a givenSingleTenantHsmInstanceProposal. |
| ListsSingleTenantHsmInstanceProposals. |
| ListsSingleTenantHsmInstances. |
google.cloud.kms.v1.KeyAccessJustificationsConfig
| Methods | |
|---|---|
| Gets theKeyAccessJustificationsPolicyConfig for a given organization, folder, or project. |
| Returns theKeyAccessJustificationsEnrollmentConfig of the resource closest to the given project in hierarchy. |
| Returns theKeyAccessJustificationsPolicyConfig of the resource closest to the given project in hierarchy. |
| Updates theKeyAccessJustificationsPolicyConfig for a given organization, folder, or project. |
google.cloud.kms.v1.KeyManagementService
| Methods | |
|---|---|
| Decrypts data that was encrypted with a public key retrieved fromGetPublicKey corresponding to aCryptoKeyVersion withCryptoKey.purpose ASYMMETRIC_DECRYPT. |
| Signs data using aCryptoKeyVersion withCryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved fromGetPublicKey. |
| Create a newCryptoKey within aKeyRing. |
| Create a newCryptoKeyVersion in aCryptoKey. |
| Create a newImportJob within aKeyRing. |
| Create a newKeyRing in a given Project and Location. |
| Decapsulates data that was encapsulated with a public key retrieved fromGetPublicKey corresponding to aCryptoKeyVersion withCryptoKey.purpose KEY_ENCAPSULATION. |
| Decrypts data that was protected byEncrypt. |
| Schedule aCryptoKeyVersion for destruction. |
| Encrypts data, so that it can only be recovered by a call toDecrypt. |
| Generate random bytes using the Cloud KMS randomness source in the provided location. |
| Returns metadata for a givenCryptoKey, as well as itsprimaryCryptoKeyVersion. |
| Returns metadata for a givenCryptoKeyVersion. |
| Returns metadata for a givenImportJob. |
| Returns metadata for a givenKeyRing. |
| Returns the public key for the givenCryptoKeyVersion. |
| Import wrapped key material into aCryptoKeyVersion. |
| ListsCryptoKeyVersions. |
| ListsCryptoKeys. |
| ListsImportJobs. |
| ListsKeyRings. |
| Signs data using aCryptoKeyVersion withCryptoKey.purpose MAC, producing a tag that can be verified by another source with the same key. |
| Verifies MAC tag using aCryptoKeyVersion withCryptoKey.purpose MAC, and returns a response that indicates whether or not the verification was successful. |
| Decrypts data that was originally encrypted using a raw cryptographic mechanism. |
| Encrypts data using portable cryptographic primitives. |
| Restore aCryptoKeyVersion in theDESTROY_SCHEDULED state. |
| Update aCryptoKey. |
| Update the version of aCryptoKey that will be used inEncrypt. |
| Update aCryptoKeyVersion's metadata. |
google.cloud.location.Locations
| Methods | |
|---|---|
| Gets information about a location. |
| Lists information about the supported locations for this service. |
google.iam.v1.IAMPolicy
| Methods | |
|---|---|
| Gets the access control policy for a resource. |
| Sets the access control policy on the specified resource. |
| Returns permissions that a caller has on the specified resource. |
google.longrunning.Operations
| Methods | |
|---|---|
| Gets the latest state of a long-running operation. |
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 2026-02-11 UTC.