API Guide

Table Of Contents
NOTE: Only single entity ID is supported and pass only device ids.
/api/PowerService/Policies
This URI represents the power policies that are created
Table 38. Filters
Filter Name Description
Top Required number of records
Skip Number of records to skip. Default value is zero.
Supported versions of Power Manager:
1.1
1.0
GET method for retrieving Policies
This method returns all the power policies.
Description Returns all the power policies.
Privilege VIEW
HTTP response
codes
200
Example
Input: None
Output:
{
"@odata.context": "/api/
$metadata#Collection(PowerService.PowerPolicy)",
"@odata.count": 2,
"value": [
{
"@odata.type": "#PowerService.PowerPolicy",
"@odata.id": "/api/PowerService/Policies(32)",
"PolicyId": 32,
"Type": 1,
"Name": "Chassis Policy",
"Description": "Power policy created on chassis",
"Enabled": true,
"AssignedTo": "D89RG52",
"CreatedTime": "2019-06-25 13:49:59.342645",
"ExecutionState": 3,
"IsAssociatedToGroup": false
"PolicyDetails": {
"@odata.id": "/api/PowerService/Policies(32)/
PolicyDetails"
}
},
{
"@odata.type": "#PowerService.PowerPolicy",
"@odata.id": "/api/PowerService/Policies(30)",
"PolicyId": 30,
"Type": 1,
"Name": "Group Policy",
"Description": "Updated policy on group",
"Enabled": true,
"AssignedTo": "DeviceGroup",
"CreatedTime": "2019-06-19 12:07:23.935816",
"ExecutionState": 3,
"IsAssociatedToGroup": false
"PolicyDetails": {
Power Policy
35