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

    Upload Core Files for an Incident

    Use this API to upload core files for an incident.

    URI

    https://[host]/api/juniper/servicenow/incident-management/incidents/{id}/uploadCoreFiles (HTTP method = POST)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the incident for which core files are to be uploaded

    Consumes

    • application/vnd.juniper.servicenow.incident-management.incident.uploadCoreFiles +xml;version=1;charset=UTF-8
    • application/vnd.juniper.servicenow.incident-management.incident.uploadCoreFiles +json;version=1;charset=UTF-8

    Request Elements

    Element

    Type

    Description

    id

    Integer

    ID of the core file

    isDeleteCoreFilesFromRouter

    Boolean

    Flag to indicate if core files should be deleted from the device after upload

    Possible values:

    • true—Core files are deleted from the device after upload
    • false—Core files are not deleted from the device after upload

    Produces

    • application/vnd.juniper.servicenow.incident-management.servicenowmsg+xml;version=1
    • application/vnd.juniper.servicenow.incident-management.servicenowmsg+json;version=1

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the upload core file job

    Sample Input

    Sample XML Input

    <uploadCoreFiles>
    	<coreFiles>
    		<id>71480</id>
    	</coreFiles>
    	<coreFiles>
    		<id>71481</id>
    	</coreFiles>
    	<isDeleteCoreFilesFromRouter/>
    </uploadCoreFiles>

    Sample JSON Input

    {
       "uploadCoreFiles": {
          "coreFiles": [
             {
                "id": "71479"
             },
             {
                "id": "71482"
             }
          ],
          "isDeleteCoreFilesFromRouter": ""
       }
    }

    Sample Output

    Sample XML Output

    <serviceNowMsg>
    	<msg>Core files uploaded successfully</msg>
    </ serviceNowMsg>
    

    Sample JSON Output

    {
      "serviceNowMsg": { "msg": "Core files uploaded successfully" }
    }
    

    Modified: 2016-08-11