All Products
Search
Document Center

ApsaraMQ for MQTT:ListGroupId

Last Updated:Mar 25, 2024

Queries all groups on an ApsaraMQ for MQTT instance.

Operation description

Each successful call to the ListGroupId operation increases the messaging transactions per second (TPS) by one. This affects the billing of your instance. For more information, see Billing rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the ApsaraMQ for MQTT instance whose groups you want to query.

mqtt-cn-0pp1ldu****
Note For information about other parameters, see Common parameters and Endpoints .

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID. This parameter is a common parameter.

95996EEB-D894-44FA-A87C-940F5CD9****
Dataobject []

The details of a queried group.

UpdateTimelong

The time when the group was last updated.

1564577317000
InstanceIdstring

The ID of the ApsaraMQ for MQTT instance to which the group belongs.

post-cn-45910tj****
IndependentNamingboolean

Indicates whether a separate namespace is configured for the ApsaraMQ for MQTT instance. Valid values:

  • true: A separate namespace is configured for the ApsaraMQ for MQTT instance. Resource names must be unique within an ApsaraMQ for MQTT instance but can be the same across ApsaraMQ for MQTT instances.
  • false: No separate namespace is configured for the ApsaraMQ for MQTT instance. Resource names must be globally unique within an ApsaraMQ for MQTT instance and across ApsaraMQ for MQTT instances.
true
GroupIdstring

The queried group that belongs to the ApsaraMQ for MQTT instance.

GID_test1
CreateTimelong

The time when the group was created.

1564577317000

Examples

Sample success responses

JSONformat

{
  "RequestId": "95996EEB-D894-44FA-A87C-940F5CD9****",
  "Data": [
    {
      "UpdateTime": 1564577317000,
      "InstanceId": "post-cn-45910tj****",
      "IndependentNaming": true,
      "GroupId": "GID_test1",
      "CreateTime": 1564577317000
    }
  ]
}

Error codes

HTTP status codeError codeError message
400ParameterFieldCheckFailedFailed to validate the parameters. The parameters may be missing or invalid.
400InstancePermissionCheckFailedAn error occurred while validating the permissions of the instance. Please verify the account that created the instance and its permissions settings.
400InstanceNotFoundFailed to find the instance. The instanceId may be invalid.
400PermissionCheckFailedAn error occurred while validating the resource permissions. Please check the account that created the instance, topic, and GroupId, and check their permission settings.
500InternalErrorAn error occurred while processing your request. Try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history