Skip to main content

HPE Alletra MP, 9000, Primera and 3PAR Software Development Kit for Python

Project description

HPE Alletra MP, 9000, Primera and 3PAR Software Development Kit for Python

This is a Client library that can talk to the HPE Alletra MP, 9000, Primera and 3PAR Storage array. These storage arrays have a REST web service interface and a command line interface. This client library implements a simple interface for talking with either interface, as needed. The python Requests library is used to communicate with the REST interface. The python paramiko library is used to communicate with the command line interface over an SSH connection.

Requirements

  • 3PAR OS

    • 3.3.1 MU1, MU2, MU3, T05
    • 3.2.2 MU4, MU6
  • Primera OS

    • 4.3.1
    • 4.6.0
  • Alletra 9000 OS

    • 9.3.0
    • 9.6.0
  • Alletra MP OS

    • 10.4.0
  • WSAPI service should be enabled on the HPE Alletra MP, 9000, Primera and 3PAR storage array

Capabilities

  • Create Volume
  • Delete Volume
  • Get all Volumes
  • Get a Volume
  • Modify a Volume
  • Copy a Volume
  • Create a Volume Snapshot
  • Create CPG
  • Delete CPG
  • Get all CPGs
  • Get a CPG
  • Get a CPG's Available Space
  • Create a VLUN
  • Delete a VLUN
  • Get all VLUNs
  • Get a VLUN
  • Create a Host
  • Delete a Host
  • Get all Hosts
  • Get a Host
  • Get VLUNs for a Host
  • Find a Host
  • Find a Host Set for a Host
  • Get all Host Sets
  • Get a Host Set
  • Create a Host Set
  • Delete a Host Set
  • Modify a Host Set
  • Add Hosts to Host Set
  • Remove Hosts from Host Set
  • Get all Ports
  • Get iSCSI Ports
  • Get FC Ports
  • Get IP Ports
  • Set Volume Metadata
  • Get Volume Metadata
  • Get All Volume Metadata
  • Find Volume Metadata
  • Remove Volume Metadata
  • Create a Volume Set
  • Delete a Volume Set
  • Modify a Volume Set
  • Add Volumes to Volume Set
  • Remove Volumes from Volume Set
  • Get a Volume Set
  • Get all Volume Sets
  • Find one Volume Set containing a specified Volume
  • Find all Volume Sets containing a specified Volume
  • Create a QOS Rule
  • Modify a QOS Rule
  • Delete a QOS Rule
  • Set a QOS Rule
  • Query a QOS Rule
  • Query all QOS Rules
  • Get a Task
  • Get all Tasks
  • Get a Patch
  • Get all Patches
  • Get WSAPI Version
  • Get WSAPI Configuration Info
  • Get Storage System Info
  • Get Overall System Capacity
  • Stop Online Physical Copy
  • Query Online Physical Copy Status
  • Stop Offline Physical Copy
  • Query Remote Copy Info
  • Query a Remote Copy Group
  • Query all Remote Copy Groups
  • Create a Remote Copy Group
  • Delete a Remote Copy Group
  • Modify a Remote Copy Group
  • Add a Volume to a Remote Copy Group
  • Get Remote Copy Group Volumes
  • Get Remote Copy Group Volume
  • Remove a Volume from a Remote Copy Group
  • Start Remote Copy on a Remote Copy Group
  • Stop Remote Copy on a Remote Copy Group
  • Synchronize a Remote Copy Group
  • Recover a Remote Copy Group from a Disaster
  • Enable/Disable Config Mirroring on a Remote Copy Target
  • Promote Virtual Copy
  • Create Snapshot Schedule
  • Delete SnapShot Schedule
  • Modify Snapshot Schedule
  • Suspend Snapshot Schedule
  • Resume Snapshot Schedule
  • Get Snapshot Schedule
  • Admit Remote Copy Links
  • Dismiss Remote Copy Links
  • Start Remote Copy Service
  • Add Target to Remote Copy Group
  • Remove Target from Remote Copy Group
  • Remote Copy Group Status Check
  • Get Remote Copy Group Volumes
  • Get Remote Copy Group Volume

Installation

To install::

$ sudo pip install .

Unit Tests To run all unit tests::

$ tox -e py27

To run a specific test::

$ tox -e py27 -- test/file.py:class_name.test_method_name

To run all unit tests with code coverage::

$ tox -e cover

The output of the coverage tests will be placed into the coverage dir.

Folders

  • docs -- contains the documentation.
  • hpe3par_sdk -- the actual client.py library
  • test -- unit tests

Documentation

To build the documentation::

$ tox -e docs

To view the built documentation point your browser to::

docs/html/index.html

Running Simulators

The unit tests should automatically start/stop the simulators. To start them manually use the following commands. To stop them, use 'kill'. Starting them manually before running unit tests also allows you to watch the debug output.

WSAPI::

$ python test/HPE3ParMockServer_flask.py -port 5001 -user <USERNAME> -password <PASSWORD> -debug

SSH::

$ python test/HPE3ParMockServer_ssh.py [port]

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

hpe3par_sdk-2.0.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

hpe3par_sdk-2.0-py2.py3-none-any.whl (43.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hpe3par_sdk-2.0.tar.gz.

File metadata

  • Download URL: hpe3par_sdk-2.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hpe3par_sdk-2.0.tar.gz
Algorithm Hash digest
SHA256 81a78cc090e5b981b9195bd9752e830552f451ab02fddad13c16f484cc9eb02f
MD5 d9c727333e2a14a6c1f54a08d157b6cf
BLAKE2b-256 0b8aec2c561fb74d153983486005e8f9a7ada3668ec8e8437d2139f597badfef

See more details on using hashes here.

File details

Details for the file hpe3par_sdk-2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hpe3par_sdk-2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 43.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hpe3par_sdk-2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac091b332268b6dc8f5a5840101e21540afa7c492ceeacf1c753345a292bbb7a
MD5 0b38404a3483a841e3cca6b518af3a28
BLAKE2b-256 0c800c9bf4925c56b0aea6e962cd34c820494ff6c0c709915b329c0dae150d67

See more details on using hashes here.

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