-
-
Save gschueler/806321 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Jobs | |
** List jobs | |
+ [[https://gist.github.com/785084][Query rundeck jobs list for a project, optionally save the xml file]] | |
+ Existing URL: "/menu/workflows.xml?projFilter={project}" | |
+ Hypothetical alternatives: | |
+ Jobs-oriented: | |
+ /api/jobs.xml?project={project} | |
+ /api/jobs/list.xml?project={project} | |
** Run a job | |
+ [[https://gist.github.com/783971][How to run a job using curl]] | |
+ Existing URL: "/scheduledExecution/runJobByName.xml?id={jobId}" | |
+ Hypothetical alternatives: | |
+ Job-oriented: | |
+ /api/job/run.xml?id={jobId} | |
+ /api/job/{jobId}/run | |
+ /api/job/run/{jobId}.xml | |
** Queue list | |
+ [[https://gist.github.com/785055][Script to query queue using curl]] | |
+ Existing URL: "/menu/queueList.xml?id={jobId}" | |
+ Hypothetical alternatives: | |
+ Jobs-oriented: | |
+ /api/jobs/running.xml?id={jobId} | |
+ /api/jobs/{jobId}/running.xml?id={jobid} | |
+ Executions-oriented: | |
+ /api/executions.xml | |
+ /api/executions/list.xml | |
+ /api/execution/{id} | |
+ /api/execution/{id}/status.xml | |
* Ad hoc commands (run and forget) | |
** Run a command | |
+ [[https://gist.github.com/790341][Dispatch execution using curl]] | |
+ Existing URL: "POST /scheduledExecution/uploadAndExecute.xml" | |
+Hypothetical alternatives: | |
+ Jobs-oriented | |
+ POST /api/jobs/uploadAndExecute.xml | |
+ Ad hoc oriented | |
+ POST /api/dispatch.xml | |
+ POST /api/run.xml | |
+ Command oriented | |
+ GET/POST /api/command/run.xml?exec={commands}&project={project} | |
+ GET/POST /api/run/command.xml?exec={commands}&project={project} | |
+ POST /api/run/script.xml?project={project} + (script content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment