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 1. AttributesThis table lists the attributes that this method supports.
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
|
Data is not available for the Topic