Page 1 of 1

3PAR WSAPI examples?

Posted: Mon Jan 30, 2017 4:36 am
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.

Re: 3PAR WSAPI examples?

Posted: Mon Jan 30, 2017 2:50 pm
by natekippen
I use it for reporting.

I took the perlite example and wrote a powershell script thyat followed the example.

Re: 3PAR WSAPI examples?

Posted: Wed Feb 01, 2017 7:09 am
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

Re: 3PAR WSAPI examples?

Posted: Wed Feb 01, 2017 9:16 am
by nsnidanko
Take a look at my Powershell example
http://blog.gptnet.net/?p=304

Re: 3PAR WSAPI examples?

Posted: Thu Feb 02, 2017 1:52 am
by apol
nsnidanko, thank you very much. This is exactly what I was looking for!

Re: 3PAR WSAPI examples?

Posted: Thu Feb 23, 2017 10:15 am
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

Re: 3PAR WSAPI examples?

Posted: Fri Feb 24, 2017 1:33 am
by apol
I know it's around, but we use powershell. Our management environment is windows only, and ps is "just there".