GET reports/runResultFile?CustomerID={CustomerID}&ReportRunFileGuid={ReportRunFileGuid}

Run report result file. Roles: ApiRole

To fetch a report from JetAdvice, you are required to send 3 requests to our server:

1. GET /reports/RunRequest Registers a report request to be processed on server, which is returned with "ReportRequestGuid".
2. GET /reports/RunResult Fetches the status of "ReportRunGuid"(=ReportRequestGuid) from server. If completed, it returns with list of File identifiers.
3. GET /reports/RunResultFile Fetches the actual report from server for specified file identifier.

Note: "Accept" http header is not defining the output format. This endpoint allows you to download the generated report by /reports/RunRequest.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ReportRunFileGuid

Report run result file identifier to get actual report

globally unique identifier

None.

Body Parameters

None.

Response Information

Resource Description

The format of the Report result is flexible by nature. Depending on the Report setup, the number and types of fields in the result is variable. "OutputFormat" from ReportRunRequest determine response format.

Response Formats

application/json, text/json

Sample:
    [
        {
            "Device name":"HP Business InkJet 1200",
            "IPv4":"128.253.217.61",
            "Serial #":"TH4AE110NC",
            "Hostname":"HP7C4BE5"
        },
        {                    
            "Device name":"HP CM8060 Color MFP",
            "IPv4":"192.168.0.169",
            "Serial #":"SG73OC100N",
            "Hostname":"NPI0F8B33"
        },
        ...
    ]
                

application/xml, text/xml

Sample:
    <?xml version="1.0"?>
    <Report>
        <Dates>
            <ReportRun>2015-01-01 10:00:00Z</ReportRun>
            <PeriodStart>2014-01-01 00:00:00Z</PeriodStart>
            <PeriodEnd>2014-12-31 23:59:59Z</PeriodEnd>
        </Dates>
        <Devices>
            <Device>
                <Notice-Message/>
                <Printer-Name>HP Business InkJet 1200</Printer-Name>
                <IPv4>128.253.217.61</IPv4>
                <Serial>TH4AE110NC</Serial>
                <Hostname>HP7C4BE5</Hostname>
            </Device>
            <Device>
                <Notice-Message/>
                <Printer-Name>HP CM8060 Color MFP</Printer-Name>
                <IPv4>192.168.0.169</IPv4>
                <Serial>SG73OC100N</Serial>
                <Hostname>NPI0F8B33</Hostname>
            </Device>
            ...
        </Devices>
    </Report>
                
    <?xml version="1.0"?>
    <Report>
        <Dates>
            <ReportRun>2015-01-01 10:00:00Z</ReportRun>
            <PeriodStart>2014-01-01 00:00:00Z</PeriodStart>
            <PeriodEnd>2014-12-31 23:59:59Z</PeriodEnd>
        </Dates>
        <Supplies>
            <Supply>
                <Device-Name>HP Business InkJet 1200</Device-Name>
                <IPv4>128.253.217.61</IPv4>
                <Serial>TH4AE110NC</Serial>
                <Hostname>HP7C4BE5</Hostname>
                <Supply-Name>Document Feeder Kit HP L2718A</Supply-Name>
                <Supply-Product>L2718A</Supply-Product>
            </Supply>
            <Supply>
                <Device-Name>HP CM8060 Color MFP</Device-Name>
                <IPv4>192.168.0.169</IPv4>
                <Serial>SG73OC100N</Serial>
                <Hostname>NPI0F8B33</Hostname>                
                <Supply-Name>TK-6307H</Supply-Name>                
                <Supply-Product>1T02LH0CS2</Supply-Product>
            </Supply>
            ...
        </Supplies>
    </Report>
                

text/plain, text/csv

Sample:
    "Device name";"IPv4";"Serial #";"Hostname"
    "HP Business InkJet 1200";"128.253.217.61";"TH4AE110NC";"HP7C4BE5"
    "HP CM8060 Color MFP";"192.168.0.169";"SG73OC100N";"NPI0F8B33"
    ...