Retrieves an 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 |
Yes |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-v0h1kb9nu*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
OpenApiResponse |
||
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique identifier for each request. You can use the ID to troubleshoot issues. |
92385FD2-624A-48C9-8FB5-753F2AFA*** |
| Data |
object |
The request result. |
|
| Tags |
array<object> |
The list of tags. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
tagKey |
| Value |
string |
The tag value. |
tagValue |
| 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. Note
This value is of the Long type. Precision loss may occur in certain programming languages. Handle this value with caution. |
1651507200000 |
| OrderCreateTime |
integer |
The timestamp when the order was created. Unit: milliseconds. Note
This value is of the Long type. Precision loss may occur in certain programming languages. Handle this value with caution. |
1651507200000 |
| 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 applicable to Professional Edition or Enterprise instance. The value -1 is returned. |
200 |
| MaxEipTps |
integer |
The peak TPS for public network traffic. Unit: TPS. Configure this based on the values provided on the ApsaraMQ for RabbitMQ purchase page. |
1000 |
| InstanceId |
string |
The ID of the ApsaraMQ for RabbitMQ instance. |
amqp-cn-********* |
| InstanceType |
string |
The instance type. Valid values:
|
enterprise |
| PublicEndpoint |
string |
The public endpoint of the instance. |
xxx.cn-hangzhou.xxx.net.mq.amqp.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. |
1000 |
| AutoRenewInstance |
boolean |
Indicates whether auto-renewal is enabled for the instance. |
false |
| InstanceName |
string |
The instance name to be updated. No limit is imposed on the value. The name is up to 64 characters in length. |
yunQi-instance |
| MaxQueue |
integer |
The maximum number of queues for the instance. |
1000 |
| OrderType |
string |
The order type. Valid values:
|
PRE_PAID |
| TracingStorageTime |
integer |
The retention period of message traces. Unit: days. Valid values:
This parameter takes effect only when SupportTracing is set to true. |
15 |
| SupportTracing |
boolean |
Indicates whether the message trace feature is enabled. |
True |
| MaxConnections |
integer |
The maximum number of connections. Configure this based on the values provided on the ApsaraMQ for RabbitMQ purchase page. |
1500 |
| ResourceGroupId |
string |
The ID of the resource group to which the application belongs. |
rg-acfm2vn6jkayvfy |
| ServerlessSwitch |
boolean |
The elastic switch. |
true |
| EncryptedInstance |
boolean |
Indicates whether storage encryption is enabled for instance data. |
true |
| KmsKeyId |
string |
The ID of the KMS key associated with the cloud disk. |
key-hzz6566e86byam3lg5rw4 |
| ProvisionedCapacity |
integer |
The provisioned 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: tcp_and_ssl or ssl_only. tcp_and_ssl: Both port 5672 and port 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 is used to create a PrivateLink endpoint. |
vpc-xxx |
| SecurityGroupId |
string |
The security group specified when the instance was created. This is used to create a PrivateLink endpoint. |
sg-xxx |
| VswitchIds |
array |
The vSwitch IDs specified when the instance was created. These are used to create a PrivateLink endpoint. |
|
|
string |
The vSwitch ID specified during instance creation. |
vsw-xxx |
Examples
Success response
JSON format
{
"RequestId": "92385FD2-624A-48C9-8FB5-753F2AFA***",
"Data": {
"Tags": [
{
"Key": "tagKey",
"Value": "tagValue"
}
],
"Status": "SERVING",
"SupportEIP": true,
"ExpireTime": 1651507200000,
"OrderCreateTime": 1651507200000,
"PrivateEndpoint": "amqp-cn-st21x7kv****.mq-amqp.cn-hangzhou-a.aliyuncs.com\n",
"StorageSize": 200,
"MaxEipTps": 1000,
"InstanceId": "amqp-cn-*********",
"InstanceType": "enterprise",
"PublicEndpoint": "xxx.cn-hangzhou.xxx.net.mq.amqp.aliyuncs.com",
"ClassicEndpoint": "amqp-cn-st21x7kv****.not-support\n",
"MaxVhost": 50,
"MaxTps": 1000,
"AutoRenewInstance": false,
"InstanceName": "yunQi-instance",
"MaxQueue": 1000,
"OrderType": "PRE_PAID",
"TracingStorageTime": 15,
"SupportTracing": true,
"MaxConnections": 1500,
"ResourceGroupId": "rg-acfm2vn6jkayvfy",
"ServerlessSwitch": true,
"EncryptedInstance": true,
"KmsKeyId": "key-hzz6566e86byam3lg5rw4",
"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.