All Products
Search
Document Center

Key Management Service:DescribeAccountKmsStatus

Last Updated:Mar 12, 2026

Queries the status of Key Management Service (KMS) within your Alibaba Cloud account.

Operation description

For more information about the access policy required by a RAM user or RAM role to call this API, see Resource Access Management.

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 elements

Element

Type

Description

Example

object

AccountStatus

string

The status of KMS within your Alibaba cloud account. Valid values:

  • Enabled: KMS is enabled.

  • NotEnabled: KMS is disabled.

  • InDebt: Your account is overdue, and KMS stops providing services.

Note

If your Alibaba Cloud account is overdue, top up your account at the earliest opportunity to avoid impacts on your services.

  • Suspended: KMS is suspended.

Enabled

RequestId

string

The request ID.

3ac84333-d64d-4784-a8bc-997834a7ac6c

Examples

Success response

JSON format

{
  "AccountStatus": "Enabled",
  "RequestId": "3ac84333-d64d-4784-a8bc-997834a7ac6c"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter is not valid. An invalid value is specified for the parameter.
403 Forbidden.NoPermission This operation is forbidden by permission system.
404 InvalidAccessKeyId.NotFound The Access Key ID provided does not exist in our records.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.