Queries the current and maximum numbers of vhosts, exchanges, and queues for a specified ApsaraMQ for RabbitMQ instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:GetInstance |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-v0h1kb9n*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B75ACF23-2BEB-44AC-A0B6-AE14EDCA*** |
| Data |
object |
The returned data. |
|
| MaxVirtualHosts |
integer |
The maximum number of vhosts that you can create. |
10 |
| CurrentVirtualHosts |
integer |
The number of existing vhosts. |
1 |
| MaxQueues |
integer |
The maximum number of queues that you can create. |
20 |
| CurrentExchanges |
integer |
The number of existing exchanges. |
7 |
| MaxExchanges |
integer |
The maximum number of exchanges that you can create. |
20 |
| CurrentQueues |
integer |
The number of existing queues. |
1 |
Examples
Success response
JSON format
{
"RequestId": "B75ACF23-2BEB-44AC-A0B6-AE14EDCA***",
"Data": {
"MaxVirtualHosts": 10,
"CurrentVirtualHosts": 1,
"MaxQueues": 20,
"CurrentExchanges": 7,
"MaxExchanges": 20,
"CurrentQueues": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.