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
/api/PowerService/Actions/
PowerService.CreatePolicy
This method creates a policy.
Supported versions of Power Manager:
● 1.1
● 1.0
POST method for creating Policy
This method creates a power policy.
Description Creates a power policy
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example
Input to create static power policy:
{
"Name": "Chassis Policy",
"Description": "Power policy created on chassis",
"Type" : 1,
"Enabled": true,
"Schedule": {
"StartTime": "6:0",
"EndTime": "15:30",
"StartDate": "2019-06-25",
"EndDate": "2019-07-30",
"DaysOfTheWeek": ["MON", "TUE", "WED", "FRI", "SUN"]
},
"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
}
42
Power Policy