pypheus

A python binding to work with the Morpheus API


Keywords
morpheus, api, python
License
Apache-2.0
Install
pip install pypheus==0.1.2

Documentation

pypheus

A python3 API for interacting with the Morpheus RESt client

Configuration

Simple installation:

pip3 install pypheus

You can reference the Morpheus API documetation to see examples of what gets returned when you make a request.

Note :you will need to import pypheus into your python script.

from pypheus.storage import Storage

# Create an instance of the storage class, pass credentials
storage = Storage(host,username,password)

# Call the API
info = storage.get_all_volumes()

# Return will be json
for v in info['storageVolumes']:
    print(v)

Documentation

Documentation for pypheus can be found here

Functions

  • network.py - Various network API calls
  • storage.py - Get storage buckets and volumes
  • monitoring.py - Alerts, incidents, contacts, checks
  • logs.py - Log dump