Queries the list of ApsaraMQ for RabbitMQ instances and basic information about each instance in a specified region, including instance endpoints and instance specification limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
amqp:ListInstance |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The token that marks the end position of the current query. Pass this value as a parameter in the next call to continue pagination. Set this parameter to an empty string for the first call or when the last page is returned. |
caeba0bbb2be03f84eb48b699f0a**** |
| MaxResults |
integer |
Yes |
The maximum number of entries to return. We recommend that you set this parameter to a value between 1 and 100. |
1 |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
rg-aekzu74zjgdu4mq |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CCBB1225-C392-480E-8C7F-D09AB2CD2*** |
| Data |
object |
The returned data. |
|
| NextToken |
string |
The position from which the current call starts reading. An empty value indicates that all data has been read. |
caebacccb2be03f84eb48b699f0a**** |
| MaxResults |
integer |
The maximum number of entries returned. |
1 |
| Instances |
array<object> |
The instances. |
|
|
array<object> |
The instances. |
||
| Status |
string |
The instance status. Valid values:
|
SERVING |
| SupportEIP |
boolean |
Indicates whether Elastic IP Address (EIP) is supported. |
true |
| ExpireTime |
integer |
The timestamp when the instance expires. Unit: milliseconds. |
1651507200000 |
| OrderCreateTime |
integer |
The timestamp when the order was created. Unit: milliseconds. |
1572441939000 |
| PrivateEndpoint |
string |
The VPC endpoint of the instance. |
amqp-cn-st21x7kv****.mq-amqp.cn-hangzhou-a.aliyuncs.com |
| StorageSize |
integer |
The disk capacity. Unit: GB. Note
This parameter is not available for Professional Edition or Enterprise instances. The value -1 is returned. |
200 |
| MaxEipTps |
integer |
The peak TPS for public network traffic of the instance. Unit: messages per second. |
24832 |
| InstanceId |
string |
The instance ID. |
amqp-cn-st21x7kv**** |
| InstanceType |
string |
The instance type.
|
professional |
| PublicEndpoint |
string |
The public endpoint of the instance. |
amqp-cn-st21x7kv****.mq-amqp.cn-hangzhou-a.aliyuncs.com |
| ClassicEndpoint |
string |
The classic endpoint. This parameter is no longer used. |
amqp-cn-st21x7kv****.not-support |
| MaxVhost |
integer |
The maximum number of Vhosts for the instance. |
50 |
| MaxTps |
integer |
The peak TPS for private network traffic of the instance. Unit: messages per second. |
5000 |
| AutoRenewInstance |
boolean |
Indicates whether auto-renewal is enabled for the instance. |
false |
| InstanceName |
string |
The instance name. |
amqp-cn-st21x7kv**** |
| MaxQueue |
integer |
The maximum number of queues for the instance. |
50 |
| OrderType |
string |
The order type. Valid values:
|
PRE_PAID |
| Tags |
array<object> |
The tags. |
|
|
object |
The tags. |
||
| Key |
string |
The tag key. |
region |
| Value |
string |
The tag value. |
hangzhou |
| ResourceGroupId |
string |
The resource group ID. |
rg-aek3axfj2w4czrq |
| ServerlessSwitch |
boolean |
The elastic switch. |
true |
| EncryptedInstance |
boolean |
Indicates whether storage encryption is enabled for instance data storage. |
false |
| KmsKeyId |
string |
The ID of the KMS key used for the data cloud disk of the backend storage. |
key-bjj66c2a893vmhawtq5fd |
| ProvisionedCapacity |
integer |
The reserved TPS capacity for reserved + elastic instances. |
2000 |
| Edition |
string |
The deployment architecture of the Serverless instance. Valid values:
|
shared |
| ListenerMode |
string |
The port listening mode of the instance. Valid values: tcp_and_ssl: Both ports 5672 and 5671 are enabled. ssl_only: Only port 5671 is enabled. Valid values:
|
tcp_and_ssl |
| VpcId |
string |
The VPC ID specified when the instance was created. This value is used to create a PrivateLink endpoint. |
vpc-xxx |
| SecurityGroupId |
string |
The security group specified when the instance was created. This value is used to create a PrivateLink endpoint. |
sg-xxx |
| VswitchIds |
array |
The vSwitch IDs specified when the instance was created. These values are used to create a PrivateLink endpoint. |
|
|
string |
The vSwitch ID specified when the instance was created. |
vsw-xxx |
Examples
Success response
JSON format
{
"RequestId": "CCBB1225-C392-480E-8C7F-D09AB2CD2***",
"Data": {
"NextToken": "caebacccb2be03f84eb48b699f0a****",
"MaxResults": 1,
"Instances": [
{
"Status": "SERVING",
"SupportEIP": true,
"ExpireTime": 1651507200000,
"OrderCreateTime": 1572441939000,
"PrivateEndpoint": "amqp-cn-st21x7kv****.mq-amqp.cn-hangzhou-a.aliyuncs.com",
"StorageSize": 200,
"MaxEipTps": 24832,
"InstanceId": "amqp-cn-st21x7kv****",
"InstanceType": "professional",
"PublicEndpoint": "amqp-cn-st21x7kv****.mq-amqp.cn-hangzhou-a.aliyuncs.com",
"ClassicEndpoint": "amqp-cn-st21x7kv****.not-support",
"MaxVhost": 50,
"MaxTps": 5000,
"AutoRenewInstance": false,
"InstanceName": "amqp-cn-st21x7kv****",
"MaxQueue": 50,
"OrderType": "PRE_PAID",
"Tags": [
{
"Key": "region",
"Value": "hangzhou"
}
],
"ResourceGroupId": "rg-aek3axfj2w4czrq",
"ServerlessSwitch": true,
"EncryptedInstance": false,
"KmsKeyId": "key-bjj66c2a893vmhawtq5fd",
"ProvisionedCapacity": 2000,
"Edition": "shared",
"ListenerMode": "tcp_and_ssl",
"VpcId": "vpc-xxx",
"SecurityGroupId": "sg-xxx",
"VswitchIds": [
"vsw-xxx"
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.