API Guide
Table Of Contents
- OpenManage Enterprise Power Manager RESTful API Guide version 2.0
- Contents
- About this document
- Overview
- Key integration concepts
- Settings
- Monitored Devices
- Monitored Groups
- Power Policy
- api/PowerService/PowerBounds
- /api/PowerService/Policies
- /api/PowerService/Policies(
) - /api/PowerService/Policies(
)/PolicyDetails - /api/PowerService/MonitoredDevices(
)/Policies - /api/PowerService/MonitoredGroups(
)/Policies - /api/PowerService/Actions/PowerService.CreatePolicy
- /api/PowerService/Actions/PowerService. EditPolicy
- /api/PowerService/Actions/PowerService.EnablePolicies
- /api/PowerService/Actions/PowerService.DisablePolicies
- /api/PowerService/Actions/PowerService.DeletePolicies
- Emergency Power Reduction
- Unmonitored devices
- api/PowerService/UserDefinedEntities/Actions/UserDefinedEntities.Create
- api/PowerService/UserDefinedEntities/Actions/UserDefinedEntities.Update
- api/PowerService/UserDefinedEntities/Actions/UserDefinedEntities.Delete
- api/PowerService/UserDefinedEntities/Devices
- api/PowerService/UserDefinedEntities/Devices(
)
- Physical Groups
- api/GroupService/Actions/GroupService.CreateGroup
- api/GroupService/Actions/GroupService.UpdateGroup
- api/GroupService/Actions/GroupService.DeleteGroup
- /api/PowerService/PhysicalGroups/GroupDetails
- /api/PowerService/PhysicalGroups/GroupDetails(
) - api/PowerService/PhysicalGroups/GroupDetails
/AllLeafgroups - api/PowerService/Actions/PowerService.UpdateDeviceDetails
- /api/PowerService/DeviceDetails
- api/PowerService/PhysicalGroups/CapableDevices
- api/PowerService/PhysicalGroups/CapableDevices(
) - api/PowerService/PhysicalGroups/Actions/PhysicalGroup.AddMemberDevices
- api/PowerService/PhysicalGroups/Actions/PhysicalGroup.RemoveMemberDevices
- api/PowerService/PhysicalGroups/GroupDetails(
)/Devices - api/PowerService/PhysicalGroups/Actions/PhysicalGroup.UpdateSlots
- api/PowerService/PhysicalGroups/Actions/PhysicalGroup.MoveDevice
- Power Distribution Units
- Virtual machines
- Report Service
"Targets": [
{
"Id": 10070,
"PowerCapValue": 16661
}
]
}
Input to create Temperature Triggered policy:
{
"Name": "Temp 02",
"Description": "Description 01",
"Enabled": true,
"Type": 2,
"Targets": [
{
"Id": 10189,
"TemperatureThreshold": 21
}
]
}
Output:
{
"Id": 32
}
Table 50. Attributes
Attribute name Description
Name Name associated with the policy.
Description Description associated with the policy
Enabled Indicates if the policy is enabled or disabled.
Schedule Indicates when the policy is enabled.
StartTime Time at which the policy interval starts.
EndTime Time at which the policy interval ends.
StartDate Date from which the policy is active.
EndDate Date until which the policy is active.
DaysOfTheWeek Days of week in which the policy is active.
Targets Target device or group of the policy.
Id ID of the target device or group
PowerCapValue Power cap value for the device or group.
Table 51. Output Attributes
Attribute name Description
Id Policy Id
NOTE: To create a policy for a group, first provide the group information such as group ID and group power cap value.
Then, provide the respective device IDs and device power cap values.
NOTE: If you are creating a policy on a group, the Targets field must be an array containing the group Id and group power
cap as first value, followed by device id and power cap value of each member device.
Power Policy 47