Skip to main content

NetApp OCUM API wrapper

Project description

Build Status Coverage Status


This is a human-made Python implementation of relevant parts of NetApp's ZAPI.

Supported Systems

Currently, only DFM 6.3/6.4 and ONTAP is supported.

Implemented Features


  • Events (just reading)


  • Volumes (reading)
  • Snapshots (reading)
  • Locks (reading)


Connect to a server:

s = Server(hostname="netapp-1234", username="admin",

Get a secific event:

event =

Filter events:

for event in

Pagination is automatically handled via Python generators:

for event in
        # Will perform multiple queries under the hood


  1. mkvirtualenv netapp-api-python
  2. workon netapp-api-python
  3. pip install -r requirements.txt
  4. python develop


Set the environment variables to a host running NetApp OCUM NETAPP_HOST, NETAPP_USERNAME, and NETAPP_PASSWORD and run pytest. To test ONTAP set ONTAP_HOST, etc.

Offline tests are enabled using Betamax, which records test data from interaction with the servers and stores it in the cassettes directory. One "cassette" is generated per test.

Generating documentation

Documentation via Sphinx is available (more or less). You can generate HTML documentation by going to /doc/ and entering make html.

The generated documentation is available on GitHub pages.


Licence version 3 (GPL Version 3), copied verbatim in the file "LICENSE". In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as Intergovernmental Organization or submit itself to any jurisdiction.

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

netapp-api-1.0.5.tar.gz (17.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page