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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeAccountKmsStatus

The operation that you want to perform. Set the value to DescribeAccountKmsStatus.

Response parameters

Parameter Type Example Description
AccountStatus String Enabled

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.
RequestId String 3ac84333-d64d-4784-a8bc-997834a7ac6c

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeAccountKmsStatus
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeAccountKmsStatusResponse>
    <AccountStatus>Enabled</AccountStatus>
    <RequestId>3ac84333-d64d-4784-a8bc-997834a7ac6c</RequestId>
</DescribeAccountKmsStatusResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

HTTP status code Error code Error message Description
403 Forbidden.NoPermission This operation is forbidden by permission system. You are not authorized to perform this operation.

For a list of error codes, visit the API Error Center.