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
NOTE: The output Group object will have data only when the policy is created for group.
/api/PowerService/MonitoredDevices(<DeviceId>)/
Policies
This method returns policies that are created on the specific device.
Supported versions of Power Manager:
●
1.1
● 1.0
GET method for policies created on specified devices
This URI returns the power policies that are created on the specified device.
Description Returns all the power policies.
Privilege VIEW
HTTP response
codes
200
Example
Input:
None
Output:
{
"@odata.context": "/api/$metadata#Collection(PowerService.Policy)",
"@odata.count": 2,
"value": [
{
"@odata.type": "#PowerService.Policy",
"Id": 32,
"Type": 1,
"PolicyName": "Chassis Policy",
"PolicyDescription": "Power policy created on chassis",
"PolicyState": true
},
{
"@odata.type": "#PowerService.Policy",
"Id": 30,
"Type": 1,
"PolicyName": "Group Policy",
"PolicyDescription": "Updated policy on group",
"PolicyState": true
}
]
}
Table 46. Attributes
Attribute name Description
Id ID of the policy
Type Type of the policy.
PolicyName Name associated with the policy.
PolicyDescription Description associated with the policy
PolicyState Indicates if the policy is enabled or disabled
40 Power Policy