Unsolved
This post is more than 5 years old
24 Posts
0
3123
October 11th, 2017 15:00
EMC Unity OE and Powershell REST login
Hi,
I've been tasked to build a custom monitoring interface for our internal monitoring software with the EMC Unity OE. I'm using Powershell v4 and assumed that I could just use the normal Invoke-Restmethod, similar to how I did it with the VMAX. However, I see a number of other people have struggled (e.g. EMC Unity REST API and PowerShell - David Muegge's Blog), and all seem to fail back to either using Invoke-Webrequest or using the HTTPWebRequest out of .Net .
I only succeed by obtaining a session token by follow the example given by logging in via the CAS server:
CAS Authentication using Powershell's Invoke-RestMethod
This seems "clunky", as Invoke-Restmehod don't seem to deal as well with redirects as cURL does (?).
Has anyone any tip on how to directly use Powershell to do normal http basic authentication directly and not via the CAS?
Thanks in advance,
-John Fjeldberg



wcbuerste
2 Posts
0
August 23rd, 2019 06:00
DanPJ
2 Intern
•
309 Posts
0
December 19th, 2019 13:00
I would also like to know if this has been resolved yet. It can't be this complicated to use Invoke-RestMethod to log into the Unity array.