All Products
Search
Document Center

ApsaraMQ for RocketMQ:UpdateConsumerGroup

Last Updated:Mar 24, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Update ConsumerGroup

Operation description

Notice The OpenAPI provided by Alibaba Cloud is a management API used for managing and querying related resources of Alibaba Cloud services. It is recommended to integrate it only in the management chain. It is strictly prohibited to rely on OpenAPI implementation in the core data chain of message sending and receiving, otherwise it may lead to risks in the chain.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
rocketmq:UpdateConsumerGroupupdate
*ConsumerGroup
acs:rocketmq:{#regionId}:{#accountId}:instance/{#InstanceId}/consumergroup/{#ConsumerGroupId}
    none
none

Request syntax

PATCH /instances/{instanceId}/consumerGroups/{consumerGroupId} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The ID of the instance to which the consumer group to be updated belongs.

rmq-cn-7e22on9****
consumerGroupIdstringYes

The ID of the consumer group to be updated.

CID-TEST
bodyobjectNo

The request body.

remarkstringNo

The new description of the consumer group.

This is the remark for test.
deliveryOrderTypestringYes

The new message delivery method of the consumer group.

Valid values:

  • Concurrently: concurrent delivery
  • Orderly: ordered delivery
Concurrently
consumeRetryPolicyobjectYes

The new consumption retry policy of the consumer group. For more information, see Consumption retry.

retryPolicystringYes

The retry policy. For more information, see Message retry.

Valid values:

  • FixedRetryPolicy: fixed-interval retry. This value is valid only if you set deliveryOrderType to Orderly.
  • DefaultRetryPolicy: exponential backoff retry. This value is valid only if you set deliveryOrderType to Concurrently.
DefaultRetryPolicy
maxRetryTimesintegerNo

The maximum number of retries.

16
deadLetterTargetTopicstringNo

The dead-letter topic.

If a consumer still fails to consume a message after the maximum number of retries specified for the message is reached, the message is delivered to the dead-letter topic for subsequent business recovery or troubleshooting. For more information, see Consumption retry and dead-letter messages.

DLQ_mqtest
maxReceiveTpslongNo

The maximum TPS for message sending.

100

Response parameters

ParameterTypeDescriptionExample
object

Result

requestIdstring

The request ID, which is unique for each request and can be used for troubleshooting and problem localization.

C7F94090-3358-506A-97DC-34BC803C****
successboolean

Indicates whether the execution was successful.

true
databoolean

The result returned.

true
codestring

Error code.

InvalidDeliveryOrderType
messagestring

Error message.

Parameter deliveryOrderType is invalid.
httpStatusCodeinteger

HTTP status code.

400
dynamicCodestring

Dynamic error code.

xxx
dynamicMessagestring

Dynamic error message.

xxx

Examples

Sample success responses

JSONformat

{
  "requestId": "C7F94090-3358-506A-97DC-34BC803C****",
  "success": true,
  "data": true,
  "code": "InvalidDeliveryOrderType",
  "message": "Parameter deliveryOrderType is invalid.",
  "httpStatusCode": 400,
  "dynamicCode": "xxx",
  "dynamicMessage": "xxx"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-01-02The internal configuration of the API is changed, but the call is not affectedView Change Details
2024-12-23The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-11-17The internal configuration of the API is changed, but the call is not affectedView Change Details