Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Create AWX (or Ansible Tower) API extention #70

Open
banz-ghb opened this issue Sep 20, 2018 · 1 comment
Open

Create AWX (or Ansible Tower) API extention #70

banz-ghb opened this issue Sep 20, 2018 · 1 comment

Comments

@banz-ghb
Copy link

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
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants