HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
Add a power device with predefined values:
http://{appl}/rest/power-devices
Request body:
{
"uuid":"4b4b87e2-eea8-4c90-8eca-b72eaaeecggf",
"name":"MyPdd",
"ratedCapacity":40,
"deviceType":"PowerFeed",
"model":"Main power 6B"
}
Add a power delivery device which provides power to an existing power
device:
http://{appl}/rest/power-devices
Request body:
{
"id":"4b4b87e2-eea8-4c90-8eca-b72eaaeecggf",
"uuid":"4b4b87e2-eea8-4c90-8eca-b72eaaeecggf",
"name":"MyPdd",
"ratedCapacity":40,
"deviceType":"PowerFeed",
"model":"Main power 6B",
"powerConnections":[{
"connectionUri": "/rest/power-devices/e7d2521f-9ef4-42b4-b8a1-
7bc947111d5b"
}]
}
DELETE Deletes the set of power-devices according to the specified parameters. A filter is required to
identify the set of resources to be deleted. The actual deletion will proceed asynchronously. Use
the returned task resource to track the completion and any errors that may occur.
Parameter Attributes Description
filter Experimental This parameter is experimental for this release: While generally
functional when used in simple cases, restrictions might be noted in
the implementation description.
A general filter/query string that narrows the list of resources
returned by a multi-resource GET (read) request and DELETE
(delete) request. The default is no filter (all resources are returned).
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
TaskResourceV2 A task resource used to track the progress of the
delete operation.
Response Codes
REST API Response Codes
Examples