You can call the ListGroupId operation to query all Group IDs in an instance.
Operation description
Each successful call to the ListGroupId operation is counted as one message transaction per second (TPS) and is included in your billing. For more information, see Billing details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mq:ListMqttGroupId |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance whose Group IDs you want to query. |
mqtt-cn-0pp1ldu**** |
| Tag |
array<object> |
No |
||
|
object |
No |
|||
| Key |
string |
No |
||
| Value |
string |
No |
For more information about other parameters, see Common parameters and Endpoints.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. This is a common parameter and is unique for each request. |
95996EEB-D894-44FA-A87C-940F5CD9**** |
| Data |
array<object> |
The details of the queried Group IDs. |
|
|
array<object> |
|||
| UpdateTime |
integer |
The time when the Group ID was last updated. |
1564577317000 |
| InstanceId |
string |
The ID of the instance to which the Group ID belongs. |
post-cn-45910tj**** |
| IndependentNaming |
boolean |
Indicates whether the instance has an independent namespace. Valid values:
|
true |
| GroupId |
string |
The Group ID of the instance. |
GID_test1 |
| CreateTime |
integer |
The time when the Group ID was created. |
1564577317000 |
| Tags |
array<object> |
||
|
object |
|||
| TagKey |
string |
||
| TagValue |
string |
Examples
Success response
JSON format
{
"RequestId": "95996EEB-D894-44FA-A87C-940F5CD9****",
"Data": [
{
"UpdateTime": 1564577317000,
"InstanceId": "post-cn-45910tj****",
"IndependentNaming": true,
"GroupId": "GID_test1",
"CreateTime": 1564577317000,
"Tags": [
{
"TagKey": "",
"TagValue": ""
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterFieldCheckFailed | Failed to validate the parameters. The parameters may be missing or invalid. | |
| 400 | InstancePermissionCheckFailed | An error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings. | |
| 400 | InstanceNotFound | Failed to find the instance. The instanceId may be invalid. | |
| 400 | PermissionCheckFailed | An error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings. | |
| 500 | InternalError | An error occurred while processing your request. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.