API Guide

Table Of Contents
Table 192. Attributes
Attribute Description
PluginId ID of plug-in.
Top Top values, 15.
EntityType Type of entity device or group.
DeviceType Type of deviceserver or chassis.
Duration Duration
Entity Type
0 Device
1 Group
Device Type
1000 Server
2000 Chassis
Duration
4 One day
5 One week
6 Two weeks
7 One month
8 Three months
9 Six months
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"
}
630 APIs specific to OpenManage Enterprise