HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
REST API Response Codes
Examples
https://{appl}/rest/power-devices/{id}/uidState
Returns the UID state of the power delivery device with the URI
/rest/power-devices/A-B-C that is being managed by the appliance
app1.corp.net.
https://app1.corp.net/rest/power-devices/A-B-C/uidState
PUT Sets the unit identification (UID) light state of the specified power delivery device. The device must
be an HP iPDU component with a locator light (HP Intelligent Load Segment, HP AC Module, HP
Intelligent Outlet Bar, or HP Intelligent Outlet).
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Request
Body
Attributes Description
OutletState Required - Outlet light state to be set.
Response Description
TaskResourceV2 TaskResource representing the UID state update
operation.
Response Codes
REST API Response Codes
Examples
https://{appl}/rest/power-devices/{id}/uidState
Request body
{
"uidState":"On|Off"
}
Set the UID state of the power delivery device with the URI
/rest/power-devices/A-B-C that is being managed by the appliance
app1.corp.net:
https://app1.corp.net/rest/power-devices/A-B-C/uidState
Request body
{
"uidState":"On"
}
URI: /rest/power-devices/{id}/utilization
Method API
GET Retrieves historical utilization data for the specified metrics, and time span. The device must be a