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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot