UNSOLVED

Epter

updated

3 years ago

Closed

E

Epter

1 Rookie

2 Posts

0

389

March 18th, 2023 09:00

ME4024 API query via Powershell

I want to be able to query the ME4024's API using PowerShell, to get an XML output so i can parse it later for different uses.

If I manually create a login call to the API that uses a SHA256 hashed set of credentials and paste that on a browser,
something like https://10.0.0.2/api/login/539e12f63b693a9970a97b885e857f8b , I get a successful a XML output that contains a valid auth token as part of the response.

Now I would like to do the same, but inside a PowerShell script.

Just a basic a script that connect's to the API using the hashed credentials,gets the token,and issues
some simple query commands, like "show controllers" or any other CLI commands that generates an XML output, that I can store into a variable and parse it as desired.

Can someone provide any script example or point me in the right direction of what PowerShell methods to use?

In the "Dell PowerVault ME4 Series Storage System CLI Guide" there are a couple of script examples using Pearl and Python, but there is nothing in regards to Powershell.

Thanks in advance!