API Guide
Table Of Contents
- OpenManage Enterprise Power Manager RESTful API Guide version 1.1
- 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
- Report Service
Table 49. 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 will be 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 50. Output Attributes
Attribute name Description
Id Policy Id
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
NOTE: StartTime and EndTime must be left empty for policy which is active entire day.
NOTE: StartDate and EndDate must be left empty for policy which is active forever.
NOTE: DaysOfTheWeek must be set as empty array for policy which is active on every day.
/api/PowerService/Actions/PowerService. EditPolicy
This URI edits a policy.
Supported versions of Power Manager:
● 1.1
●
1.0
POST method for Editing Policy
This method edits a power policy.
Description
Edits a power policy
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example
Input to edit static power policy:
{
"Id": 30,
"Name": "Group Policy",
Power Policy 43