Queries the information about all ApsaraMQ for RocketMQ 4.x instances in a specified region for the current account.
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 |
The list of tags bound to the instances. The list can contain a maximum of 20 elements. |
|
|
object |
No |
The tag bound to the instance. |
||
| Key |
string |
No |
The tag key of the instance. Key and Value must be both specified or both left empty. If both are specified, instances are filtered based on the tag. If neither is specified, all instances are queried.
|
CartService |
| Value |
string |
No |
The tag value of the resource. Key and Value must be both specified or both left empty. If both are specified, instances are filtered based on the tag. If neither is specified, all instances are queried.
|
SericeA |
| NeedResourceInfo |
boolean |
No |
Specifies whether to return resource statistics information, including the number of topics and the number of consumer groups in the instance. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The common parameter. The ID of each request is unique and can be used for troubleshooting and locating issues. |
0598E46F-DB06-40E2-AD7B-C45923EE**** |
| Data |
object |
||
| InstanceVO |
array<object> |
The list of information about all instances. |
|
|
array<object> |
The list of information about all 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 Enterprise Platinum Edition instance. |
1551024000000 |
| InstanceStatus |
integer |
The instance status. Valid values:
|
5 |
| Tags |
object |
||
| Tag |
array<object> |
The tag bound to the instance. |
|
|
object |
The tag bound to the instance. |
||
| Key |
string |
The tag key. |
CartService |
| Value |
string |
The tag value. |
ServiceA |
| InstanceId |
string |
The instance ID. |
MQ_INST_188077086902****_BXSuW61e |
| InstanceType |
integer |
The type of the instance. Valid values:
For more information about the specifications and differences of each instance type, see Instance specifications. |
2 |
| CreateTime |
integer |
The creation time of the instance. The value of this parameter 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.