Queries all Group IDs of a specified instance.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:ListGroup |
list |
Group
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID corresponding to the Group ID for which you want to retrieve the resources. |
MQ_INST_111111111111_DOxxxxxx |
| GroupId |
string |
No |
The Group ID used for fuzzy match. If you specify this parameter, a fuzzy match is performed. Otherwise, all Group IDs are queried. If you specify GID_ABC, a fuzzy match is performed, and all Group IDs that contain *GID_ABC* are returned, such as GID_test_GID_ABC_123 and GID_ABC_356. |
GID_test_group_id |
| GroupType |
string |
No |
The protocol applicable to the Group ID. Group IDs for TCP and HTTP protocols cannot be shared and must be created separately. Valid values:
|
tcp |
| Tag |
array<object> |
No |
The tags bound to the Group IDs. You can specify a maximum of 20 tags. |
|
|
object |
No |
|||
| Key |
string |
Yes |
The tag key of the Group ID. You must specify both Key and Value or leave both empty. If you specify both, the system filters Group IDs based on the tag. If you leave both empty, all Group IDs are queried.
|
CartService |
| Value |
string |
Yes |
The tag value of the Group ID. You must specify both Key and Value or leave both empty. If you specify both, the system filters Group IDs based on the tag. If you leave both empty, all Group IDs are queried.
|
ServiceA |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The common parameter. The ID of each request is unique and active for troubleshooting and locating issues. |
16996623-AC4A-43AF-9248-FD9D2D75**** |
| Data |
object |
||
| SubscribeInfoDo |
array<object> |
The queried subscription relationships. |
|
|
array<object> |
|||
| Owner |
string |
The owner of the publication information. |
138015630679**** |
| UpdateTime |
integer |
The update time of the Group ID. |
1570700979000 |
| IndependentNaming |
boolean |
Indicates whether the instance has a namespace. Valid values:
|
true |
| GroupId |
string |
The Group ID, which is the consumer group ID. |
GID_test_group_id |
| Remark |
string |
The description. |
test |
| CreateTime |
integer |
The creation time of the Group ID. |
1568896605000 |
| Tags |
object |
||
| Tag |
array<object> |
The tags bound to the Group ID. |
|
|
object |
|||
| Key |
string |
The tag key. |
CartService |
| Value |
string |
The tag value. |
ServiceA |
| InstanceId |
string |
The instance ID. |
MQ_INST_111111111111_DOxxxxxx |
| GroupType |
string |
The protocol applicable to the Group ID. Group IDs for TCP and HTTP protocols cannot be shared and must be created separately. Valid values:
|
tcp |
Examples
Success response
JSON format
{
"RequestId": "16996623-AC4A-43AF-9248-FD9D2D75****",
"Data": {
"SubscribeInfoDo": [
{
"Owner": "138015630679****",
"UpdateTime": 1570700979000,
"IndependentNaming": true,
"GroupId": "GID_test_group_id",
"Remark": "test",
"CreateTime": 1568896605000,
"Tags": {
"Tag": [
{
"Key": "CartService",
"Value": "ServiceA"
}
]
},
"InstanceId": "MQ_INST_111111111111_DOxxxxxx",
"GroupType": "tcp"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.