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
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:
● 2.0
● 1.2
● 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",
"Description": "Updated policy on group",
"Enabled": true,
"Schedule": {
"StartTime": "",
"EndTime": "",
"StartDate": "2019-06-1",
"EndDate": "2019-07-28",
"DaysOfTheWeek": ["MON", "TUE", "WED", "FRI", "THU", "SAT",
"SUN"]
},
"Targets": [
{
"Id": 10132,
"PowerCapValue": 16663
},
{
"Id": 10070,
"PowerCapValue": 16663
}
]
}
Input to edit temperature-triggered policy:
{
"Id": 3,
"Name": "Edited Temp Policy",
"Description": "Edited Description",
"Enabled": false,
"Targets": [
{
"Id": 10189,
"TemperatureThreshold": 30
}
48
Power Policy