HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
Header
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 power state to be set.
Response Description
TaskResourceV2 TaskResource representing the power state update
operation.
Response Codes
REST API Response Codes
Examples
https://{appl}/rest/power-devices/{id}/powerState
Request body sample
{
"powerState":"On|Off"
}
Set on 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
Request body sample
{
"powerState":"On"
}
URI: /rest/power-devices/{id}/refreshState
Method API
PUT Refreshes a given intelligent power delivery device.
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
PowerDeliveryDeviceRefreshRequest Required The object describing the
refresh request.
Field refreshState must be
set to RefreshPending.
If specified, the username
and password fields will be
used when