A REST Client for Cloudhealth
Project description
Cloudhealth REST Client
This is a Python REST Client for the Cloudhealth service.
Installation
pip install cloudhealth-client
# Clone repo
git clone https://github.com/albertonarro/cloudhealth-client.git
Python Usage
>>> from cloudhealth import client
>>> ch = client.CloudHealth(api_key='Ali23melAS$E#@$Im3lsim1!')
# List all queryable assets
>>> ch.assets.list()
['AwsInstanceType', 'AwsAvailabilityZone', 'AwsAccount', ... ]
# List Reports of Specific Type
>>> ch.reports.list_by_type('cost')
{
'links': {
'cost/billing_rules': {'href': 'https://chapi.cloudhealthtech.com/olap_reports/cost/billing_rules'},
'cost/current': {'href': 'https://chapi.cloudhealthtech.com/olap_reports/cost/current'},
...
...
}
}
Testing
[!WIP]
Contributions..
[!WIP]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudhealth-client-0.4.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for cloudhealth_client-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a08d9968e3cfafdea91de2536cd3e8905840d83a91070a874dd11d6ea0593b1f |
|
MD5 | 58455112043bbaadd9b61f3f27ea9920 |
|
BLAKE2b-256 | 0ed4c5eee26869e89ceea810920efed3da2a8e75da688b59edb7b6eb3e0cb15f |