Package: hpe3par-sdk
HPE Alletra 9000 and HPE Primera and HPE 3PAR Software Development Kit for PythonThis is a Client library that can talk to the HPE Alletra 9000 and Primera and 3PAR Storage array. The HPE Alletra 9000 and Primera and 3PAR storage array has 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.Requirements3PAR OS3.3.1 MU1, MU2, MU3, T053.2.2 MU4, MU6Primera OS4.3.1Alletra 9000 OS9.3.0WSAPI service should be enabled on the HPE Alletra 9000 and Primera and 3PAR storage arrayCapabilitiesCreate VolumeDelete VolumeGet all VolumesGet a VolumeModify a VolumeCopy a VolumeCreate a Volume SnapshotCreate CPGDelete CPGGet all CPGsGet a CPGGet a CPG’s Available SpaceCreate a VLUNDelete a VLUNGet all VLUNsGet a VLUNCreate a HostDelete a HostGet all HostsGet a HostGet VLUNs for a HostFind a HostFind a Host Set for a HostGet all Host SetsGet a Host SetCreate a Host SetDelete a Host SetModify a Host SetAdd Hosts to Host SetRemove Hosts from Host SetGet all PortsGet iSCSI PortsGet FC PortsGet IP PortsSet Volume MetadataGet Volume MetadataGet All Volume MetadataFind Volume MetadataRemove Volume MetadataCreate a Volume SetDelete a Volume SetModify a Volume SetAdd Volumes to Volume SetRemove Volumes from Volume SetGet a Volume SetGet all Volume SetsFind one Volume Set containing a specified VolumeFind all Volume Sets containing a specified VolumeCreate a QOS RuleModify a QOS RuleDelete a QOS RuleSet a QOS RuleQuery a QOS RuleQuery all QOS RulesGet a TaskGet all TasksGet a PatchGet all PatchesGet WSAPI VersionGet WSAPI Configuration InfoGet Storage System InfoGet Overall System CapacityStop Online Physical CopyQuery Online Physical Copy StatusStop Offline Physical CopyQuery Remote Copy InfoQuery a Remote Copy GroupQuery all Remote Copy GroupsCreate a Remote Copy GroupDelete a Remote Copy GroupModify a Remote Copy GroupAdd a Volume to a Remote Copy GroupGet Remote Copy Group VolumesGet Remote Copy Group VolumeRemove a Volume from a Remote Copy GroupStart Remote Copy on a Remote Copy GroupStop Remote Copy on a Remote Copy GroupSynchronize a Remote Copy GroupRecover a Remote Copy Group from a DisasterEnable/Disable Config Mirroring on a Remote Copy TargetPromote Virtual CopyCreate Snapshot ScheduleDelete SnapShot ScheduleModify Snapshot ScheduleSuspend Snapshot ScheduleResume Snapshot ScheduleGet Snapshot ScheduleAdmit Remote Copy LinksDismiss Remote Copy LinksStart Remote Copy ServiceAdd Target to Remote Copy GroupRemove Target from Remote Copy GroupRemote Copy Group Status CheckGet Remote Copy Group VolumesGet Remote Copy Group VolumeInstallationTo install:$ sudo pip install .Unit Tests
To run all unit tests:$ tox -e py27To run a specific test:$ tox -e py27 -- test/file.py:class_name.test_method_nameTo run all unit tests with code coverage:$ tox -e coverThe output of the coverage tests will be placed into the coverage dir.Foldersdocs – contains the documentation.hpe3par_sdk – the actual client.py librarytest – unit testsDocumentationTo build the documentation:$ tox -e docsTo view the built documentation point your browser to:docs/html/index.htmlRunning SimulatorsThe 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> -debugSSH:$ python test/HPE3ParMockServer_ssh.py [port]