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

    Create an Auto Submit Policy

    Use this API to create an auto submit policy.

    URI

    https://[host]/api/juniper/servicenow/autosubmit-policy-management/ createAutoSubmitPolicy (HTTP method = POST)

    Consumes

    • application/vnd.juniper.servicenow.autosubmit-policy-management. createAutoSubmitPolicy+xml;version=1
    • application/vnd.juniper.servicenow.autosubmit-policy-management. createAutoSubmitPolicy+json;version=1

    Request Elements

    Element

    Type

    Description

    policyName

    String

    Name of the auto submit policy

    devices

    devices

    Collection of devices to which the auto submit policy is applied

    device

    device

    A device to which the auto submit policy is applied

    uri

    String

    URI of the device

    href

    String

    Link to the device

    events

    event

    Collection of events for which the auto submit policy is applied

    event

    event

    Event for which the auto submit policy is applied

    id

    Integer

    ID of the event

    dampening

    String

    Dampening status of the event

    Possible values:

    • NONE—An Incident is created in Service Now for each occurrence of the event.
    • ALWAYS—No incident is created in Service Now after the first occurrence of the event.
    • Dampening interval—Time interval (between 1 hr to 120 hrs) for which an incident is not created for the event when the event recurs on a device.

    submitCaseOptions

    submitCaseOptions

    Options to submit an incident for creating a case in Juniper Support System (JSS)

    followUpMethod

    String

    Method to be used for follow-up of the case

    Possible values:

    • EMAIL_FULL_TEXT
    • EMAIL_SECURE_LINK
    • PHONE_CALL

    priority

    String

    Priority of the submitted incident

    Possible values—None, Critical, High, Medium, and Low

    associatedCoreFile

    Boolean

    Flag to indicate if the incident is created because of issues with the core file

    Possible values:

    • true—Incident is created because of issues with the core file
    • false—Incident is not created because of issues with the core file

    synopsisComments

    String

    Synopsis of the event

    descriptionComments

    String

    Description of the event

    caseCCList

    caseCCList

    Collection of e-mail IDs to which the incident should be copied while submitting to JSS

    email

    String

    E-mail ID of users to whom incident should be copied while submitting to JSS

    domainId

    Integer

    ID of the domain to which the auto submit policy is to be created

    This is an optional element. If no domain ID is provided, the auto submit policy is created in the Global domain.

    Note: The create request fails if a user does not have access to the Global domain and if no domain ID is provided with the create request.

    Produces

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

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the create auto submit policy job

    Sample Input

    Sample XML Input

    <autoSubmitPolicy>
    <policyName>Test81</policyName>
    <devices>
    <device uri="/api/juniper/servicenow/device-management/devices/34672" href="/api/juniper/servicenow/device-management/devices/34672"/>
    </devices>
    <events>
    <event>
    <id>32805</id>
    <dampening>NONE</dampening>
    </event>
    </events>
    <submitCaseOptions>
    	<followUpMethod>EMAIL_FULL_TEXT</followUpMethod>
       <priority>Low</priority>
    	<associatedCoreFile>true</associatedCoreFile>
    	<uploadCoreFiles>false</uploadCoreFiles>
       <synopsisComments>synComm</synopsisComments>
       <descriptionComments>descComm</descriptionComments>
        <caseCCList>
          <email>user@example.com</email>
        </caseCCList>
    </submitCaseOptions>
    </autoSubmitPolicy>
    
    

    Sample JSON Input

    {
        "autoSubmitPolicy": {
            "policyName": "Test91",
            "devices": {
                "device": {
                    "@uri": "/api/juniper/servicenow/device-management/devices/34672",
                    "@href": "/api/juniper/servicenow/device-management/devices/34672"
                }
            },
            "events": {
                "event": {
                    "id": "32805",
                    "dampening": "NONE"
                }
            },
            "submitCaseOptions": {
                "followUpMethod": "EMAIL_FULL_TEXT",
                "priority": "Low",
             		     "associatedCoreFile": "true",
                "uploadCoreFiles": "false",
                "synopsisComments": "synComm",
                "descriptionComments": "descComm",
                "caseCCList": {
                    "email": "user@example.com"
                }
            }
        }
    }
    
    

    Sample Output

    Sample XML Output

    <servicenowmsg>
    <msg>
    Auto submit policy created successfully
    </msg>
    </servicenowmsg>
    

    Sample JSON Output

    {
      "servicenowmsg": { "msg": "Auto submit policy created successfully " }
    }
    

    Modified: 2016-08-11