Updated on 2022-12-05 GMT+08:00

Retransmitting a Message

Function

This API is used to retransmit a message.

URI

POST /v2/{project_id}/mqs/instances/{instance_id}/messages/action

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID.

instance_id

Yes

String

Instance ID.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

action_id

Yes

String

Retransmission type. Currently, only resend is supported.

Request Parameters

Table 3 Request body 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

Table 4 Response body parameters

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.