Queries all ApsaraMQ for RocketMQ 4.x instances in a specified region.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryInstanceBaseInfo |
list |
Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tag |
array<object> |
No |
A list of tags attached to the instance. The list can contain up to 20 elements. |
|
|
object |
No |
A tag attached to the instance. |
||
| Key |
string |
No |
The tag key. Specify both Key and Value to filter instances by tag. Omit both to query all instances.
|
CartService |
| Value |
string |
No |
The tag value. Specify both Key and Value to filter instances by tag. Omit both to query all instances.
|
SericeA |
| NeedResourceInfo |
boolean |
No |
Specifies whether to return resource statistics. The statistics include the number of topics and groups in the instance. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. This is a common parameter. Each request has a unique ID. Use this ID to troubleshoot and locate issues. |
0598E46F-DB06-40E2-AD7B-C45923EE**** |
| Data |
object |
||
| InstanceVO |
array<object> |
A list of all published instances. |
|
|
array<object> |
A list of all published instances. |
||
| IndependentNaming |
boolean |
Indicates whether the instance has a namespace. Valid values:
|
true |
| InstanceName |
string |
The name of the instance. |
test1 |
| ReleaseTime |
integer |
The expiration time of the Platinum instance. |
1551024000000 |
| InstanceStatus |
integer |
The status of the instance. Valid values:
|
5 |
| Tags |
object |
||
| Tag |
array<object> |
The tags attached to the instance. |
|
|
object |
The tags attached to the instance. |
||
| Key |
string |
The tag key. |
CartService |
| Value |
string |
The tag value. |
ServiceA |
| InstanceId |
string |
The ID of the instance. |
MQ_INST_188077086902****_BXSuW61e |
| InstanceType |
integer |
The type of the instance. Valid values:
For information about the specifications and differences between instance types, see Instance types. |
2 |
| CreateTime |
integer |
The time when the instance was created. This value is a UNIX timestamp in milliseconds. |
1640847284000 |
| TopicCount |
integer |
The number of topics. |
1 |
| GroupCount |
integer |
The number of consumer groups. |
3 |
Examples
Success response
JSON format
{
"RequestId": "0598E46F-DB06-40E2-AD7B-C45923EE****",
"Data": {
"InstanceVO": [
{
"IndependentNaming": true,
"InstanceName": "test1",
"ReleaseTime": 1551024000000,
"InstanceStatus": 5,
"Tags": {
"Tag": [
{
"Key": "CartService",
"Value": "ServiceA"
}
]
},
"InstanceId": "MQ_INST_188077086902****_BXSuW61e",
"InstanceType": 2,
"CreateTime": 1640847284000,
"TopicCount": 1,
"GroupCount": 3
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.