HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
refreshing the power
delivery device. If username
and password fields are not
specified, the previously
established access
authorization is
used.
Response Description
TaskResourceV2 TaskResource representing
the import task.
Response Codes
REST API Response Codes
Examples
Refresh an existing power delivery device optionally providing a user
name and password to reestablish management:
https://{appl}/rest/power-devices/{id}/refreshState
Request Body
{
"refreshState":"RefreshPending",
"username":"admin",
"password":"admin"
}
Refresh an existing power delivery device without changing the user
name and password:
https://{appl}/rest/server-hardware/{id}/refreshState
Request Body
{
"refreshState" : "RefreshPending"
}
URI: /rest/power-devices/{id}/uidState
Method API
GET Retrieves the unit identification (UID) state (on, off, unknown) of the specified power outlet or
extension bar resource. 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"
Response Description
OutletState OutletState.Light Indicating outlet current UID state.
Response Codes