HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
TaskResourceV2 A task resource used to track the progress of the
remove operation.
Response Codes
REST API Response Codes
Examples
Each resource type has an URL representation in the form of
https://{appl}/rest/power-devices/{id}
Deletes the power delivery device object with id = 123.
https://{appl}/rest/power-devices/123
GET Gets a single power delivery device resource based upon its uri.
Parameter Attributes Description
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
PowerDeliveryDevice The requested resource.
Response Codes
REST API Response Codes
Examples
Each power delivery device has a representation which
can be retrieved with the following
GET request https://{appl}/rest/power-devices/{id}.
PUT Updates the resource for the specified {id}. The properties that are omitted (not included as part of
the the request body) are reset to their respective default values. The id and uuid properties are
required and cannot be changed. To update existing power-devices first perform a GET request
to retrieve the current properties, update the desired properties, and then PUT the request body
containing the new representation of the resource.
Parameter Attributes Description
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
PowerDeliveryDevice Required
Response Description
PowerDeliveryDevice The resource as updated in the
persistence layer.
Response Codes