Skip to content

Instantly share code, notes, and snippets.

@brucevanhorn2
Created November 10, 2022 18:07
Show Gist options
  • Save brucevanhorn2/6fd43adef0958dc7d2bdf0062ee8ee92 to your computer and use it in GitHub Desktop.
Save brucevanhorn2/6fd43adef0958dc7d2bdf0062ee8ee92 to your computer and use it in GitHub Desktop.
VSI 5 Enterprise Summary Export (PowerShell 7 Version)
$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
@brucevanhorn2
Copy link
Author

You can also specify csv as the export_format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment