Related Documentation
- Junos Space
- Get All Event Profiles
- Get Information About an Event Profile
- Install Event Profile on Devices
- Export All Event Profiles by Type
- Export Event Profiles by ID and Type
- Import Event Profiles from a File
- Get Event Profiles Import Job Results
- Clone an Event Profile
- Set an Event Profile as the Default Event Profile
- Event Profile Management REST API Overview
Get Import Event Profiles Job Details
Use this API to retrieve the details of an import event profiles job. The details about tasks involved within the import event profiles job can be obtained from detail-link output by this API.
URI
http://{host-ip}/api/space/job-management/jobs/{job-id} (HTTP method = GET)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
job-id | Integer | Yes | ID of the import event profiles job to be retrieved |
Consumes
None
Produces
None
Response Element
Element | Type | Description |
---|---|---|
uri | String | Link to the import event profiles job details |
id | Integer | ID of the import event profiles job |
name | String | Name of the job |
job-type | String | Type of the job The value is always Import event profile. |
detail-link | String | Link to obtain details of the tasks involved in the import event profiles job |
job-state | String | Current state of the job The values are:
|
job-status | String | Current status of the import event profiles job The values are:
|
percent-complete | Integer | Percentage of the import event profiles job completed |
scheduled-start-time | Date | Date and time the import event profiles job was scheduled to start |
start-time | Date | Date and time the import event profiles job actually started |
end-time | Date | Date and time the import event profiles job actually ended |
owner | String | User executing the import event profiles job |
summary | String | Summary of the import event profiles job Includes information about number of profiles imported successfully and the number of profiles that failed to import |
supports-recurrence | Boolean | Flat to specify whether or not the import event profiles job should reoccur
|
schedule-string | String | String representation of the job schedule |
domain-name | String | Domain to which the event profiles are imported |
domain-id | Integer | ID of the domain to which the event profiles are imported |
domain-href | String | URL of the domain to which the event profiles are imported |
Sample Output
Sample XML Output
<job uri="/api/space/job-management/jobs/851990" href="/api/space/job-management/jobs/851990"> <id>851990</id> <name>Import event profile-851990</name> <job-type>Import event profile</job-type> <detail-link href="/api/juniper/servicenow/event-profile-management/ eventProfiles/job-instances/851990/event-profiles-import-job-results" type="vnd.juniper.servicenow.event-profile-management.eventprofiles-import-job-results"> <name>/api/juniper/servicenow/event-profile-management/eventProfiles/job-instances/ 851990/event-profiles-import-job-results</name> </detail-link> <job-state>DONE</job-state> <job-status>FAILURE</job-status> <percent-complete>100.0</percent-complete> <scheduled-start-time>Wed, 31 Dec 2014 14:54:35 IST</scheduled-start-time> <start-time>Wed, 31 Dec 2014 14:54:38 IST</start-time> <end-time>Wed, 31 Dec 2014 14:55:46 IST</end-time> <owner>super</owner> <summary>Total Profiles : 10 Successful imports : 5 Failed imports : 5</summary> <supports-recurrence>false</supports-recurrence> <schedule-string/> <domain-name>Global</domain-name> <domain-id>2</domain-id> <domain href="/api/space/domain-management/domains/2"/> </job>
Sample JSON Output
{ "job": { "@uri": "/api/space/job-management/jobs/851990", "@href": "/api/space/job-management/jobs/851990", "id": 851990, "name": "Import event profile-851990", "job-type": "Import event profile", "detail-link": { "@href": "/api/juniper/servicenow/event-profile-management/eventProfiles/job-instances/851990/ event-profiles-import-job-results", "@type": "vnd.juniper.servicenow.event-profile-management.eventprofiles-import-job-results", "name": "/api/juniper/servicenow/event-profile-management/eventProfiles/job-instances/851990/ event-profiles-import-job-results" }, "job-state": "DONE", "job-status": "FAILURE", "percent-complete": 100, "scheduled-start-time": "Wed, 31 Dec 2014 14:54:35 IST", "start-time": "Wed, 31 Dec 2014 14:54:38 IST", "end-time": "Wed, 31 Dec 2014 14:55:46 IST", "owner": "super", "summary": "Total Profiles : 10<br>Successful imports : 5<br>Failed imports : 5<br>", "supports-recurrence": false, "schedule-string": "", "domain-name": "Global", "domain-id": 2, "domain": { "@href": "/api/space/domain-management/domains/2" } } }
Related Documentation
- Junos Space
- Get All Event Profiles
- Get Information About an Event Profile
- Install Event Profile on Devices
- Export All Event Profiles by Type
- Export Event Profiles by ID and Type
- Import Event Profiles from a File
- Get Event Profiles Import Job Results
- Clone an Event Profile
- Set an Event Profile as the Default Event Profile
- Event Profile Management REST API Overview