White Papers

38 Dell OpenManage Power Center 4.0 REST API Reference Guide
Sample Code:
4.17 Rack Space Hoarders Report
Below API is used for consuming “Rack Space Hoarders” report.
API usage:
POST <BASE_URL>/rackSpaceHoarders
Sample Request:

selectAllDevices: false,
not applicable, do not use or set value to
false

selectAllGroups: false,
not applicable, do not use or set value to
false
url = bseurl + 'rackFragmentationHoarders'
post_data = str.encode(
'{"requestObj": '
'{"description": "Racks with most fragmentation",'
'"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": "Rank","key": "rank","mandatory": 0,"needed": 1,"required": 1},'
'{"fieldName": "Location","key": "location","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Fragmentation Factor","key": "fragmentationFactor","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Rack Utilization","key": "rackUtilization","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Rack Utilization Percent","key": "rackUtilizationPercent","mandatory": 1,"needed": 1,"required": 1},'
'{"fieldName": "Max Gap","key": "maxGap","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": "2016-05-
01T00:00:00.000Z",
not applicable
"endDateTime": "2016-05-
02T00:00:00.000Z",
not applicable
"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, do not use or set value to
false