GET /config/extension_management/extension_export_tasks/{task_id}/results
Retrieves the tasks status results based on the task_id.
Retrieves the tasks status results based on the task_id.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
task_id |
path |
Required |
Number (Integer) |
text/plain |
null |
fields |
query |
Optional |
String |
text/plain |
Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas. |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The requested results of the task status have been retrieved. |
|
404 |
22604 |
The task status for status_id cannot be found. |
404 |
22614 |
The task results are not available. |
422 |
22606 |
A supplied numeric parameter was not positive. |
500 |
22602 |
An error has occurred while trying to retrieve the results of a task status. |
Response Description
A JSON object representing the result of an export task. It contains the following fields:
- id - Number - The ID of the extension.
- task_type - String - The type of task that was issued against the Extension.
- exportResult - Array - An array of JSON objects representing the contents of the extension and what action is associated with each content item for the task that was executed. Each content item contains the following fields:
- progress - Number - The number of exported items.
- fileName - String - The name of the exported extension.
- exportDetails - JSON Array - The name of the type of the content item.
- contentType - String - The name of the exported content type.
- contentNames - String Array - The name of the exported content type items.
Response Sample
{
"id": 56,
"task_type": "EXPORT",
"exportResult": [
"progress":120,
"fileName":"..../fileName.zip",
"exportDetails":[
{
"contentType": "sensordevicetype",
"name": ["3com","windows"]
}
]
]
}