1 Copper

Re: Powershell scripts for VPlex performance monitoring

Thanks for the excellent post! I am trying to get a cluster configdump from VPlex using the REST API. I am using PowerShell v3.0 which simplifies making web requests with the Invoke-RestMethod command. Here is what I am trying to do:
$header = @{'Username' = $username; 'Password' = $password}
$result = Invoke-RestMethod '' -Headers $header -Method Post -Body '{ "args" : "-c cluster1"}'
I get back error 524 from the server. Other commands such as "ls" work fine with arguments. Not sure what the problem is. I just want to get the configdump via REST. It does not matter whether I use Invoke-RestMethod or WebClient. Can you please help?
0 Kudos