Package: hp3parclient
HP 3PAR REST ClientThis is a Client library that can talk to the HP 3PAR Storage array.  The 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.RequirementsThis branch requires 3.1.3 version MU1 or later of the 3PAR firmware.
File Persona capabilities require 3PAR firmware 3.2.1 Build 46 or later.CapabilitiesCreate 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 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 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 CopyFile Persona CapabilitiesGet File Services InfoCreate a File Provisioning GroupGrow a File Provisioning GroupGet File Provisioning Group InfoModify a File Provisioning GroupRemove a File Provisioning GroupCreate a Virtual File ServerGet Virtual File Server InfoModify a Virtual File ServerRemove a Virtual File ServerAssign an IP Address to a Virtual File ServerGet the Network Config of a Virtual File ServerModify the Network Config of a Virtual File ServerRemove the Network Config of a Virtual File ServerCreate a File Services User GroupModify a File Services User GroupRemove a File Services User GroupCreate a File Services UserModify a File Services UserRemove a File Services UserCreate a File StoreGet File Store InfoModify a File StoreRemove a File StoreCreate a File ShareGet File Share InfoModify a File ShareRemove a File ShareCreate a File Store SnapshotGet File Store Snapshot InfoRemove a File Store SnapshotReclaim Space from Deleted File Store SnapshotsGet File Store Snapshot Reclamation InfoStop or Pause a File Store Snapshot Reclamation TaskSet File Services QuotasGet Files Services Quota InfoInstallationTo install:$ sudo pip install .Unit TestsTo 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 thecoveragedir.Foldersdocs – contains the documentation.hp3parclient – the actual client.py librarytest – unit testssamples – some sample usesDocumentationTo 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/HP3ParMockServer_flask.py -port 5001 -user <USERNAME> -password <PASSWORD> -debugSSH:$ python test/HP3ParMockServer_ssh.py [port]