Skip to main content
Version: 2.5.0

File availability guide

File available AMQP message​

How to​

When the restoration of product files is requested, the restoration request is forwarded to the rs-storage microservice. This microservice provides an AMQP endpoint to listen to file availability events. These events are published when a requested file becomes available, and when the restoration process failed.

Exchange​

When a file becomes available or when the file restoration failed, an AMQP message is sent to:

ExchangeRouting keyVirtual host
regards.storage.file.notificationregards.file.availability.status.<source_tenant>regards.multitenant.manager

<source_tenant> is the name of the project where the file restoration has occurred.

To listen to file availability events of a specific project A, define a queue bound to this exchange, with a binding key equal to regards.file.availability.status.A. Using project-specific queues is recommended to ensure confidentiality and improve efficiency.

To have a queue receive all file availability events whatever the project they originate from, use the binding key regards.file.availability.status.*.

Message content​

Properties​

ParameterTypeDescription
priorityIntegerStandard RabbitMQ property to sort messages by priority order.
content_encodingStringStandard RabbitMQ property for the encoding type of the message
content_typeStringStandard RabbitMQ property for the MIME Type of the message sent
delivery_modeIntegerStandard RabbitMQ property for the delivery mode (persistent or not)

Headers​

HeaderValue
regards.tenantName of the project where the file restoration occurred.

To restore a file, see catalog doc

Body​

PropertyTypeOptionalDescription
checksumStringNoFile checksum
availableBooleanNotrue if the file was restored successfully, false if the restore process failed.
expirationDateDateYesWhen the file will be not available anymore. null when available is false.
Examples​

Body for a file restoration success:

{
"checksum": "696DF19D7604AA1FEA11E88321D7E3D0",
"available": true,
"expiration_date": "2026-10-13T12:07:15.903932Z"
}

Body for a file restoration error:

{
"checksum": "696DF19D7604AA1FEA11E88321D7E3D0",
"available": false
}