About
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
DFM:
- Events (just reading)
ONTAP:
- Volumes (reading)
- Snapshots (reading)
- Locks (reading)
Examples
Connect to a server:
s = Server(hostname="netapp-1234", username="admin",
password="admin123")
Get a secific event:
event = s.events.single_by_id(13)
Filter events:
for event in s.events.filter(greater_than_id=13):
print(event)
Pagination is automatically handled via Python generators:
for event in s.events.filter(max_records=4):
print(event)
# Will perform multiple queries under the hood
Setup
mkvirtualenv netapp-api-pythonworkon netapp-api-pythonpip install -r requirements.txtpython setup.py develop
Testing
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.
License
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.
Metadata
Release files for netapp-api 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netapp-api-1.0.5.tar.gz | 17.5 kB | Without provenance | Details for netapp-api-1.0.5.tar.gz |
Release files / netapp-api-1.0.5.tar.gz
| Download URL | netapp-api-1.0.5.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
703210f290dc856910fad4554c0d804321e7ab8f4d1ecc7078621725ee9d9478
|
|
BLAKE2b-256 checksum How to use checksums |
5fc8aa0a334b49069f79ea44b9ff385d21cf3f21d8925d40120b006fe3a4cf0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.8
|
Security for netapp-api 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.