I needed to Python-ize some code I had written for a Delphix Reporting integration with NetApp’s OCI. This KB for Delphix Reporting uses curl to login to the API and get data:
Translated into Python, the above should be:
Unfortunately, I don’t have success when I try to connect to Delphix Reporting.
I had to put verify=False at the end, like so.
Great, we have our response but how do we access our required output (loginToken & userId)?
Great, so now we know how to get our loginToken and userId. How do we get Storage Summary data?
From the KB:
This translates to:
Note: Remember the False in verify=False is case sensitive – it must have a capital F.
And this worked. To get the output into JSON format, run:
And to see the JSON format output, run: