Python REST API client for Rundeck 2.6+
Project description
Rundeck REST API client
This is a Python REST API client for Rundeck 2.6+
Example
from pyrundeck import Rundeck
rundeck = Rundeck('http://rundeck-url',
token='sometoken',
api_version=32, # this is not mandatory, it defaults to 18
)
run = rundeck.run_job(RUNDECK_JOB_ID, options={'option1': 'foo'})
running_jobs = rundeck.get_executions_for_job(job_id=RUNDECK_JOB_ID, status='running')
for job in running_jobs['executions']:
print("%s is running" % job['id'])
A token can be generated in the 'profile' page of Rundeck. Alternatively you can login with a username and password.
See also
LICENSE
GPL3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrundeck-0.9.10.tar.gz
(3.8 kB
view hashes)
Built Distribution
pyrundeck-0.9.10-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for pyrundeck-0.9.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51881c2877384306eef9a8552b4ea227d9dea44b00c766e29df0a74bb60157db |
|
MD5 | fc7f5c4f1a5760b60eb065de98c04efa |
|
BLAKE2b-256 | c8b5e75eb4cd96844df16a60d2b08b0fbf8fa76c5acf763212cae05377d7bfd5 |