Scheduled Tasks
Create scheduled task
Changed onCreates a new recurring task. Action-target rules:
- restart requires target_type: stack or target_type: container (with target_id and node_id)
- auto_stop and auto_start accept target_type: stack or target_type: container
- snapshot requires target_type: fleet
- prune requires target_type: system
Requires admin role.
post/api/scheduled-tasks
Request
- Base URLhttps://localhost:1852
- URLhttps://localhost:1852/api/scheduled-tasks
- AuthHTTP bearer
Request body
Example request
{
"name": "Nightly restart",
"cron_expression": "0 3 * * *"
}Response
Task created.
Example response
{
"cron_expression": "0 3 * * *"
}Changes
- warning
added the new
containerenum value to theresponse property for the response status - info
added the new
containerenum value to the request property
- warning
- info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status
- info