Hi,
I have requirement to find out if Dell EMC Secure Remote Service (SRS) is enabled on a VxRail cluster using powercli.
How can I get this info?
I'm not sure where you got that from, but that is not what Basic authentication with a user and password is about.
A good example is the 1st snippet in REST API call with Basic Authentication in Powershell
But since I have no experience with the REST API on vxRail, I can not help you further than that I'm afraid
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Perhaps by asking on the Dell VxRail community.
The vXRail.API modules can probably help or else use a direct REST API call.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for your reply.
However this information can be seen in vSphere client as shown below:
is it not possible to retrieve this information using powercli?
Not that I know off, I suspect that info is coming from a plugin in the Web Client
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
As per your advice I have checked with Dell VxRail community and they have given the following API to get the SRS details:
I tried using the following but failing every time. I have tried using [Net.ServicePointManager]::SecurityProtocol = "tls12" to fix this issue but it is still giving same error.
I actually do not know how to call API using powercli even not sure if I am doing it correctly. If it required authentication if yes then how to provide that. Please help.
Well, the screenshot of that page describing the APi does say that you need to add Basic authentication.
That is normally done through the Headers parameter on the Invoke-RestMethod cmdlet.
Btw, this has nothing to do with PowerCLI and is a pure PowerShell and REST API thing.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for reply.
After googling I found the following which tells me how to create a header object:
I'm not sure where you got that from, but that is not what Basic authentication with a user and password is about.
A good example is the 1st snippet in REST API call with Basic Authentication in Powershell
But since I have no experience with the REST API on vxRail, I can not help you further than that I'm afraid
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference