API Guide

Table Of Contents
AssignedTo
CreatedTime
Type
IsAssociatedToGroup
/api/PowerService/Policies(<PolicyId>)
This URI represents a specific policy.
Supported versions of Power Manager:
1.1
GET method for Policies(<PolicyId>)
This method returns a specific policy.
Description Returns details of a specific policy.
Privilege VIEW
HTTP response
codes
200
Example
Input: None
Output:
{
"@odata.context": "/api/
$metadata#Collection(PowerService.PowerPolicy)",
"@odata.count": 1,
"value": [
{
"@odata.type": "#PowerService.PowerPolicy",
"@odata.id": "/api/PowerService/Policies(1)",
"PolicyId": 4,
"Type": 1,
"Name": "Policy for Power",
"Description": "Policy for Power",
"Enabled": true,
"AssignedTo": "4xBzewP",
"CreatedTime": "2019-06-12 16:54:14.411943",
"ExecutionState": 3,
"IsAssociatedToGroup": false
"PolicyDetails": {
"@odata.id": "/api/PowerService/Policies(4)/
PolicyDetails"
}
}
]
}
Table 43. Attributes
Attribute Name Description
PolicyId ID of policy
Name Name associated with the policy.
Type Type of policy.
Description Description associated with the policy
Power Policy 37