All Products
Search
Document Center

:DescribeDiskDefaultKMSKeyId

Last Updated:Nov 05, 2024

Queries the Key Management Service (KMS) key used by the Account-level Elastic Block Storage (EBS) Default Encryption feature in a region.

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
RegionIdstringYes

The ID of the region. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
KMSKeyIdstring

The ID of the KMS key.

0e478b7a-4262-4802-b8cb-00d3fb40****

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "KMSKeyId": "0e478b7a-4262-4802-b8cb-00d3fb40****"
}

Error codes

HTTP status codeError codeError messageDescription
403InvalidParameter.RegionIdNotExistsThe specified region does not exists.The region does not exist.

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