White Papers
47 Dell OpenManage Power Center 4.0 REST API Reference Guide
Sample Code:
4.25 VM Power Hoarders Report
Below API is used for consuming “VM Power Hoarders” report.
API usage:
POST <BASE_URL>/vmPowerHoarders
Sample Request:
url = bseurl + 'thermalEventPolicy'
post_data = str.encode(
'{"requestObj": '
'{"description": "Current thermal event based policy settings",'
'"startDateTime": "",'
'"endDateTime": "",'
'"aggPeriodType": -1,'
'"aggPeriodValue": -1,'
'"maxResults": -1,'
'"entityList": [],'
'"entityGroupList": [],'
'"percentPower": 0,'
'"severity": [],'
'"selectAllDevices": false,'
'"selectAllGroups": false,'
'"attributes": ['
'{"fieldName": "Name","key": "name","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Location","key": "location","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Temperature Threshold","key": "tempThreshold","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Policy Name","key": "policyName","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Policy Type","key": "policyType","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Policy Status","key": "policyStatus","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Policy Active","key": "policyActive","mandatory": 1,"needed": 1,"required": 1}]}}')
Used
Body
Description
"aggPeriodType": -1,
Aggregation period disabled. Must be -1
"aggPeriodValue": -1,
Aggregation period disabled. Must be -1
"attributes": [],
Use default of customize attributes
"startDateTime": "2017-06-
01T00:00:00.000Z",
Start date time should be earlier than end date time
and current date time.
"endDateTime": "2017-06-
02T00:00:00.000Z",
End date time should fall between start date time
and current date time.
"maxResults": -1,
Max result record count allowed, -1 for returning all
records
"entityList": [],
not applicable
"entityGroupList": [],
not applicable
"percentPower": 0,
not applicable
"severity": [],
not applicable
“selectAllDevices”: false,
not applicable
“selectAllGroups”: false,
not applicable