Queries all queues in a vhost of an ApsaraMQ for RabbitMQ instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
amqp:GetInstance | get |
|
|
|
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the ApsaraMQ for RabbitMQ instance. | 1880770869023*** |
VirtualHost | string | Yes | The virtual host (vhost) name. | test |
NextToken | string | No | The token that marks the end position of the previous returned page. To obtain the next batch of data, call the operation again by using the value of NextToken returned by the previous request. If you call this operation for the first time or want to query all results, set NextToken to an empty string. | caeba0bbb2be03f84eb48b699f0a**** |
MaxResults | integer | Yes | The maximum number of entries to return. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CE811989-9F02-42CE-97A6-2239CB5C2***",
"Data": {
"MaxResults": 1,
"NextToken": "caebacccb2be03f84eb48b699f0a****",
"Queues": [
{
"ExclusiveState": false,
"AutoDeleteState": false,
"CreateTime": 1580887085240,
"Attributes": {
"test": "test",
"test2": 1
},
"VHostName": "test",
"Name": "QueueTest",
"OwnerId": "1880770869023***",
"LastConsumeTime": 1680887085240
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|