Trying to Pass Dynamic Value to Rundeck Server
问题 Variable(servicename) in rundeck, runningservices(sshd) I wanna pass here to rundeck server. import requests runningservice=sshd headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'X-Rundeck-Auth-Token': 'API', } data = '{"argString":"-servicename runningservice "}' response = requests.post('http://IP:PORT/api/16/job/JOBID/executions', headers=headers, data=data) 回答1: You can try in the following way: Job definition with three options: <joblist> <job> <context>