- Start by exploring the AWX API by listing all the resources available through this API, as shown in the following code snippet:
curl -X GET http://172.20.100.110/api/v2/
- Collect all the job templates configured on the AWX interface with the following REST API call, and get the ID for each job template:
curl -X GET --user admin:password http://172.20.100.110/api/v2/job_templates/ -s | jq
- Launch a job template configured on the AWX interface with the following REST API call. In this example, we are launching job_Templates with ID = 7:
curl -X POST --user admin:password http://172.20.100.110/api/v2/job_templates/7/launch/ -s | jq
- Get the status of the job launched from the preceding API call with the following call.