问题
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.
回答1:
You can use:
curl --data-urlencode "argString=-optionname value" http://yourhost:4440/api/29/job/${your-job-id}/run?authtoken=${your-auth-token}
来源:https://stackoverflow.com/questions/54588645/how-to-run-a-rundeck-job-via-one-liner-curl-command-with-an-option-value