Get all import package statuses
get
/AgentWeb/api/elementmanager/import/EMPackages
Gets the statuses of Element Manager import packages
Request
Header Parameters
-
API_VERSION: string
API VERSION for the headerDefault Value:
1
Allowed Values:[ "1" ]
-
USERSESSION(required): string
Authentication token for the header
Response
Supported Media Types
- application/json
200 Response
Statuses of all imports
Nested Schema : EMPackageStatus
Type:
Show Source
object
-
code(required):
integer
-
description(required):
string
-
errorCode(required):
string
Error details of the item
Examples
The following example shows how to get the status of all imports.
cURL Command Example
curl -X GET https://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages -H "USERSESSION: feihg98GnT7i" -H "API_VERSION: 1" -H "Content-Type: application/json"
Response Body Example
The following shows an example of the response body in JSON format.
{ "description": "Collection of packages", "items": [ { "id": 100010, "name": "Test import report", "status": { "code": "10", "description": "Import Complete" }, "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100010" }, { "id": 100006, "name": "Test import report", "status": { "code": "20", "description": "Canceled" }, "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100006" }, { "id": 100005, "name": "test", "status": { "code": "20", "description": "Canceled" }, "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100005" }, { "id": 100004, "name": "Custom cpm", "status": { "code": "20", "description": "Canceled" }, "href": "http://mysite.example.com/AgentWeb/api/elementmanager/import/EMPackages/100004" } ] }