API Guide
Table 188. Attributes (continued)
Attribute Description
10 One year
/api/MetricService/EnergyConsumption
This URL returns the energy consumption of the device.
POST method for EnergyConsumption
Description This method returns the energy consumption of the device in KWH.
Privilege VIEW
HTTP response
codes
201
Example request
body
{
"PluginId": "2F6D05BE-EE4B-4B0E-B873-C8D2F64A4625",
"EntityType": 0,
"EntityId": 10395,
"Duration": 4
}
Example response
body
{
"TotalEnergy": "0.044"
}
Table 189. Attributes
Attribute Description
PluginId ID of a plug-in.
EntityType Type of an entity, only device.
EntityId ID of an entity, only device.
Duration Duration
Total Energy Energy Consumption in KWH.
Duration
1 One hour
2 Six hours
3 Twelve hours
4 One day
5 One week
6 Two weeks
7 One month
8 Three months
9 Six months
10 One year
584 APIs specific to OpenManage Enterprise