You need to enable JavaScript to run this app.
导航
DescribeSubscriptionGroups
最近更新时间:2024.09.09 14:38:56首次发布时间:2023.03.29 20:41:58

调用 DescribeSubscriptionGroups 接口查询订阅消费组列表。

请求类型

同步请求。

请求参数

参数
类型
是否必选
示例值
描述
TaskId
String
4ddec6d036384248a25862fb********
任务 ID。

返回参数

参数
类型
示例值
描述
Groups
Object[]
[
    {
        "CreateTime":1679280623,
        "DelaySeconds":0,
        "Description":"",
        "GroupName":"9863318d02ed4a6f88f14c03a******:test****",
        "LogEndOffset":0,
        "Offset":-1,
        "PartitionId":0,
        "UpdateTime":1679280623,
        "Username":"test****"
    }
]

消费组列表信息。

示例

请求示例

POST /?Action=DescribeSubscriptionGroups&Version=2022-10-01 HTTP/1.1
Content-Type: application/json
Host: dts.volcengineapi.com
X-Date: 20221001T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20221001/cn-beijing/dts/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
{
    "TaskId": "9863318d02ed4a6f88f14c03a2*****"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202303201059212810CCE542B4640C8B51",
        "Action": "DescribeSubscriptionGroups",
        "Version": "2022-10-01",
        "Service": "dts",
        "Region": "cn-beijing"
    },
    "Result": {
        "Groups": [
            {
                "CreateTime": 1679280623,
                "DelaySeconds": 0,
                "Description": "",
                "GroupName": "9863318d02ed4a6f88f14c03a******:test****",
                "LogEndOffset": 0,
                "Offset": -1,
                "PartitionId": 0,
                "UpdateTime": 1679280623,
                "Username": "test****"
            }
        ]
    }
}

错误码

更多详情,请参见错误码