Skip to content

Instantly share code, notes, and snippets.

@brucevanhorn2
Created November 10, 2022 18:08
Show Gist options
  • Save brucevanhorn2/2c76975ddba92751caf916d4374ca1ec to your computer and use it in GitHub Desktop.
Save brucevanhorn2/2c76975ddba92751caf916d4374ca1ec to your computer and use it in GitHub Desktop.
VSI 5 Enterprise Summary Export (Python 3 Version)
import http.client
import json
conn = http.client.HTTPSConnection("vsi5.visualstorageintelligence.com")
payload = json.dumps({
"export_format": "json",
"request_date": "10-31-2022",
"request_user": "your email here",
"request_password": "your password here"
})
headers = {
'Content-Type': 'application/json'
}
conn.request("POST", "/api/export/v1/enterprise_summary", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
@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