Mengkueri semua instans ApsaraMQ for RocketMQ 4.x di wilayah tertentu.
Deskripsi operasi
The OpenAPI provided by Alibaba Cloud is a management Application Programming Interface (API). Use this API to manage and query resources for Alibaba Cloud services. Integrate the API for management purposes only. Do not rely on the API for core data links that send and receive messages. This can introduce threats to your data links.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:QueryInstanceBaseInfo |
list |
Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tag |
array<object> |
No |
Daftar tag yang terpasang pada instans. Daftar dapat berisi hingga 20 elemen. |
|
|
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 |
Apakah akan mengembalikan statistik sumber daya. Statistik mencakup jumlah topik dan grup di instans. |
true |
Elemen respons
|
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 a namespace is used for the instance. Valid values:
|
true |
| InstanceName |
string |
The instance name. The name must be 3 to 64 characters in length and can contain letters, digits, hyphens (-), and underscores (_). |
test1 |
| ReleaseTime |
integer |
The time when the instance expires. If the instance is of Enterprise Platinum Edition, this parameter is returned. |
1551024000000 |
| InstanceStatus |
integer |
The instance status. Valid values:
|
5 |
| Tags |
object |
||
| Tag |
array<object> |
The tags that are attached to the instance. |
|
|
object |
|||
| Key |
string |
The tag key. |
CartService |
| Value |
string |
The tag value. |
ServiceA |
| InstanceId |
string |
The instance ID. |
MQ_INST_188077086902****_BXSuW61e |
| InstanceType |
integer |
The instance type. Valid values:
For information about the instance editions and the differences between the editions, see Instance editions. |
2 |
| CreateTime |
integer |
The time when the instance was created. 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 |
Contoh
Respons sukses
JSONformat
{
"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
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.