The HPE G2 PDUs ship with a REST API based on the Redfish standard. This is nice, but as of this writing the documentation for the API is completely missing.
I wrote a blog post about how I explored the API to pull the data I wanted. Feel free to check it out for more information
I've created a Postman collection for some (if not all) of the available endpoints. Please note that I've only added GET examples.
The collection shows examples on how to retrieve information about the different PDUs that are connected and also how to pull the utilization on the Load segments as well as the different outlets in each segment.
To learn how you can work with Postman collections check out the Intro to collection in the Postman documentation, and details on how to import collection can be found here
If you want to check out the endpoints feel free to download the Postman collection and start playing with it in your Postman client.
Authentication
The examples are built with Basic Auth authentication. In the collection you need to update the Authorization tab with credentials that works in your environment
Variables
All examples requires a mgmtIp variable where you specify the Management IP address. To pull details about PDUs you will also need to include the PDU id in the pduId variable, and for the segment utilization you need to specify the segmentId variable.
To specify variables in your collection check out the Postman documentation