How to use the pyrundeck.rundeck.Rundeck function in pyrundeck

To help you get started, we’ve selected a few pyrundeck examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pschmitt / pyrundeck / pyrundeck / rundeck.py View on Github external
url = "{}/project/{}/resource/{}".format(
            self.API_URL, project, resource
        )
        return self.__get(url)


if __name__ == "__main__":
    from pprint import pprint

    rundeck_url = os.environ.get("RUNDECK_URL")
    username = os.environ.get("RUNDECK_USER")
    password = os.environ.get("RUNDECK_PASS")
    assert rundeck_url, "Rundeck URL is required"
    assert username, "Username is required"
    assert password, "Password is required"
    rd = Rundeck(
        rundeck_url, username=username, password=password, verify=False
    )
    pprint(rd.list_projects())
    pprint(rd.list_all_jobs())

pyrundeck

Python REST API client for Rundeck 2.6+

GPL-3.0
Latest version published 2 years ago

Package Health Score

44 / 100
Full package analysis

Popular pyrundeck functions