HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
REST API Response Codes
Examples
Each power delivery device resource has a uri representation in the form
of:
https://{appl}/rest/power-devices/{id}
Update power device name and rated capacity, reset the omitted
properties
to their default values:
https://{appl}/rest/power-devices/4b4b87e2-eea8-4c90-8eca-
b92eaaeecfff
Request body:
{
"id":"4b4b87e2-eea8-4c90-8eca-b92eaaeecfff",
"uuid":"4b4b87e2-eea8-4c90-8eca-b92eaaeecfff",
"name":"MyPDD",
"ratedCapacity": "4000"
}
URI: /rest/power-devices/{id}/powerState
Method API
GET Gets the power state (on, off or unknown) of the specified power delivery device that supports
power control. The device must be an 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"
Response Description
OutletState OutletState.Power indicating Outlets current Power
state
Response Codes
REST API Response Codes
Examples
https://{appl}/rest/power-devices/{id}/powerState
Returns the power 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/powerState
PUT Sets the power state of the specified power delivery device. The device must be an HP Intelligent
Outlet.
Request Attributes Description