Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

OpenManage Enterprise Power Manager RESTful API Guide version 1.1

PDF

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 
}




Table 1. AttributesThis table lists the attributes that this method supports.
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 2. Output AttributesThe following table shows 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.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\