from cloudianapi.client import CloudianAPIClient
client = CloudianAPIClient(
url=None
user=None,
key=None,
port=None
)
print client.monitor.host(nodeId="storage-node01")
print client.monitor.nodelist()
print client.monitor.events(nodeId="storage-node01", region="eu-west-1")
print client.monitor.notificationrules(region="eu-west-1")
print client.system.license()
print client.group.list()
print client.user.list(groupId="CustomerABC", userType="all", userStatus="active")
This python package is a working in progress, although suitable for testing environments and production, it still has limited features (check Fix Me & To do). Feel free to contribute by either making a PR or creating a new issue.
Simply run:
pip install cloudianapi
All Cloudian™ Hyperstore Admin API endpoints are dynamically mapped through cloudianapi.components
package in a
object-oriented approach. Each call, such as client.monitor.nodelist()
, returns a JSON compatible dictionary that can
easily be parsed to any data structure. All API calls parameters (such as nodeId, region, userType and so on) are case
sensitive, check your Cloudian™ Admin API documentation for more details. By default all calls are HTTP GET requests,
check the examples file for a broader overview on how to use this package.
- Test across multiple platforms