Reply to Message

Reply to Message

View discussion in a popup

Replying to:
nj1250
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 'https://7.32.212.40/vplex/cluster+configdump' -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?
Thanks!
0 Kudos