Skip to main content
Version: 1.16

Configuration Importation/Exportation

Microservices settings regroup a set of settings that are specific by tenant and stored in the microservice database.

Import/Export API

To configure some microservice settings for a specific tenant, you need to follow the generic Import/Export service configuration guide, it will help you understand the expected JSON file payload that you can send to the import configuration endpoint.

This configuration can also be imported or exported through administrator UI.

Configurable parameters

NameTypeDefault valueDescription
active_notificationsBooleanTrue
Enable or disable notifications sent to notifier microservice after each action on a product CREATION, DELETION, ..
sip_body_time_to_liveInteger7After this amount of days all SIP in database are cleared. This is done to lower the volume the database size.
dump_parametersObject{<br/>"isActiveModule":true,<br/>"cronTrigger":"0 0 0 1-7 * SUN",<br/>"dumpLocation":""<br/>}"Dump parameters.
last_dump_req_dateDateDate of the last dump of AIP done

Ingest chains

In the configuration file you can import/export ingest chains configuration. To do so you have to define all parameters of an ingest chain with all the associated plugins.

NameTypeDescription
nameStringUnique label of the ingest chain
validationPluginObjectSelected validation plugin configuration
preProcessingPluginObjectSelected pre processing plugin configuration
generationPluginObjectSelected product name generation plugin configuration
aipStorageMetadataPluginObjectSelected aip storage metadata plugin configuration
tagPluginObjectSelected AIP tag plugin configuration
postProcessingPluginObjectSelected post processing plugin configuration

Plugins configuration format

NameTypeDescription
pluginIdStringPlugin unique identifier. Used to identify which plugin to use
businessIdStringPlugin configuration unique identifier
labelStringPlugin configuration label.
versionStringPlugin configuration compatible version
priorityOrderIntegerplugin configuration priority.
activeBooleanEnable or disable plugin configuration
parametersObjectJson format of the plugin configuration parameters (specific for each plugin)

Example

rs-ingest configuration file example
{
"microservice": "rs-ingest",
"modules": [
{
"module": {
"id": "ingest",
"name": "SIP management module",
"description": "SIP submission and management",
"version": "1.6.0",
"author": "REGARDS",
"legalOwner": "CNES",
"documentation": "https://github.com/RegardsOss"
},
"resetBeforeImport": false,
"configuration": [
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "active_notifications",
"description": "Activate notifications on AIP request",
"value": "\"true\"",
"defaultValue": "false",
"className": "java.lang.Boolean",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "last_dump_req_date",
"description": "Date of last dump request",
"value": "\"2024-08-04T00:00:00.026113Z\"",
"defaultValue": "\"1970-01-01T00:00:00Z\"",
"className": "java.time.OffsetDateTime",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "sip_body_time_to_live",
"description": "Life time of a SIP, in days. SIP will be automatically removed at the term.",
"value": "7",
"defaultValue": "7",
"className": "java.lang.Integer",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.framework.modules.tenant.settings.domain.DynamicTenantSetting",
"value": {
"name": "dump_parameters",
"description": "Dump parameters",
"value": "{\"isActiveModule\":true,\"cronTrigger\":\"0 0 0 1-7 * SUN\",\"dumpLocation\":\"\"}",
"defaultValue": "{\"isActiveModule\":true,\"cronTrigger\":\"0 0 0 1-7 * SUN\",\"dumpLocation\":\"\"}",
"className": "fr.cnes.regards.framework.modules.dump.domain.DumpParameters",
"containsSensitiveParameters": false
}
},
{
"key": "fr.cnes.regards.modules.ingest.domain.chain.IngestProcessingChain",
"value": {
"name": "DefaultProcessingChain",
"validationPlugin": {
"pluginId": "DefaultSipValidation",
"label": "DefaultSIPValidation",
"businessId": "c7f13ec9-5349-4339-960c-143278a3e8ff",
"version": "1.0.0",
"priorityOrder": 0,
"active": true,
"parameters": []
},
"generationPlugin": {
"pluginId": "DefaultSingleAIPGeneration",
"label": "DefaultAIPGeneration",
"businessId": "9c115403-9f70-44b9-abc3-d4630a4a8a9d",
"version": "1.0.0",
"priorityOrder": 0,
"active": true,
"parameters": []
}
}
}
]
}
]
}