Package: python-3parclient
HPE Alletra 9000 and HPE Primera and HPE 3PAR REST ClientThis 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.RequirementsHPE 3PAR: 3.1.3 MU1 or later.HPE Primera: 4.3.1 or later.HPE Alletra 9000: 9.3.0 or later.HPE 3PAR File Persona: 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 CopyResync 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 GroupRemove 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 TargetGet Remote Copy Group VolumesGet Remote Copy Group VolumeAdmit Remote Copy LinkDismiss Remote Copy LinkStart Remote CopyRemote Copy Service Exists CheckGet Remote Copy LinkRemote Copy Link Exists CheckAdmit Remote Copy TargetDismiss Remote Copy TargetTarget In Remote Copy Group Exists CheckRemote Copy Group Status CheckRemote Copy Group Status Started CheckRemote Copy Group Status Stopped CheckCreate ScheduleDelete ScheduleGet ScheduleModify ScheduleSuspend ScheduleResume ScheduleGet Schedule StatusPromote Virtual CopyGet a Flash CacheCreate a Flash CacheDelete a Flash CacheFile 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 from source:$ sudo pip install .To install fromhttp://pypi.org:$ sudo pip install python-3parclientUnit 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 documentationhpe3parclient – 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/HPE3ParMockServer_flask.py -port 5001 -user <USERNAME> -password <PASSWORD> -debugBuilding wheel distThis client now supports building via the new python WHEELS standard.
Take a look athttp://pythonwheels.combuilding:$ python setup.py bdist_wheelbuilding and uploading:$ python setup.py sdist bdist_wheel upload