Search code examples
rundeck

How to Run a Rundeck Job via One-liner Curl Command with an Option Value?


I'm planning on running a one liner curl command like this:

https://rundeck.url.com/api/1/job/${job_id_here}/run?authtoken=${token_here}&Message=hello

wherein the Message is an option or if a variable inside a Rundeck job.


Solution

  • You can use:

    curl --data-urlencode "argString=-optionname value" http://yourhost:4440/api/29/job/${your-job-id}/run?authtoken=${your-auth-token}