Retransmitting a Message
Function
This API is used to retransmit a message.
URI
POST /v2/{project_id}/mqs/instances/{instance_id}/messages/action
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Tenant's project ID. |
| instance_id | Yes | String | Instance ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| action_id | Yes | String | Retransmission type. Currently, only resend is supported. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| topic | Yes | String | Topic name. |
| partition | Yes | Integer | Partition. |
| message_offset | Yes | Number | Message offset. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| topic | String | Topic name. |
| partition | Integer | Partition. |
| message_offset | Integer | Message offset. |
Example Requests
POST https://{endpoint}/v2/{project_id}/mqs/instances/{instance_id}/messages/action?action_id=resend
{
"topic" : "topic-test",
"partition" : 0,
"message_offset" : 4
} Example Responses
Status code: 200
OK
{
"topic" : "topic-test",
"partition" : 0,
"message_offset" : 4
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 403 | Forbidden |
Error Codes
See Error Codes.
Last Article: Querying a Message
Next Article: Permission Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.