As a follow-up of my exploration of the [HPE PDU REST API](/2018/11/19/exploring-the-hpe-g2-pdu-rest-api/) I wanted to create a Powershell module as a wrapper for the API.
I've previously written a post on how to create a Powershell module as a wrapper for an API [here](/2018/01/31/creating-a-powershell-module-as-an-api-wrapper/). The PDU module will be built in the same way where there will be a private function that handles the actual API requests
Lately I've been playing around with the Redfish based REST API in the HPE G2 Metered and Switched Power Distribution Units.
Through the API you are able to pull some details about the PDU as well as different utilization data. Based on your PDUs capabilities you should also be able to control different outlets. My …