API Guide

Table Of Contents
Table 48. Attributes
Attribute name Description
Id ID of the policy.
Type Type of the policy.
NOTE: If you have not provided the Type attribute value,
by default the value is considered as one.
PolicyName Name associated with the policy.
PolicyDescription Description associated with the policy.
PolicyState Indicates if the policy is enabled or disabled.
Table 49. Policy type
Enumeration Value Policy Type
1 Static
2 Temperature-triggered
/api/PowerService/Actions/
PowerService.CreatePolicy
This method creates a policy.
Supported versions of Power Manager:
2.0
1.2
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"]
},
46 Power Policy