Skip to content

Instantly share code, notes, and snippets.

@ahonor
Created January 27, 2011 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ahonor/798722 to your computer and use it in GitHub Desktop.
Save ahonor/798722 to your computer and use it in GitHub Desktop.
URLs that better mesh with current concept names
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment