All Products
Search
Document Center

Key Management Service:EnableKey

Last Updated:Jul 29, 2025

Enables a key to encrypt and decrypt data.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
KeyIdstringYes

The globally unique ID of the CMK.

1234abcd-12ab-34cd-56ef-12345678****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

efb1cbbd-a093-4278-bc03-639dd4fcc207

Examples

Sample success responses

JSONformat

{
  "RequestId": "efb1cbbd-a093-4278-bc03-639dd4fcc207"
}

Error codes

For a list of error codes, visit the Service error codes.