Queries all Group IDs in 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 ID of the instance to which the Group IDs belong. |
MQ_INST_111111111111_DOxxxxxx |
| GroupId |
string |
No |
Specify a Group ID to perform a fuzzy query. If you leave this parameter empty, all Group IDs are queried. If you enter GID_ABC, a fuzzy query is performed by matching prefixes and suffixes. 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 that the queried Group IDs support. Group IDs for the TCP protocol and the HTTP protocol cannot be shared. You must create them separately. Valid values:
|
tcp |
| Tag |
array<object> |
No |
The list of tags that are attached to the Group ID. The number of elements in the list cannot exceed 20. |
|
|
object |
No |
|||
| Key |
string |
Yes |
The tag key of the Group ID. Specify both Key and Value, or leave both empty. If both are specified, the system filters for matching Group IDs. If both are left empty, all Group IDs are queried.
|
CartService |
| Value |
string |
Yes |
The tag value of the Group ID. Specify both Key and Value, or leave both empty. If both are specified, the system filters for matching Group IDs. If both are left empty, all Group IDs are queried.
|
ServiceA |
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. You can use this ID to troubleshoot issues. |
16996623-AC4A-43AF-9248-FD9D2D75**** |
| Data |
object |
||
| SubscribeInfoDo |
array<object> |
The set of subscription relationships that are returned. |
|
|
array<object> |
|||
| Owner |
string |
The owner of the publish information. |
138015630679**** |
| UpdateTime |
integer |
The time when the Group ID was updated. |
1570700979000 |
| IndependentNaming |
boolean |
Indicates whether the instance has a namespace. Valid values:
|
true |
| GroupId |
string |
The Group ID, which is the ID of the consumer group. |
GID_test_group_id |
| Remark |
string |
The remarks. |
test |
| CreateTime |
integer |
The time when the Group ID was created. |
1568896605000 |
| Tags |
object |
||
| Tag |
array<object> |
The tags that are attached 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 that the queried Group IDs support. Group IDs for the TCP protocol and the HTTP protocol cannot be shared. You must create them 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.