syndesisio / syndesis-extensions

Collection of Syndesis extensions
Apache License 2.0
31 stars 73 forks source link

Create AWX (or Ansible Tower) API extention #70

Open banz-ghb opened 6 years ago

banz-ghb commented 6 years ago

This issue is a request. I want AWX (or Ansible Tower) API extention. It will complement the missing functions of awx workflow reasonable.

Swagger documents are as follows.

https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html

usecase1

Monitor tools (prometheus, zabbix etc) invokes a job template, which means a playbook, through webhook consumer endpoint.

POST /api/v2/job_templates/{id}/launch/ Launch a Job Template

With the extra_vars, it is possible to change the behavior of the job template (such as target nodes and options)

usecase2

In accordance with the job execution result, subsequent processing such as notification and recovery are executed.

GET /api/v2/jobs/{id}/ Retrieve a Job
zregvart commented 5 years ago

I see that AWX has a OpenAPI specification that can be built, perhaps the easiest way would be to build that specification and hand it over to the custom API client connector functionality.