Creates a group.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateConsumerGroup

The operation that you want to perform. Set the value to


ConsumerId String Yes test

The name of the group. Take note of the following rules when you specify a group name:

  • The name can contain only letters, digits, hyphens (-), and underscores (_).
  • The name must be 3 to 64 characters in length. Names that contain more than 64 characters will be automatically truncated.
  • After a group is created, its name cannot be modified.
InstanceId String Yes alikafka_post-cn-0pp1l9z8****

The ID of the Message Queue for Apache Kafka instance in which you want to create the group.

RegionId String Yes cn-hangzhou

The ID of the region where the instance resides.

Remark String No test

The description of the group.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code. If 200 is returned, the request is successful.

Message String operation success

The response message.

RequestId String E57A8862-DF68-4055-8E55-B80CB417**

The ID of the request.

Success Boolean true

Indicates whether the request is successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format

      <Message>operation success</Message>

JSON format

    "RequestId": "E57A8862-DF68-4055-8E55-B80CB417**",
    "Message": "operation success",
    "Code": 200,
    "Success": true

Error codes

For a list of error codes, visit the API Error Center.