Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Get Event Profiles Import Job Results

    Use this API to list the details of tasks involved in importing event profiles. The URI of this API is output by the Get Import Event Profiles Job Details API.

    URI

    https://[host]/api/juniper/servicenow/event-profile-management/eventProfiles/ job-instances/{job-id}/event-profiles-import-job-results (HTTP method = GET)

    URI Parameters

    Parameter

    Data Type

    Required

    Description

    job-id

    Integer

    Yes

    ID of the import event profiles job that is to be retrieved

    Consumes

    None

    Produces

    • application/vnd.juniper.servicenow.event-profile-management.eventprofiles -import-job-results+xml;version=1
    • application/vnd.juniper.servicenow.event-profile-management.eventprofiles -import-job-results+json;version=1

    Response Elements

    Element

    Type

    Description

    uri

    String

    Link to the collection of import event profiles job result

    total

    Integer

    Number of records in the collection

    id

    Integer

    ID of the task within the Import event profiles job

    jobId

    Integer

    ID of the import event profiles job

    profileId

    Integer

    ID of the imported event profile

    profileName

    String

    Name of the imported event profile

    bundleName

    String

    Name of the script bundle associated with the imported event profile

    jobStatus

    Enum

    Status of sub tasks within the import event profiles job.

    The possible values are:

    • New—The sub task is newly initiated.
    • Scheduled—The sub task is scheduled.
    • Inprogress—The sub task is in progress.
    • Success—The sub task completed successfully.
    • Failed—The sub task failed to execute.

    jobRemarks

    String

    Remarks about the import event profiles job

    Sample Output

    Sample XML Output

    <eventProfilesImportJobResults uri="/api/juniper/servicenow/event-profile-management/eventProfiles/job-instances/ 163840/event-profiles-import-job-results" total="1">
       <eventProfilesImportJobResult>
          <id>1638429</id>
          <jobId>163840</jobId>
          <profileId>34625</profileId>
          <profileName>Base_Profile_4_1R2_0</profileName>
          <bundleName>jais-4.1R24.0-signed.tgz</bundleName>
          <jobStatus>SUCCESS</jobStatus>
          <jobRemarks>
    Suuccessful
          </jobRemarks>
          <job href="/api/space/job-management/jobs/163840"/>
          <event-profile href="/api/juniper/servicenow/event-profile-management/eventProfiles/34625"/>
       </eventProfilesImportJobResult>
    </eventProfilesImportJobResults>
    

    Sample JSON Output

    {
      "eventProfilesImportJobResults": {
        "@uri": "/api/juniper/servicenow/event-profile-management/eventProfiles/job-instances/851990/ event-profiles-import-job-results",
        "@total": "1",
           "eventProfilesImportJobResult": [
          {
            "id": 1638420,
            "jobId": 851990,
            "profileId": 3741756,
            "profileName": "test_profile_21",
            "bundleName": "jais-4.1R2.4-signed.tgz",
            "jobStatus": "SUCCESS",
            "jobRemarks": "Event profile name has been changed to 'test_profile_21-1420017902'. ",
            "job": {
              "@href": "/api/space/job-management/jobs/851990"
            },
            "event-profile": {
              "@href": "/api/juniper/servicenow/event-profile-management/eventProfiles/3741756"
            }
          }
        ]
      }
    }
    

    Modified: 2016-08-10