https://github.com/laspavel/foreman-api
Simple Python Foreman api client
https://github.com/laspavel/foreman-api
foreman foreman-api python3 rest-api rest-api-client
Last synced: 7 months ago
JSON representation
Simple Python Foreman api client
- Host: GitHub
- URL: https://github.com/laspavel/foreman-api
- Owner: laspavel
- License: mit
- Created: 2023-06-06T17:59:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-06T18:34:11.000Z (over 2 years ago)
- Last Synced: 2025-01-11T05:19:09.061Z (9 months ago)
- Topics: foreman, foreman-api, python3, rest-api, rest-api-client
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# foreman-api - Simple Foreman api client #
**Requirements:**
* python 3.8 (or higher)**Example usage:**
```
import ForemanApi
rapi=ForemanApi.ForemanAPI('https://foreman.example.com/api/','apiuser','apipassword')
hosts=rapi.api_request(api_type='get',api_method='hosts/1')
# hosts=rapi.get.hosts(id=1)
print(hosts)
```## License ##
MIT / BSD
## Author Information ##
This client was created in 2023 by [Pavel Lashkevych](https://laspavel.top/).