Created
November 10, 2022 18:07
-
-
Save brucevanhorn2/6fd43adef0958dc7d2bdf0062ee8ee92 to your computer and use it in GitHub Desktop.
VSI 5 Enterprise Summary Export (PowerShell 7 Version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Content-Type", "application/json") | |
$body = "{ | |
`n `"export_format`": `"json`", | |
`n `"request_date`": `"10-31-2022`", | |
`n `"request_user`": `"your email address here`", | |
`n `"request_password`": `"your password here`" | |
`n}" | |
$response = Invoke-RestMethod 'https://vsi5.visualstorageintelligence.com/api/export/v1/enterprise_summary' -Method 'POST' -Headers $headers -Body $body | |
$response | ConvertTo-Json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can also specify csv as the export_format