Start a Conversation

Unsolved

2 Intern

 • 

301 Posts

444

October 12th, 2020 06:00

OME REST download report

I have run a report for REST and am trying to download report via

 

However when I try to download the report via hba_download_url = below

 

https://ome301/api/ReportService/ReportDefs(12548)/ReportResults

where 12548 is id of report

called via

 

                                hba_reports_download = requests.get(hba_download_url, headers=headers, verify=False)

                                hba_reports_download_json_data = hba_reports_download.json()

                                print ( "hba_reports_download_json_data:",hba_reports_download_json_data)

 

I get

('hba_reports_download_json_data:', {u'error': {u'@Message.ExtendedInfo': [{u'Severity': u'Critical', u'MessageId': u'CGEN1006', u'RelatedProperties': [], u'Message': u'Unable to complete the request because the resource URI does not exist or is not implemented.', u'Resolution': u"Check the request resource URI. Refer to the OpenManage Enterprise-Modular User's Guide for more information about resource URI and its properties.", u'MessageArgs': []}], u'message': u'A general error has occurred. See ExtendedInfo for more information.', u'code': u'Base.1.0.GeneralError'}})

 

Trying to check u'MessageId': u'CGEN1006' leads me to https://www.dell.com/community/Dell-OpenManage-Enterprise/OpenManage-Enterprise-Powershell-API-put/td-p/7304420

 

Which I am trying to interpret ?

 

Moderator

 • 

3.7K Posts

October 12th, 2020 12:00

Hello castleknock,

 

What version is the appliance you are using?

 

    https://ome-server/api/ReportService/ReportDefs(10077)/ReportResults/ResultRows

returns good data for me.

 

12548 seems very high. All of the built in reports start with 10XXX, and all custom ones you make increment from there, meaning this is like the 200th custom report. Is that accurate?

 

Take a look at this section and see if it helps:

OpenManage Enterprise Version 3.4 and OpenManage Enterprise - Modular Edition Version 1.20.00 RESTful API Guide

Report Service starting page 568

https://dell.to/34Rq0oQ

 

I'm not to familiar with the scripting but I'll do what I can and maybe other forum members may chime in also.

 

No Events found!

Top