You need to enable JavaScript to run this app.
Message Queue for RocketMQ

Message Queue for RocketMQ

Copy page
Download PDF
Key management
DescribeAccessKeys - Query key list
Copy page
Download PDF
DescribeAccessKeys - Query key list
Call the DescribeAccessKeys API to query the RocketMQ key list.​
Instructions​
This API allows you to view the RocketMQ key list for a specified instance and also check the basic information for a particular key.​
Note​
Request frequency: This API limits requests to 40 times per second. Per-user request frequency limit is 8 times per second.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the unique request parameters of this interface and some common parameters are listed below. For more information, see common parameters.​
Action string required Example value: DescribeAccessKeys​
Operation to perform, value: DescribeAccessKeys.​
​
Version string required Example value: 2023-01-01​
API version, value: 2023-01-01.​
​
InstanceId string required Example: rocketmq-cnai1f0c29ca****​
Instance ID.​
​
PageNumber integer required Example value: 1​
Page number of the list, minimum value is 1.​
​
PageSize integer required Example value: 10​
The number of entries per page in the list. Valid range: 1–100.​
​
AccessKey string Optional Example value: 2QdEgrGc97AL1p38Fq13****​
Perform an exact search using the AccessKey ID.​
​
​
​
Response parameters​
Only the unique response parameters of this API are listed below. For more details, see response structure.​
Total integer Example value: 1​
Total number of RocketMQ keys.​
​
AccessKeysInfo object[] Example value: /​
RocketMQ key information.​
AccessKey string Example value: 2QdEgrGc97AL1p38Fq13****​
AccessKey ID for RocketMQ keys.​
​
AclConfigJson string Example value: {\"topicPerms\":{\"RMQ_SYS_TRACE_TOPIC\":\"PUB\",\"rocketmq123\":\"PUB|SUB\"},\"groupPerms\":{\"GID_test\":\"PUB|SUB\"}}​
All ACL configuration information for RocketMQ keys.​
​
Actived boolean Example value: true​
Status of the RocketMQ key.​
  • true: enabled​
  • false: not enabled​
​
AllAuthority string Example value: SUB​
Default permission for RocketMQ keys.​
  • ALL: Publish and subscribe permissions granted​
  • PUB: Publish permission granted​
  • SUB: Subscribe permission granted​
  • DENY: No publish or subscribe permission​
​
CreateTime string Example value: 2022-11-04T07:12:56Z​
RocketMQ key creation time. Time format: YYYY-MM-DD'T'HH:MM:SS'Z'.​
​
Description string Example value: test​
Description of the RocketMQ key.​
​
​
​
​
Request example​
​
POST /?Action=DescribeAccessKeys&Version=2023-01-01 HTTP/1.1​
Host: rocketmq.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260114T070126Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260114/cn-beijing/RocketMQ/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"InstanceId": "rocketmq-cnai1f0c29ca****",​
"PageNumber": 1,​
"PageSize": 10​
}​
​
Response example​
​
{​
"ResponseMetadata": {​
"RequestId": "2026011415270808618823515119****",​
"Action": "DescribeAccessKeys",​
"Version": "2023-01-01",​
"Service": "RocketMQ",​
"Region": "cn-beijing"​
},​
"Result": {​
"Total": 1,​
"AccessKeysInfo": [​
{​
"AccessKey": "2QdEgrGc97AL1p38Fq13****",​
"AclConfigJson": "{\"topicPerms\":{\"RMQ_SYS_TRACE_TOPIC\":\"PUB\",\"rocketmq123\":\"PUB|SUB\"},\"groupPerms\":{\"GID_test\":\"PUB|SUB\"}}",​
"Actived": true,​
"AllAuthority": "SUB",​
"CreateTime": "2022-11-04T07:12:56Z",​
"Description": "test"​
}​
]​
}​
}​
​
Error code​
The following table lists error codes related to this interface and business logic. Refer to the Public error codes section for common error codes.​
​
Status code​
Error code​
Error message​
description​
200​
OK​
OK​
Success.​
400​
OperationDenied_InvalidRequest​
The request that you specified is not valid.​
A request exception occurred. Check and try again.​
400​
MissingParameter​
The request body is missing a required parameter %s.​
Missing %s parameter.​
400​
UnsupportedParameter​
The specified parameter %s is unsupported.​
The %s parameter is not supported.​
400​
InvalidParameter​
The specified parameter %s is not valid.​
The parameter value %s is invalid. Check and try again.​
400​
NotModifiedParameter​
The resource was not changed.​
No configuration changed.​
400​
InvalidTopicName_AlreadyExists​
The specified topic name already exists.​
Topic name already exists.​
400​
InvalidGroupId_AlreadyExists​
The specified group name already exists.​
Group name already exists.​
400​
QuotaExceeded_InstanceNumber​
The number of instances exceeds the limit.​
The number of instances exceeds the maximum limit.​
400​
QuotaExceeded_AuthKeyNumber​
The number of authKeys exceeds the limit.​
The number of keys has exceeded the limit.​
400​
QuotaExceeded_TopicNumber​
The number of topic exceeds the limit.​
The number of topics exceeds the limit.​
400​
QuotaExceeded_GroupNumber​
The number of group exceeds the limit.​
The number of groups exceeds the limit.​
400​
QuotaExceeded_QueueNumber​
The number of queue exceeds the limit.​
The number of queues exceeds the limit.​
400​
InvalidPara​
The specified parameter is not valid.​
The parameter value is invalid.​
403​
OperationDenied_InternetAccessEnabled​
Internet access is enabled for the instance.​
This instance has public network access enabled.​
403​
OperationDenied_InvalidInstanceStatus​
The operation is not valid for the current status of the instance.​
The current instance state does not allow this operation.​
403​
OperationDenied_InternetAccessDisabled​
Internet access is disabled for the instance.​
This instance does not have public network access enabled.​
403​
OperationDenied_AccountNotAuthorized​
You are not authorized to perform this operation.​
You are not authorized. Authorize or switch accounts and try again.​
403​
OperationDenied_InstanceNotEmpty​
The instance that you tried to delete is not empty.​
The resource of the instance to be deleted is not empty.​
403​
OperationDenied_ResourceOccupied​
The resource is busy now, please try again later.​
Resource is busy. This may be because the specified resource is being accessed or reclaimed.​
403​
OperationDenied_TaskIsRunning​
An operation is currently in progress. Try again later.​
Background tasks are running, please try again later.​
403​
OperationDenied_VersionUnsupported​
The current instance version does not support this operation.Please upgrade the instance and try again.​
The current instance version does not support this operation. Upgrade the instance and try again.​
404​
InvalidInstanceId_NotFound​
The specified Instance ID does not exist.​
Instance does not exist.​
404​
InvalidTopicName_NotFound​
The specified topic does not exist.​
Topic does not exist.​
404​
InvalidGroup_NotFound​
The specified group does not exist.​
Group does not exist.​
404​
InvalidAccessKeyId_NotFound​
The specified accessKey does not exist.​
AccessKey does not exist.​
404​
InvalidMessageId_NotFound​
The message ID does not exist in the instance %s.​
Message ID does not exist.​
404​
InvalidEip_NotFound​
The specified EIP does not exist.​
The EIP does not exist.​
404​
InvalidInstanceId.NotFound​
The specified Instance ID does not exist.​
Instance does not exist.​
500​
InternalError​
The request failed due to some unknown error, exception or failure.​
Internal error, please try again later.​
500​
ServerInternalError​
The request failed due to some unknown error, exception or failure.​
Internal service error.​
​
Last updated: 2026.02.09 11:47:46