HP OneView REST API Reference

power-devices
power-devices.html[10/17/2013 10:35:43 AM]
Each power delivery device resource has a uri representation in the form
of
https://{appl}/rest/power-devices.
Deletes all power device resources with names beginning with 'XYZ':
https://{appl}/rest/power-devices?filter="name matches 'XYZ%25'"
Deletes all power device resources:
https://{appl}/rest/power-devices?filter="id matches '%25'"
URI: /rest/power-devices/discover
Method API
POST Add an HP iPDU and bring all components under management by discovery of its management
module. Bring the management module under exclusive management by the appliance, configure
any management or data collection settings, and create a private set of administrative credentials
to enable ongoing communication and management of the iPDU. Use "force" to claim the device,
even if claimed by another management appliance.
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
AddPowerDeliveryDevice Required - A set of parameters for describing
the iPDU power
delivery device to be brought
under management.
Response Description
TaskResourceV2 TaskResource representing the add task
that can be used to monitor the
progress of the iPDU addition.
Response Codes
REST API Response Codes
Examples
Add a power delivery device with hostname
"power-device.hp.com" and credentials "admin/admin".
https://{appl}/rest/power-devices/discover
Request Body
{
"hostname":"power-device.hp.com",
"username":"admin",
"password":"admin"
}
If the iPDU is already managed by another management appliance, you can