Files
awx/awx/api/templates/api/system_job_template_launch.md
Christian Adams 8ca0c1b992 Add clearsessions and cleartokens system jobs
* add system job for gathering insights analytics
* enforce schedule enablement with analytics setting
* remove celery beat analytics job
* keep analytics schedule & setting enablement in sync in API
* handles updating schedules for multiple sys job schedules
* add analytics setting & schedule test
* rm ui modal from collection sys job
2019-05-22 13:11:48 -04:00

1006 B

Launch a Job Template:

Make a POST request to this resource to launch the system job template.

Variables specified inside of the parameter extra_vars are passed to the system job task as command line parameters. These tasks can be run manually on the host system via the awx-manage command.

For example on cleanup_jobs and cleanup_activitystream:

{"extra_vars": {"days": 30}}

Which will act on data older than 30 days.

For cleanup_activitystream and cleanup_jobs commands, providing "dry_run": true inside of extra_vars will show items that will be removed without deleting them.

Each individual system job task has its own default values, which are applicable either when running it from the command line or launching its system job template with empty extra_vars.

  • Defaults for cleanup_activitystream: days=90
  • Defaults for cleanup_jobs: days=90

If successful, the response status code will be 202. If the job cannot be launched, a 405 status code will be returned.