API Guide
Table 43. Attributes (continued)
Attribute Name Description
PolicyDetails Link to the detailed view of the policy.
IsAssociatedToGroup The policy is associated to group or not.
Table 44. Policy Execution State Enumeration
Enumeration Value Description
1 NOSTATE (Policy execution state is not yet determined).
2 EXECUTING (Policy execution is in progress or pending).
3 SUCCESS (Policy execution is successful).
5 FAILED (Policy execution failed).
/api/PowerService/Policies(<PolicyId>)/
PolicyDetails
This method returns details of a power policy.
Supported versions of Power Manager:
• 1.1
• 1.0
GET method for Policies(<PolicyId>)/PolicyDetails of a
specific policy
Description
Returns details of a power policy.
Privilege VIEW
HTTP response
codes
200
Example
Input:
None
Output:
{
"@odata.context": "/api/$metadata#PowerService.PowerPolicyModel",
"@odata.type": "#PowerService.PowerPolicyModel",
"@odata.id": "/api/PowerService/Policies(30)/PolicyDetails",
"PolicyId": 30,
"Name": "Group Policy",
"Type": 1,
"Description": "Power policy created on group",
"Enabled": true,
"Schedule": {
"StartTime": "",
"EndTime": "",
"StartDate": "",
"EndDate": "",
"DaysOfTheWeek": []
},
"Devices": [
{
"Id": 10070,
"DeviceName": "100.96.25.126",
"Type": 2000,
"ServiceTag": "D89RG52",
"PowerCapValue": 16670,
Power Policy 39