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 and is billed based on transactions per second (TPS). 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 for which you want to list group IDs. |
mqtt-cn-0pp1ldu**** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
A list of resource tags. You can specify up to 20 tags. |
||
| Key |
string |
No |
The tag key. |
test |
| Value |
string |
No |
The tag value. |
test |
For more information about other parameters, see common parameters and endpoint.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID for the request. This is a common parameter. |
95996EEB-D894-44FA-A87C-940F5CD9**** |
| Data |
array<object> |
The details of the returned group IDs. |
|
|
array<object> |
|||
| UpdateTime |
integer |
The timestamp of the last update for the group ID. |
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. |
GID_test1 |
| CreateTime |
integer |
The creation timestamp of the group ID. |
1564577317000 |
| Tags |
array<object> |
The tags attached to the group ID. |
|
|
object |
The tags that are associated with the group ID. |
||
| TagKey |
string |
The tag key. |
key |
| TagValue |
string |
The tag value. |
value |
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": "key",
"TagValue": "value"
}
]
}
]
}
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.