Legacy | Get report attachment files list
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
https://mycloud.perfectomobile.com/services/reports/<reportKey>?operation=attachments&securityToken=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.
|
type | string |
|
The attachment type. Values: video, image, network, monitor, log. By default all the types are returned. |
admin | boolean | false | true - allows admin users to get the list of attachments of a execution report owned by other automation users. |
owner | string |
|
The username of the report owner. This parameter is used in conjunction with the admin parameter to determine the location of reports stored in PRIVATE repositories. For example, if an admin user wants to get the list of attachments of a report for an execution owned by the user execUser, and the reportKey is PRIVATE:myReport.xml, specify the parameters as admin=true and owner=execUser. The attachments of the report named myReport.xml stored under the execUser user's PRIVATE area will be returned. |
* Mandatory
Response
The response includes a list of links to the attachments organized per device in the report. For each device the following information may be included:
Name | Description |
---|---|
id | The device Id. |
images | List of image files included in the report |
videos | List of video files included in the report |
network | List of network readings for the device in the report. |
monitor | Vitals information of device. |
log | Log file from device device. |
Example
Request
https://mycloud.perfectomobile.com/services/reports/myTest_15-11-23_07_32_33_1564.xml?operation=attachments&securityToken=<your_token>
JSON response
{
"devices":[
{
"id":"BA8AEBEDAAF5F73CFBCFF4DFE4F6C07608058394",
"images":["images\\BA8AEBEDAAF5F73CFBCFF4DFE4F6C07608058394_16_57_15_50_act.jpeg"]
},
{
"id":"CB511ECSMS",
"images":["images\\CB511ECSMS_16_57_16_51_act.jpeg"],
"networks":["network\\CB511ECSMS_15_47_12_3_act.shunra"]
}
],
"info":{
"creationTime":{
"formatted":"2013-12-18T15:49:24+00:00",
"millis":"1387381764136" },
"modelVersion":"2.19.0.0" }
}