Ansible AWX Client
Donate to help keep this project maintained
Summary
This is a unofficial python API client for Ansible AWX.
Requirements
- requests
Quick Start Guide
Install Ansible AWX Client
pip install ansibleawx-client
Initialize API Client
You can do this with your username and password or using your Token.
Initialize client with your username and password
import ansibleawx
API_URL = "http://my-ansibleawx.com/api/v2"
client = ansibleawx.Api("username", "password", api_url=API_URL)
Initialize client with your token
import ansibleawx
API_URL = "http://my-ansibleawx.com/api/v2"
TOKEN = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
client = ansibleawx.Api(api_url=API_URL, token=TOKEN)
Examples
Get Inventories
# to get all inventories
response = client.get_inventories()
# to get specific inventory by id
response = client.get_inventories(1)
Get Jobs Templates
# to get all jobs templates
response = client.get_jobs_templates()
# to get specific job template by id
response = client.get_jobs_templates(1)
Launch Job Template by id
response = client.launch_job_template(1)
Relaunch Job by id
response = client.relaunch_job(1)
Cancel Job by id
response = client.cancel_job(1)
Function Reference
Consult the Ansible Tower documentation for more details.
Metadata
Release files for ansibleawx-client 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ansibleawx-client-0.1.1.tar.gz | 4.1 kB | Without provenance | Details for ansibleawx-client-0.1.1.tar.gz |
Release files / ansibleawx-client-0.1.1.tar.gz
| Download URL | ansibleawx-client-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4acf212e1548b8034e356029d973e644125006a8ce3cfa16bc83cb120bec7473
|
|
BLAKE2b-256 checksum How to use checksums |
23db6c43a9e979fcd9df98f18b3f2f8b8f5906b833076049b1924d307226e207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for ansibleawx-client 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.