Scan Modes
Create scan mode
Creates a new scan mode with the provided configuration
post/api/scan-modes
Request body
Example request
{
"name": "Daily Backup Scan",
"description": "Scans for new backup data every day at midnight",
"cron": "0 0 * * *",
"interval": {
"value": 30
},
"activationWindow": {
"dateRange": {
"start": "2023-10-31T12:34:56.789Z",
"end": "2023-10-31T12:34:56.789Z"
},
"recurring": {
"timezone": "Europe/Paris",
"daysOfWeek": [
6,
0
],
"timeOfDay": {
"start": "12:34:56",
"end": "12:34:56"
}
}
}
}Response
Scan mode created successfully
Example response
{
"id": "entity123",
"createdBy": {
"id": "abc123",
"friendlyName": "John Doe (john.doe)"
},
"updatedBy": {
"id": "abc123",
"friendlyName": "John Doe (john.doe)"
},
"createdAt": "2023-10-31T12:34:56.789Z",
"updatedAt": "2023-10-31T12:34:56.789Z",
"name": "Daily Backup Scan",
"description": "Scans for new backup data every day at midnight",
"cron": "0 0 * * *",
"interval": {
"value": 30
},
"activationWindow": {
"dateRange": {
"start": "2023-10-31T12:34:56.789Z",
"end": "2023-10-31T12:34:56.789Z"
},
"recurring": {
"timezone": "Europe/Paris",
"daysOfWeek": [
6,
0
],
"timeOfDay": {
"start": "12:34:56",
"end": "12:34:56"
}
}
}
}