Google Cloud KMS Projects API

The Projects API from Google Cloud KMS — 65 operation(s) for projects.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Cybersecurity Management BC-620

Operations 83

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/projects/{projectsId}:showEffectiveKeyAccessJustificationsEnrollmentConfig Get the key access justification enrollment config · Show effective key access justifications enrollment config projects #
Ask an LLM
“Is key access justification enrollment turned on for my project?”
“What justification enrollment setting applies to a project in the hierarchy?”
Tell an agent
Show the effective key access justification enrollment config for project {projectsId}.
Check whether key access justification enrollment is enabled at project {projectsId}.
GET /v1/projects/{projectsId}/kajPolicyConfig Get the key access justification policy config · Get kaj policy config projects #
Ask an LLM
“What key access justification policy is set on my project?”
“Can I read the KAJ policy config for a folder or project?”
Tell an agent
Get the key access justification policy config for project {projectsId}.
Show the KAJ policy settings on {projectsId}.
PATCH /v1/projects/{projectsId}/kajPolicyConfig Update the key access justification policy config · Update kaj policy config projects #
Ask an LLM
“How do I change the key access justification policy on a project?”
“Can I set a default justification policy for a folder?”
Tell an agent
Update the key access justification policy config on project {projectsId} with {defaultKeyAccessJustificationPolicy}.
Set the KAJ policy on {projectsId} to {defaultKeyAccessJustificationPolicy}, updating only {updateMask}.
GET /v1/projects/{projectsId}:showEffectiveKeyAccessJustificationsPolicyConfig Get the effective key access justification policy · Show effective key access justifications policy config projects #
Ask an LLM
“Which key access justification policy applies to my project?”
“What does the effective KAJ policy look like for a project?”
Tell an agent
Show the effective key access justification policy config for project {projectsId}.
Get the effective KAJ policy that applies to {projectsId}.
GET /v1/projects/{projectsId}:showEffectiveAutokeyConfig Get the effective Autokey config · Show effective autokey config projects #
Ask an LLM
“What Autokey configuration applies to my project?”
“Is Autokey enabled for a folder or project?”
Tell an agent
Show the effective Autokey config for project {projectsId}.
Check whether Autokey is enabled on {projectsId}.
GET /v1/projects/{projectsId}/autokeyConfig Get the Autokey config · Get autokey config projects #
Ask an LLM
“Where does Autokey create keys for my project?”
“Can I read the Autokey config for a folder or project?”
Tell an agent
Get the Autokey config for project {projectsId}.
Show the Autokey key project setting on {projectsId}.
PATCH /v1/projects/{projectsId}/autokeyConfig Update the Autokey config · Update autokey config projects #
Ask an LLM
“How do I change where Autokey creates keys for a folder?”
“Can I switch the key project resolution mode for Autokey?”
Tell an agent
Update the Autokey config on project {projectsId} to key project {keyProject}.
Set the Autokey key project resolution mode on {projectsId} to {keyProjectResolutionMode}.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConfig Get the EKM config for a location · Get ekm config locations #
Ask an LLM
“Which external key manager connection is the default for a location?”
“Can I read the EKM config for a project and location?”
Tell an agent
Get the EKM config for project {projectsId} in location {locationsId}.
Show the default external key manager connection on {projectsId}/{locationsId}.
PATCH /v1/projects/{projectsId}/locations/{locationsId}/ekmConfig Update the EKM config for a location · Update ekm config locations #
Ask an LLM
“How do I change the default external key manager connection for a location?”
“Can I remove the default EKM connection on a project?”
Tell an agent
Update the EKM config for project {projectsId} in location {locationsId} to default connection {defaultEkmConnection}.
Set the default external key manager connection on {projectsId}/{locationsId} to {defaultEkmConnection}.
POST /v1/projects/{projectsId}/locations/{locationsId}:generateRandomBytes Generate random bytes in a location · Generate random bytes locations #
Ask an LLM
“Can I get random bytes from Cloud KMS in a specific location?”
“What's the maximum length of random bytes I can generate per request?”
Tell an agent
Generate {lengthBytes} random bytes in project {projectsId} at location {locationsId}.
Generate {lengthBytes} random bytes in {projectsId}/{locationsId} using protection level {protectionLevel}.
GET /v1/projects/{projectsId}/locations List KMS locations for a project · List locations #
Ask an LLM
“Which regions and zones support Cloud KMS for my project?”
“Can I filter the KMS locations available to a project?”
Tell an agent
List the KMS locations available to project {projectsId}.
Show KMS locations for {projectsId} matching {filter}.
GET /v1/projects/{projectsId}/locations/{locationsId} Get a KMS location · Get locations #
Ask an LLM
“What information is available about one KMS location?”
“Can I look up a single Cloud KMS location by its ID?”
Tell an agent
Get KMS location {locationsId} in project {projectsId}.
Show details for Cloud KMS location {locationsId} under {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/ekmConfig:testIamPermissions Test IAM permissions on the EKM config · Test iam permissions ekmConfig #
Ask an LLM
“Does my service account have the permissions to read the EKM config?”
“Can I check a caller's permissions on the external key manager config?”
Tell an agent
Test permissions {permissions} on the EKM config of project {projectsId} in location {locationsId}.
Check whether I can read the external key manager config at {projectsId}/{locationsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConfig:getIamPolicy Get the IAM policy on the EKM config · Get iam policy ekmConfig #
Ask an LLM
“Who has access to the external key manager config?”
“Can I read the IAM policy on the EKM config for a location?”
Tell an agent
Get the IAM policy on the EKM config of project {projectsId} in location {locationsId}.
Show the access control policy for the external key manager config at {projectsId}/{locationsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/ekmConfig:setIamPolicy Set the IAM policy on the EKM config · Set iam policy ekmConfig #
Ask an LLM
“How do I grant a service account access to the external key manager config?”
“Can I replace the IAM policy on the EKM config for a location?”
Tell an agent
Set the IAM policy on the EKM config of project {projectsId} in location {locationsId} to {policy}.
Replace the access control policy on the external key manager config at {projectsId}/{locationsId} with {policy}.
GET /v1/projects/{projectsId}/locations/{locationsId}/retiredResources/{retiredResourcesId} Get a retired CryptoKey record · Get retiredResources #
Ask an LLM
“Can I look up the record of a deleted CryptoKey?”
“What does a retired resource for a deleted key contain?”
Tell an agent
Get retired resource {retiredResourcesId} in project {projectsId} at location {locationsId}.
Show the record of the deleted CryptoKey {retiredResourcesId} in {projectsId}/{locationsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/retiredResources List retired CryptoKey records · List retiredResources #
Ask an LLM
“Which deleted CryptoKeys have retired resource records?”
“Can I page through the list of retired CryptoKey records?”
Tell an agent
List retired resources in project {projectsId} at location {locationsId}.
Show the first {pageSize} retired CryptoKey records for {projectsId}/{locationsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances List single-tenant HSM instances · List singleTenantHsmInstances #
Ask an LLM
“Which single-tenant HSM instances exist in my project and location?”
“Can I include deleted HSM instances when listing them?”
Tell an agent
List single-tenant HSM instances in project {projectsId} at location {locationsId}.
Show {filter} single-tenant HSM instances in {projectsId}/{locationsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances Create a single-tenant HSM instance · Create singleTenantHsmInstances #
Ask an LLM
“How do I provision a single-tenant HSM instance for my project?”
“Can I enable key portability when creating an HSM instance?”
Tell an agent
Create a single-tenant HSM instance in project {projectsId} at location {locationsId}.
Create an HSM instance in {projectsId}/{locationsId} with key portability {keyPortabilityEnabled}.
GET /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId} Get a single-tenant HSM instance · Get singleTenantHsmInstances #
Ask an LLM
“What state is my single-tenant HSM instance in?”
“Can I read the metadata of an HSM instance?”
Tell an agent
Get single-tenant HSM instance {singleTenantHsmInstancesId} in project {projectsId} at location {locationsId}.
Show the state of HSM instance {singleTenantHsmInstancesId} in {projectsId}/{locationsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals/{proposalsId}:execute Execute a proposal on a single-tenant HSM instance · Execute proposals #
Ask an LLM
“How do I execute a proposal on a single-tenant HSM instance?”
“Can I execute a proposal that is still pending?”
Tell an agent
Execute proposal {proposal} on single-tenant HSM instance {instance} in {location}, project {project}.
Run the proposal to approve it on HSM instance {instance}.
GET /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals List proposals on a single-tenant HSM instance · List proposals #
Ask an LLM
“Which proposals exist for a single-tenant HSM instance?”
“Can I list only the proposals that are still pending?”
Tell an agent
List proposals for single-tenant HSM instance {instance} in {location}, project {project}.
Show pending proposals on HSM instance {instance}.
POST /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals Create a proposal on a single-tenant HSM instance · Create proposals #
Ask an LLM
“How do I create a proposal to add a quorum member to a single-tenant HSM instance?”
“Can I create a proposal to disable or delete a single-tenant HSM instance?”
Tell an agent
Create a proposal on single-tenant HSM instance {instance} in {location}, project {project}.
Create a proposal to add a quorum member to HSM instance {instance}.
POST /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals/{proposalsId}:approve Approve a proposal on a single-tenant HSM instance · Approve proposals #
Ask an LLM
“How do I approve a proposal on a single-tenant HSM instance?”
“Can I approve a proposal with a quorum reply?”
Tell an agent
Approve proposal {proposal} on single-tenant HSM instance {instance} in {location}, project {project}.
Approve HSM instance proposal {proposal} with quorum reply {reply}.
DELETE /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals/{proposalsId} Delete a proposal on a single-tenant HSM instance · Delete proposals #
Ask an LLM
“How do I delete a proposal on a single-tenant HSM instance?”
“Can I remove an old HSM instance proposal?”
Tell an agent destructive · confirm first
Delete proposal {proposal} on single-tenant HSM instance {instance} in {location}, project {project}.
Remove HSM instance proposal {proposal}.
GET /v1/projects/{projectsId}/locations/{locationsId}/singleTenantHsmInstances/{singleTenantHsmInstancesId}/proposals/{proposalsId} Get a proposal on a single-tenant HSM instance · Get proposals #
Ask an LLM
“What is the state of a proposal on a single-tenant HSM instance?”
“Can I look up one HSM instance proposal by its ID?”
Tell an agent
Get proposal {proposal} on single-tenant HSM instance {instance} in {location}, project {project}.
Show the state of HSM instance proposal {proposal}.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections List external key manager connections · List ekmConnections #
Ask an LLM
“Which external key manager connections exist in my project?”
“Can I list EKM connections in a region?”
Tell an agent
List EKM connections in {location}, project {project}.
Show all external key manager connections.
POST /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections Create an external key manager connection · Create ekmConnections #
Ask an LLM
“How do I connect Cloud KMS to an external key manager?”
“Can I set the key management mode when creating an EKM connection?”
Tell an agent
Create an EKM connection in {location}, project {project}.
Create an external key manager connection with service resolvers {resolvers}.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId}:getIamPolicy Get the IAM policy of an EKM connection · Get iam policy ekmConnections #
Ask an LLM
“What access control policy is set on an external key manager connection?”
“Can I get the IAM policy for an EKM connection?”
Tell an agent
Get the IAM policy of EKM connection {connection} in {location}, project {project}.
Show the access control policy on external key manager connection {connection}.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId}:verifyConnectivity Verify connectivity to an external key manager · Verify connectivity ekmConnections #
Ask an LLM
“Is Cloud KMS able to reach my external key manager?”
“How do I test connectivity to an EKM connection?”
Tell an agent
Verify connectivity to EKM connection {connection} in {location}, project {project}.
Test that external key manager connection {connection} is reachable.
GET /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId} Get an external key manager connection · Get ekmConnections #
Ask an LLM
“What are the details of an external key manager connection?”
“Can I look up one EKM connection by its ID?”
Tell an agent
Get EKM connection {connection} in {location}, project {project}.
Show external key manager connection {connection}.
PATCH /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId} Update an external key manager connection · Patch ekmConnections #
Ask an LLM
“How do I change the service resolvers of an external key manager connection?”
“Can I update the key management mode on an EKM connection?”
Tell an agent
Update EKM connection {connection} in {location}, project {project}.
Patch external key manager connection {connection} with resolvers {resolvers}.
POST /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId}:setIamPolicy Set the IAM policy of an EKM connection · Set iam policy ekmConnections #
Ask an LLM
“How do I grant a user access to an external key manager connection?”
“Can I replace the IAM policy on an EKM connection?”
Tell an agent
Set the IAM policy on EKM connection {connection} in {location}, project {project}.
Replace the access control policy on external key manager connection {connection}.
POST /v1/projects/{projectsId}/locations/{locationsId}/ekmConnections/{ekmConnectionsId}:testIamPermissions Test IAM permissions on an EKM connection · Test iam permissions ekmConnections #
Ask an LLM
“Does my service account have the permissions to manage an external key manager connection?”
“Can I check what permissions a caller has on an EKM connection?”
Tell an agent
Test permissions {permissions} on EKM connection {connection} in {location}, project {project}.
Check whether I can manage external key manager connection {connection}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}:testIamPermissions Test IAM permissions on a key ring · Test iam permissions keyRings #
Ask an LLM
“Does my service account have the permissions to manage a key ring?”
“Can I check what permissions a caller has on a key ring?”
Tell an agent
Test permissions {permissions} on key ring {ring} in {location}, project {project}.
Check whether I can manage key ring {ring}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}:getIamPolicy Get the IAM policy of a key ring · Get iam policy keyRings #
Ask an LLM
“What access control policy is set on a key ring?”
“Can I get the IAM policy for a key ring?”
Tell an agent
Get the IAM policy of key ring {ring} in {location}, project {project}.
Show the access control policy on key ring {ring}.
DELETE /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId} Delete a key ring · Delete keyRings #
Ask an LLM
“How do I permanently delete a key ring?”
“What must be deleted before I can delete a key ring?”
Tell an agent destructive · confirm first
Delete key ring {ring} in {location}, project {project}.
Permanently remove key ring {ring}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId} Get a key ring · Get keyRings #
Ask an LLM
“What are the details of a key ring?”
“Can I look up one key ring by its ID?”
Tell an agent
Get key ring {ring} in {location}, project {project}.
Show key ring {ring}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings List key rings · List keyRings #
Ask an LLM
“Which key rings exist in my project?”
“Can I list key rings in a region?”
Tell an agent
List key rings in {location}, project {project}.
Show all key rings.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings Create a key ring · Create keyRings #
Ask an LLM
“How do I create a new key ring to hold my keys?”
“Can I create a key ring in a specific region?”
Tell an agent
Create a key ring in {location}, project {project}.
Create a new key ring for storing keys.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}:setIamPolicy Set IAM policy on a key ring · Set iam policy keyRings #
Ask an LLM
“How do I change who can access a key ring?”
“Can I replace the whole IAM policy on a key ring?”
Tell an agent
Set the IAM policy on key ring {keyRingsId} in {locationsId}, project {projectsId}.
Replace the access policy of key ring {keyRingsId} in {locationsId}, project {projectsId}, with {policy}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:decrypt Decrypt data with a key · Decrypt cryptoKeys #
Ask an LLM
“How do I decrypt data that was encrypted with a key ring key?”
“Can I verify the data was not tampered with when decrypting?”
Tell an agent
Decrypt {ciphertext} with key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Decrypt {ciphertext} using key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, with additional data {additionalAuthenticatedData}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:testIamPermissions Test whether I can do something with a key · Test iam permissions cryptoKeys #
Ask an LLM
“Can I check what I am allowed to do with a key before editing it?”
“What permissions does my service account have on a key?”
Tell an agent
Test my permissions {permissions} on crypto key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId}.
Check whether I'm granted {permissions} on key {cryptoKeysId} in project {projectsId}, location {locationsId}, ring {keyRingsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys List keys in a key ring · List cryptoKeys #
Ask an LLM
“Which keys are in my key ring?”
“Can I filter the keys in a key ring by purpose?”
Tell an agent
List keys in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
List keys in key ring {keyRingsId} in {locationsId}, project {projectsId}, matching {filter}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys Create a key in a key ring · Create cryptoKeys #
Ask an LLM
“How do I create a new key in a key ring?”
“Can I skip creating the first version of a key when I create it?”
Tell an agent
Create key {cryptoKeyId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Create key {cryptoKeyId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, with purpose {purpose} and version template {versionTemplate}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:encrypt Encrypt data with a key · Encrypt cryptoKeys #
Ask an LLM
“How do I encrypt data so only a key can decrypt it?”
“Can I attach additional authenticated data to encrypted data?”
Tell an agent
Encrypt {plaintext} with key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Encrypt {plaintext} using key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, with additional data {additionalAuthenticatedData}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:setIamPolicy Replace the IAM policy on a key · Set iam policy cryptoKeys #
Ask an LLM
“Can I replace the access policy on a key with a new one?”
“What happens if I set a key's IAM policy when the key doesn't exist?”
Tell an agent
Replace the IAM policy on crypto key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId}.
Set key {cryptoKeysId}'s policy to {policy}, project {projectsId}, location {locationsId}, ring {keyRingsId}.
DELETE /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId} Permanently delete a key · Delete cryptoKeys #
Ask an LLM
“Can I permanently delete a crypto key and all its versions at once?”
“What state must a key be in before I can delete it?”
Tell an agent destructive · confirm first
Permanently delete crypto key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId}.
Delete key {cryptoKeysId} from project {projectsId}, location {locationsId}, ring {keyRingsId}.
PATCH /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId} Update a key's metadata · Patch cryptoKeys #
Ask an LLM
“How do I change a key's labels or rotation schedule?”
“Can I rotate a key's primary version?”
Tell an agent
Update key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Rotate key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, so its primary version is {primary}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId} Get a key's metadata · Get cryptoKeys #
Ask an LLM
“What is the primary version of a key?”
“Can I look up a key by its ID?”
Tell an agent
Get key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Show the primary version of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:getIamPolicy Get a key's IAM policy · Get iam policy cryptoKeys #
Ask an LLM
“What access policy is set on a key?”
“Can I read the IAM policy of a key ring key?”
Tell an agent
Get the IAM policy on key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Show who has access to key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}:updatePrimaryVersion Make a key version the primary · Update primary version cryptoKeys #
Ask an LLM
“How do I make a different version of a key the primary one?”
“Can I change which key version is used for encryption?”
Tell an agent
Make version {cryptoKeyVersionId} the primary version of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Set key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, to use version {cryptoKeyVersionId} as its primary.
PATCH /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId} Update a key version's metadata · Patch cryptoKeyVersions #
Ask an LLM
“How do I disable a key version?”
“Can I change a key version's state between enabled and disabled?”
Tell an agent
Update version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Set the state of version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, to {state}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId} Get a key version's metadata · Get cryptoKeyVersions #
Ask an LLM
“What state is a key version in?”
“Can I look up one version of a key by its ID?”
Tell an agent
Get version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Show the state of version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
DELETE /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId} Permanently delete a key version · Delete cryptoKeyVersions #
Ask an LLM
“Can I permanently delete one version of a key without deleting the key itself?”
“Can I delete an imported key version that failed to import?”
Tell an agent destructive · confirm first
Permanently delete version {cryptoKeyVersionsId} of key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId}.
Drop version {cryptoKeyVersionsId} from key {cryptoKeysId}, project {projectsId}, location {locationsId}, ring {keyRingsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}/publicKey Get a key version's public key · Get public key cryptoKeyVersions #
Ask an LLM
“What public key can I use to verify a signature from a key version?”
“Can I get the public key of a key version in a particular format?”
Tell an agent
Get the public key of version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Export the public key of version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}, as {publicKeyFormat}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:macVerify Verify a MAC tag · Mac verify cryptoKeyVersions #
Ask an LLM
“How do I check that a MAC tag is valid for some data?”
“Can I verify a MAC using a key version?”
Tell an agent
Verify MAC {mac} for data {data} using version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Check that MAC {mac} matches data {data} with key version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:asymmetricSign Sign data with a key version · Asymmetric sign cryptoKeyVersions #
Ask an LLM
“How do I sign data with a key version so it can be verified?”
“Can I sign a digest instead of raw data?”
Tell an agent
Sign {data} with version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Sign digest {digest} using version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:restore Restore a deleted key version · Restore cryptoKeyVersions #
Ask an LLM
“How do I bring back a key version that was scheduled for destruction?”
“Can I restore a key version that failed to generate?”
Tell an agent
Restore version {cryptoKeyVersionsId} of key {cryptoKeysId} in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
Bring key version {cryptoKeyVersionsId} of key {cryptoKeysId} back from destruction in key ring {keyRingsId}, location {locationsId}, project {projectsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions List versions of a Cloud KMS key · List cryptoKeyVersions #
Ask an LLM
“What versions exist for a Cloud KMS crypto key?”
“Can I filter or sort the versions of a key?”
Tell an agent
List versions of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Show {view} versions of key {cryptoKey} matching {filter}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions Create a version of a Cloud KMS key · Create cryptoKeyVersions #
Ask an LLM
“How do I add a new version to an existing Cloud KMS key?”
“Can I set the state of a new key version when creating it?”
Tell an agent
Create a version of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Add a new version to key {cryptoKey} with state {state}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions:importTrustedKeyWrappedCryptoKeyVersion Import key material wrapped by a trusted key · Import trusted key wrapped crypto key version cryptoKeyVersions #
Ask an LLM
“Can I import key material that was wrapped by a trusted key into a key version?”
“What happens to trusted wrapping on a version imported with a trusted key?”
Tell an agent
Import trusted-key-wrapped material {wrappedKey} using trusted key {importingKey} into key {cryptoKeysId}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
Reimport trusted-wrapped key material into existing version {cryptoKeyVersion} of key {cryptoKeysId} with algorithm {algorithm}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:asymmetricDecrypt Decrypt data with an asymmetric key version · Asymmetric decrypt cryptoKeyVersions #
Ask an LLM
“How do I decrypt data that was encrypted with a public key?”
“Can I verify the CRC32C checksum of the ciphertext when decrypting?”
Tell an agent
Decrypt ciphertext {ciphertext} with version {version} of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Verify ciphertext {ciphertext} CRC32C {ciphertextCrc32c} when decrypting with key {cryptoKey} version {version}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:decapsulate Decapsulate a wrapped key · Decapsulate cryptoKeyVersions #
Ask an LLM
“How do I unwrap a key that was encapsulated with a public key?”
“Can I verify the encapsulation ciphertext checksum?”
Tell an agent
Decapsulate ciphertext {ciphertext} with version {version} of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Verify ciphertext {ciphertext} CRC32C {ciphertextCrc32c} when decapsulating with key {cryptoKey} version {version}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:rawEncrypt Encrypt data with raw primitives · Raw encrypt cryptoKeyVersions #
Ask an LLM
“How do I encrypt data using the raw AES or ChaCha20 primitives?”
“Can I add authenticated data and an initialization vector to raw encryption?”
Tell an agent
Encrypt plaintext {plaintext} with version {version} of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Encrypt {plaintext} with authenticated data {additionalAuthenticatedData} and IV {initializationVector} using key {cryptoKey} version {version}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:macSign Sign data with an HMAC key version · Mac sign cryptoKeyVersions #
Ask an LLM
“Can I sign data with a MAC crypto key version and verify it elsewhere?”
“What data does a MAC key version sign to produce its authentication tag?”
Tell an agent
Sign data {data} with MAC version {cryptoKeyVersionsId} of key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId}.
Produce an HMAC tag for {data} using version {cryptoKeyVersionsId} of key {cryptoKeysId}, project {projectsId}, location {locationsId}, ring {keyRingsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:exportTrustedKeyWrappedCryptoKeyVersion Export a key wrapped with a trusted key · Export trusted key wrapped crypto key version cryptoKeyVersions #
Ask an LLM
“How do I export a key that was wrapped with a trusted key?”
“Can I export a key version using a specific wrapping key?”
Tell an agent
Export wrapped key version {version} of key {cryptoKey} in key ring {keyRing}, location {location}, project {project}.
Export key {cryptoKey} version {version} wrapped with key {wrappingKey}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:destroy Schedule a key version for destruction · Destroy cryptoKeyVersions #
Ask an LLM
“Can I schedule a key version to be destroyed?”
“What happens to a key version's state once I schedule its destruction?”
Tell an agent destructive · confirm first
Schedule version {cryptoKeyVersionsId} of key {cryptoKeysId} in {locationsId}, ring {keyRingsId}, project {projectsId} for destruction.
Mark key version {cryptoKeyVersionsId} of {cryptoKeysId} as destroy-scheduled, project {projectsId}, location {locationsId}, ring {keyRingsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions/{cryptoKeyVersionsId}:rawDecrypt Decrypt data encrypted with a raw mechanism · Raw decrypt cryptoKeyVersions #
Ask an LLM
“Can I decrypt data that was encrypted with a raw AES-style mechanism?”
“Does raw decryption need the original initialization vector?”
Tell an agent
Raw decrypt ciphertext {ciphertext} with IV {initializationVector} using version {cryptoKeyVersionsId} of key {cryptoKeysId}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
Raw decrypt {ciphertext} with tag length {tagLength} using version {cryptoKeyVersionsId} of key {cryptoKeysId}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/cryptoKeyVersions:import Import wrapped key material using an import job · Import cryptoKeyVersions #
Ask an LLM
“Can I bring my own wrapped key material into a key using an import job?”
“Can I reimport key material into an existing version of a key?”
Tell an agent
Import key material wrapped with {wrappedKey} using import job {importJob} into key {cryptoKeysId}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
Reimport import-job key material into existing version {cryptoKeyVersion} of key {cryptoKeysId} with algorithm {algorithm}, ring {keyRingsId}, location {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs/{importJobsId}:testIamPermissions Check IAM permissions on an import job · Test iam permissions importJobs #
Ask an LLM
“Which permissions does a service account have on an import job?”
“Can I test IAM permissions on an import job before using it?”
Tell an agent
Test permissions {permissions} on import job {importJob} in key ring {keyRing}, location {location}, project {project}.
Check if I can use import job {importJob} in key ring {keyRing}, location {location}, project {project}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs/{importJobsId}:setIamPolicy Set the IAM policy on an import job · Set iam policy importJobs #
Ask an LLM
“How do I grant a service account permissions on an import job?”
“Can I replace the IAM policy on an import job?”
Tell an agent
Set the IAM policy {policy} on import job {importJob} in key ring {keyRing}, location {location}, project {project}.
Replace the policy on import job {importJob} in key ring {keyRing}, location {location}, project {project} with {policy}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs/{importJobsId} Get an import job's metadata · Get importJobs #
Ask an LLM
“What public key and state does an import job have?”
“Can I get an import job's public key in a specific format?”
Tell an agent
Get import job {importJob} in key ring {keyRing}, location {location}, project {project}.
Get import job {importJob} in key ring {keyRing}, location {location}, project {project} with public key format {publicKeyFormat}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs/{importJobsId}:getIamPolicy Get the IAM policy on an import job · Get iam policy importJobs #
Ask an LLM
“What access control policy is set on an import job?”
“Can I get an import job's policy at a specific version?”
Tell an agent
Get the IAM policy on import job {importJob} in key ring {keyRing}, location {location}, project {project}.
Get import job {importJob} policy at version {version}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs Create an import job for key material · Create importJobs #
Ask an LLM
“How do I create an import job to bring key material into Cloud KMS?”
“Can I choose the wrapping method and protection level when creating an import job?”
Tell an agent
Create an import job {importJobId} in key ring {keyRing}, location {location}, project {project} with wrapping method {importMethod} and protection level {protectionLevel}.
Create an import job {importJobId} in key ring {keyRing}, location {location}, project {project} using wrapping method {importMethod}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/importJobs List import jobs in a key ring · List importJobs #
Ask an LLM
“Which import jobs exist in a key ring?”
“Can I filter or sort the import jobs in a key ring?”
Tell an agent
List import jobs in key ring {keyRing}, location {location}, project {project}.
Show import jobs in key ring {keyRing}, location {location}, project {project} matching {filter}.
GET /v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId} Get a long-running operation's status · Get operations #
Ask an LLM
“Has my long-running Cloud KMS operation finished?”
“Can I poll a long-running operation for its latest state?”
Tell an agent
Get the status of long-running operation {operation} in location {location}, project {project}.
Poll operation {operation} in location {location}, project {project} until it completes.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyHandles/{keyHandlesId} Get a key handle · Get keyHandles #
Ask an LLM
“What does a key handle point to in my KMS project?”
“Which Autokey key handle is this ID?”
Tell an agent
Get key handle {keyHandlesId} in project {projectsId}, location {locationsId}.
Show me key handle {keyHandlesId} in {locationsId}, project {projectsId}.
POST /v1/projects/{projectsId}/locations/{locationsId}/keyHandles Create a CMEK key handle · Create keyHandles #
Ask an LLM
“How do I provision a new CMEK key for a resource type?”
“Can I choose the ID of a new key handle?”
Tell an agent
Create key handle {keyHandleId} for {resourceTypeSelector} in {projectsId}/{locationsId}.
Provision a CMEK key for {resourceTypeSelector} in {projectsId}/{locationsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyHandles List CMEK key handles · List keyHandles #
Ask an LLM
“Which resources are protected by CMEK keys in my project?”
“Can I filter key handles by resource type?”
Tell an agent
List key handles in {projectsId}/{locationsId}.
List key handles in {projectsId}/{locationsId} matching {filter}.
GET /v1/projects/{projectsId}/cryptoKeys List KMS crypto keys · List cryptoKeys #
Ask an LLM
“Which cryptographic keys does Cloud KMS manage in my project?”
“Can I page through my project's crypto keys?”
Tell an agent
List crypto keys in {projectsId}.
List up to {pageSize} crypto keys in {projectsId}.
GET /v1/projects/{projectsId}/locations/{locationsId}/keyRings/{keyRingsId}/cryptoKeys/{cryptoKeysId}/protectedResourcesSummary Summarize resources protected by a key · Get protected resources summary cryptoKeys #
Ask an LLM
“How many resources are protected by a given crypto key?”
“Can I fall back to the project scope if the organization scope is not configured?”
Tell an agent
Summarize protected resources for key {cryptoKeysId} in {projectsId}/{locationsId}/{keyRingsId}.
Summarize resources protected by key {cryptoKeysId} in {projectsId}/{locationsId}/{keyRingsId} using scope {fallbackScope}.
GET /v1/projects/{projectsId}/protectedResources:search Search resources protected by a key · Search protectedResources #
Ask an LLM
“Which resources in my organization are protected by a particular crypto key?”
“Can I narrow protected resource search to certain resource types?”
Tell an agent
Search protected resources for key {cryptoKey} in {projectsId}.
Find resources of type {resourceTypes} protected by key {cryptoKey} in {projectsId}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-kms:google-cloud-kms-projects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-kms-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Cloud Kms Projects API
  version: v1
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
  description: 'Operations tagged Projects across 2 of this provider''s published API definitions: google-cloud-kms-cloudkms-projects-api-openapi.yml, google-cloud-kms-kmsinventory-projects-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloudkms.googleapis.com
- url: https://kmsinventory.googleapis.com
tags:


# --- truncated at 32 KB (349 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-kms/openapi/google-cloud-kms-projects-api-openapi.yml