HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
https://{appl}/rest/power-devices?sort=name:asc
Gets the power device resource with name test:
https://{appl}/rest/power-devices?filter="name='test'"
Gets all power devices with a uuid that starts with b0fb8894:
https://{appl}/rest/power-devices?filter="uuid matches
'b0fb8894%25'"
(%25 is the encoded value for the wild character (%), and is
required to do partial matches.)
Gets all power devices with a uuid that ends with 82fac9caf4f2:
https://{appl}/rest/power-devices?filter="uuid matches
'%2582fac9caf4f2'"
(%25 is the encoded value for the wild character (%), and is
required to do partial matches.)
POST Adds a power delivery device resource based upon the attributes specified. Use this method to
create a representation of power delivery devices that provide power to other resources but
cannot otherwise be discovered by the management appliance. All attributes without default
values must be specified in the POST body. The response contains the power delivery device
resource as added to the appliance with default and assigned properties expanded. The id and
uri are assigned by the management appliance and are used to uniquely identify this particular
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 The resource to add or update.
Response Description
PowerDeliveryDevice The resource as added to the appliance
with default and assigned properties.
Response Codes
REST API Response Codes
Examples
Add a power device with default values:
http://{appl}/rest/power-devices
Request body:
{
"name":"MyPdd",
"ratedCapacity":40
}