更新时间:2022-12-05 GMT+08:00
重发消息
功能介绍
重发消息。
URI
POST /v2/{project_id}/mqs/instances/{instance_id}/messages/action
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| project_id | 是 | String | 租户的项目ID。 |
| instance_id | 是 | String | 实例ID。 |
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| action_id | 是 | String | 重发类型。当前只支持“resend”。 |
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
| topic | 是 | String | topic名称。 |
| partition | 是 | Integer | 分区。 |
| message_offset | 是 | Number | 消息偏移量。 |
响应参数
状态码: 200
| 参数 | 参数类型 | 描述 |
|---|---|---|
| topic | String | topic名称。 |
| partition | Integer | 分区。 |
| message_offset | Integer | 消息偏移量。 |
请求示例
POST https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/messages/action?action_id=resend
{
"topic" : "topic-test",
"partition" : 0,
"message_offset" : 4
} 响应示例
状态码: 200
OK
{
"topic" : "topic-test",
"partition" : 0,
"message_offset" : 4
} 状态码
| 状态码 | 描述 |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 403 | Forbidden |
错误码
请参见错误码。
父主题: 消息管理