Publish acknowledge event
This section describes how to submit acknowledge dissemination of OAIS product thanks to AMQPS interface.
Exchange
Submission requests have to be published to REGARDS Rabbitmq exchange:
Exchange | Virtual host |
---|---|
regards.broadcast.fr.cnes.regards.modules.ingest.dto.request.event.DisseminationAckEvent | regards.multitenant.manager |
Request format
Properties
Parameter | Type | Description |
---|---|---|
app_id | String | Standard RabbitMQ property to track message origin. |
priority | Integer | Standard RabbitMQ property to sort messages by priority order. |
content_encoding | String | Standard RabbitMQ property for the encoding type of the message |
content_type | String | Standard RabbitMQ property for the MIME Type of the message sent |
delivery_mode | Integer | Standard RabbitMQ property for the delivery mode (persistent or not) |
Headers
Parameter | Type | Description |
---|---|---|
regards.tenant | String | Tenant name depends on REGARDS instance project configuration. |
regards.type | String | Type of content of the message |
Example of the properties and headers of an Ingest request event message
{
"app_id": "{ID of app}",
"priority": 1,
"delivery_mode": 2,
"content_encoding": "UTF-8",
"content_type": "application/json",
"headers": [
{
"regards.tenant": "REGARDS",
"regards.type": "fr.cnes.regards.modules.ingest.dto.request.event.DisseminationAckEvent"
}
]
}
Body
{
"urn": "URN:...",
"recipientLabel": "xxx"
}
Parameter | Type | Description |
---|---|---|
urn | String | Product URN to acknowledge |
recipientLabel | String | Name of the recipient to acknowledge |
recipient Label
This is the identifier of the external service from which the acknowledgment message was sent. This identifier matches one of the values that were added in the recipientLabel parameter when manual configuration of the notification service plugin.