API Guide

Table Of Contents
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