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 43. Attributes (continued)
Attribute Name Description
Enabled Indicates if the policy is enabled or disabled.
AssignedTo Entity on which the policy is assigned to.
CreatedTime Time at which the policy is created.
ExecutionState State associated with the policy.
PolicyDetails Link to the detailed view of the policy.
IsAssociatedToGroup The policy is associated to group or not.
Table 44. Policy Execution State Enumeration
Enumeration Value Description
1 NOSTATE (Policy execution state is not yet determined).
2 EXECUTING (Policy execution is in progress or pending).
3 SUCCESS (Policy execution is successful).
5 FAILED (Policy execution failed).
/api/PowerService/Policies(<PolicyId>)/PolicyDetails
This method returns details of a power policy.
Supported versions of Power Manager:
● 1.1
● 1.0
GET method for Policies(<PolicyId>)/PolicyDetails of a specific
policy
Description
Returns details of a power policy.
Privilege VIEW
HTTP response
codes
200
Example
Input:
None
Output:
{
"@odata.context": "/api/$metadata#PowerService.PowerPolicyModel",
"@odata.type": "#PowerService.PowerPolicyModel",
"@odata.id": "/api/PowerService/Policies(30)/PolicyDetails",
"PolicyId": 30,
"Name": "Group Policy",
"Type": 1,
"Description": "Power policy created on group",
"Enabled": true,
"Schedule": {
"StartTime": "",
"EndTime": "",
"StartDate": "",
"EndDate": "",
"DaysOfTheWeek": []
},
"Devices": [
38 Power Policy