Skip to main content

OpenManage Enterprise 3.10 RESTful API Guide

PDF

POST method for PowerConsumption

Description
This method returns VM and VM Group Power Consumption data
Privilege
VIEW
HTTP response codes
201
Example request body
{
    " PluginId ": "2F6D05BE-EE4B-4B0E-B873-C8D2F64A4625",
    "EntityType": 0, 
    "Duration": 4,   
    "SortOrder":1,
     "Top": 10
}
Example response body
{
    "Value": [
        {
            "EntityId": 10901,
            "Name": "VM 1",
            "Description": "BR1H903",
            "PowerConsumption": "1.1284521515735395"
        },
        {
            "EntityId": 10901,
            "Name": "VM 2",
            "Description": "BR1H903",
            "PowerConsumption": "1.2036822950117756"
        }
        
    ]
}
Attributes
This table lists the attributes that this method supports.
Attribute Description
PluginId ID of plug-in.
EntityType Type of entity VM or VM group.
Duration Duration of metric data collection.
SortOrder Order of metric data collected.
Top Top values, 1-10.
EntityType
  • 0: VM
  • 1: VM Groups
Supported Duration
  1. One Hour
  2. Six Hours
  3. Twelve Hours
  4. One Day
  5. Seven Days
  6. One Month
  7. Three Months
  8. Six Months
  9. One Year
Sort Order
0: Descending
1: Ascending

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\