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

﹥>﹥吖頭↗ 提交于 2019-12-11 15:01:23

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!