Configures the permission for a consumer group with a specified group ID to read messages.

Usage notes

You can call this operation to configure the permission for a consumer group to read messages based on a specified region of Message Queue for Apache RocketMQ and a specified group ID. This operation is applicable to scenarios where a specific group ID is forbidden from reading messages.

QPS limit

The queries-per-second (QPS) limit on this operation is 10 per user. Throttling is triggered when the number of calls to this operation per second exceeds the QPS limit. Throttling may affect your business. Therefore, call this operation based on your needs. For more information, see QPS limits.

Authorization information

By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after they are authorized to use it. The following table lists the authorization information of this operation. For more information, see Policies and examples.



Resource (with namespace)

Resource (without namespace)






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 OnsGroupConsumerUpdate

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

GroupId String Yes GID_test_groupId

The group ID for which you want to configure the permission to read messages.

InstanceId String Yes MQ_INST_111111111111_DOxxxxxx

The ID of the instance where the group ID you want to configure is located.

ReadEnable Boolean Yes true

Specifies whether to enable the permission to read messages.

Response parameters

Parameter Type Example Description
RequestId String A07E3902-B92E-44A6-B6C5-6AA111111****

The ID of the request, which is a common parameter. Each request has a unique ID to facilitate troubleshooting and fault locating.


Sample requests

http(s):// Action=OnsGroupConsumerUpdate
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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