Legacy | Download device log files

Restriction: This information is not relevant for Smart Reporting data in the latest Perfecto UI. For Smart Reporting data, you should use the Smart Reporting Public API.

Download a device log file attached to the report specified by the <reportKey> report identifier.

The <reportKey> is returned by the Start New Script Execution, the Legacy | Get Script Execution Status, or the Legacy | Get Script Executions List operations.

Request syntax

Copy
https://mycloud.perfectomobile.com/services/reports/<reportKey>?operation=log&securityToken=value&attachment=value[&optionalParameter=value] 

Parameters

Name Type Default Description
securityToken* string
A unique cryptographic key assigned to an authorized user.
user string 

Deprecated. The name of the user running the operation. 

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
password string 

Deprecated. The password for the user.

Important: All REST API commands require authentication through the Perfecto security token. See also Authentication in new APIs.
attachment* string 
The path of the log file attachment as it appears in the attachment tag in the report. You can set the log parameter value of the Legacy | Get report attachment files list API as the attachment parameter value.
admin  boolean false true to allow users with administrative credentials to download log files attached to the report of executions started by other automation users. 
owner  string 
The user account of the user who started the execution and owns the report. This parameter is used in conjunction with the admin parameter to correctly identify the location of reports stored in PRIVATE repositories. For example, if an user with administrative credentials wants to download a image from a report for an execution started by execUserwhere the reportKey is PRIVATE:myReport.xml, specify the parameters as admin=true and owner=execUser.

* Mandatory parameter

Response

The response includes the header information of an HTTP download, with the device log zipped file included in the body of the response.