Unsolved

Closed

1 Rookie

 • 

2 Posts

347

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!

Moderator

 • 

4K Posts

March 19th, 2023 20:00

Hi @Epter,

 

As much as I would like to help, but API scripting is not available for me in any article that I can refer. There isn't any documentation on it. I heard that you will have to install Posh-SSH module into the powershell environment. From there, you can use the Get-Command filter. Beyond that, I can't provide any information. Perhaps, the public community here can help out, but will have to wait for one to reply.

 

Apologies. 

No Events found!

Top