Publish a delivery request event
This section describes how to publish a new delivery request event to REGARDS with AMQP message.
Exchange
Delivery requests have to be published to REGARDS RabbitMQ exchange on vhost 'regards.multitenant.manager':
regards.broadcast.fr.cnes.regards.modules.delivery.amqp.input.DeliveryRequestDtoEvent
AMQP message format
Properties
Parameter | Type | Optional | Description |
---|---|---|---|
app_id | String | Yes | Standard RabbitMQ property to track message origin. |
priority | String | Yes | Standard RabbitMQ property to sort messages by priority order. |
Headers
"regards.tenant": "tenant"
"regards.request.owner": "owner"
Parameter | Type | Optional | Description |
---|---|---|---|
regards.tenant | String | No | Tenant name depends on REGARDS instance project configuration. |
regards.request.owner | String | No | Name of the request provider. |
Body
{
"correlationId": "xxxxxx",
"targetDelivery": "regards-s3-minio",
"order": {
"user": "xxxxxx",
"queries": [
"providerId:xxxxx"
],
"filters": [
{
"dataTypes": [],
"filenameRegExp": ""
}
]
}
}
Parameter | Type | Optional | Description |
---|---|---|---|
correlationId | String | No | Unique identifier to track the request. |
targetDelivery | String | Yes | Name of the S3 configuration to use. For now, provide the default value regards-s3-minio . |
queries | Lucene strings | No | List of lucene formatted queries to find products to order. (refer to lucene documentation) |
user | String | No | Email of your REGARDS user. |
filters.datatypes | String | Yes | List of REGARDS datatypes to filter files from ordered products. Datatypes can be either RAWDATA or QUICKLOOK . |
filters.filenameRegExp | String | Yes | Regular expression to filter files by their names from ordered products. |