UNSOLVED

compassuniversity

updated

1 year ago

C

compassuniversity

1 Rookie

•

3 Posts

0

1678

February 12th, 2020 16:00

openmanage api download report

hi,

i've been following the guide here to try and download a report.  i'm able to get the filepath response for the report linke in the post usage example, but i'm unsure what to do then.  i assume this is the reports location on the file system of the ome server, but i don't have file system access, which is why i'm using the api to try and download a report.  what do i do with the filepath response to get to the file?

  • DELL-Joey C

    Moderator

    •

    4170 Posts

    •

    20965 Points

    1359

    0

    Posted February 12th, 2020 22:00

    Hi,

     

    I'm not very verse with OME REST API, but I'll try to help out.

     

    Are you referring to the last bit of the command: 2.3.6 /api/ReportService/Actions/ReportService.DownloadReport

     

    Have you define your local machine file path? Try to do the output to the filepath to your local machine, for eg: "C:/log/dell/omc/reports/Alert Counts per Device Report.csv"

    DELL-Joey C

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did. 

  • compassuniversity

    1 Rookie

    •

    3 Posts

    1343

    0

    Posted February 13th, 2020 07:00

    correct.  that is the part of the api i'm referring to. 

    when i send a post with the report id, and file format in the body to https://omeserver/api/ReportService/Actions/ReportService.DownloadReport the filepath is the response i get from the ome server.  i'm just unsure what to do with the response.  does that file path refer to a url where i can download the file?

    PS C:\> $a.Content
    {"FilePath":"/var/log/dell/omc/reports/Device Location Report.csv"}

  • DELL-Joey C

    Moderator

    •

    4170 Posts

    •

    20965 Points

    1322

    0

    Posted February 14th, 2020 01:00

    Hi,

     

    Would you be able to provide me the commands that you ran and the output screenshot that you have obtained. If it contains private information, do PM me. 

    DELL-Joey C

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’ if I did. 

  • 1006

    0

    Posted May 5th, 2020 06:00

    Not the OP but have the same question. The commands are just a POST to "https://OMEIP/api/ReportService/Actions/ReportService.DownloadReport" 

    with a request body of:

    {
    "ReportDefId":57520,
    "Format":"csv"
    }

     

    Response is:

    {
         "FilePath" :   "/var/log/dell/omc/reports/Modular Enclosure Report.csv"
    }
     
    Any help with next steps would be appreciated.
  • RaphaelG

    1 Rookie

    •

    1 Message

    •

    2 Points

    0

    0

    Posted September 29th, 2025 18:30

    I dont get the usecase of the endpoint if the output is stored on the appliance filesystem???