API Guide

Table Of Contents
Table 38. Attributes (continued)
Attribute Description
UpperBound Device Upper power bound.
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 39. Filters
Filter Name Description
Top Required number of records
Skip Number of records to skip. Default value is zero.
Supported versions of Power Manager:
2.0
1.2
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,
Power Policy
39