All Products
Search
Document Center

Key Management Service:GetDefaultKmsInstance

Last Updated:Jul 29, 2025

Retrieves the default KMS instance.

Operation description

  • For information about the access policy that is required to call this operation, see Resource Access Management.

  • This API is for users who migrate from KMS 1.0 to KMS 3.0. After the migration is complete, if you create an Asset without specifying a KMS instance, the Asset is created in the default KMS instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response parameters

Parameter

Type

Description

Example

object

The response message.

RequestId

string

The ID of the request. This ID is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot and locate issues.

bbc4e9ab-c76f-48ca-9c2a-8535772117e2

DefaultKmsInstanceId

string

The ID of the default KMS instance.

kst-hzz65f176a0ogplgq****

Examples

Success response

JSON format

{
  "RequestId": "bbc4e9ab-c76f-48ca-9c2a-8535772117e2",
  "DefaultKmsInstanceId": "kst-hzz65f176a0ogplgq****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.