Skip to main content
Version: 2.0

Publish a delivery request event

Introduction

This section describes how to publish a new delivery request event to REGARDS with AMQP message.

AMQP API

How to

The Regards AMQP API concept describe how AMQP interfaces must be handled to submit events or to subscribe to events.

Exchange

Delivery requests have to be published to REGARDS Rabbitmq exchange:

ExchangeVirtual host
regards.broadcast.fr.cnes.regards.modules.delivery.amqp.input.DeliveryRequestDtoEventregards.multitenant.manager

Request content

Properties

ParameterTypeOptionalDescription
app_idStringYesStandard RabbitMQ property to track message origin.
priorityStringYesStandard RabbitMQ property to sort messages by priority order.

Headers

"regards.tenant": "tenant"
"regards.request.owner": "owner"
ParameterTypeOptionalDescription
regards.tenantStringNoTenant name depends on REGARDS instance project configuration.
regards.request.ownerStringNoName of the request provider.

Body

ParameterTypeOptionalDescription
correlationIdStringNoUnique identifier to track the request.
targetDeliveryStringYesName of the S3 configuration to use. For now, provide the default value regards-s3-minio.
queriesLucene stringsNoList of lucene formatted queries to find products to order. (refer to lucene documentation)
userStringNoEmail of your REGARDS user.
filters.datatypesStringYesList of REGARDS datatypes to filter files from ordered products. Datatypes can be either RAWDATA or QUICKLOOK.
filters.filenameRegExpStringYesRegular expression to filter files by their names from ordered products.

Example :

{
"correlationId": "xxxxxx",
"targetDelivery": "regards-s3-minio",
"order": {
"user": "xxxxxx",
"queries": [
"providerId:xxxxx"
],
"filters": [
{
"dataTypes": [],
"filenameRegExp": ""
}
]
}
}
queries format

Queries parameter is a list of String formatted lucene query. To be accurate, you have to ensure that requested parameters are existing REGARDS attributes. Attributes are composed of Standard attributes and Models attributes. In the given example, the queried attribute providerId is a standard attribute always available for search.
To learn more about Queryable attributes see Data management documentation.