分布式消息服务ROCKETMQ版-创建消费组或批量删除消费组:请求示例

时间:2023-11-09 09:49:19

请求示例

  • 创建一个消费组,关联的代理为broker-0,最大重试次数为16。

    POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/groups
    
    {
      "name" : "consumer-group-test",
      "brokers" : [ "broker-0" ],
      "from_beginning" : false,
      "broadcast" : false,
      "retry_max_time" : 16
    }
  • 删除指定的消费组。

    POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/groups?action=delete
    
    {
      "groups" : [ "consumer-group-test" ]
    }
support.huaweicloud.com/api-hrm/CreateConsumerGroupOrBatchDeleteConsumerGroup.html