3PAR WSAPI examples?

Post Reply
apol
Posts: 267
Joined: Wed May 07, 2014 1:51 am

3PAR WSAPI examples?

Post by apol »

Hi everybody,

when scripting 3PAR-stuff, we so far simply call cli.exe with appropriate switches.

I was wondering: Does anybody use wsapi for day to day scripting, and could perhaps share a basic script showing the usage?

The HPE 3PAR Web Services API 1.5 Developer’s Guide contains stuff like "Because 3PAR CLI scripts need to process CLI-generated text, Hewlett Packard Enterprise recommends using WSAPI to automate tasks.", but provides just Java and Perl-examples.
When all else fails, read the instructions.
natekippen
Posts: 72
Joined: Sun Dec 21, 2014 3:05 pm

Re: 3PAR WSAPI examples?

Post by natekippen »

I use it for reporting.

I took the perlite example and wrote a powershell script thyat followed the example.
apol
Posts: 267
Joined: Wed May 07, 2014 1:51 am

Re: 3PAR WSAPI examples?

Post by apol »

I tried the same, but failed when translating curl - parameters to the appropriate Invoke-Webrequest - parameters...

I keep getting an "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS", because I don't know what -k is in powershell :x
When all else fails, read the instructions.
nsnidanko
Posts: 116
Joined: Mon Feb 03, 2014 9:40 am

Re: 3PAR WSAPI examples?

Post by nsnidanko »

Take a look at my Powershell example
http://blog.gptnet.net/?p=304
apol
Posts: 267
Joined: Wed May 07, 2014 1:51 am

Re: 3PAR WSAPI examples?

Post by apol »

nsnidanko, thank you very much. This is exactly what I was looking for!
When all else fails, read the instructions.
swann
Posts: 1
Joined: Thu Feb 23, 2017 10:12 am

Re: 3PAR WSAPI examples?

Post by swann »

I'm new around here, so maybe this is silly.

Buy y'all know about this?

https://github.com/hpe-storage/python-3parclient
apol
Posts: 267
Joined: Wed May 07, 2014 1:51 am

Re: 3PAR WSAPI examples?

Post by apol »

I know it's around, but we use powershell. Our management environment is windows only, and ps is "just there".
When all else fails, read the instructions.
Post Reply