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 All Auto Submit Policies in Service Now

    Use this API to get all auto submit policies configured in Junos Space Service Now.

    URI

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

    Consumes

    None

    Produces

    • application/vnd.juniper.servicenow.autosubmit-policy-manageent.autosubmitpolicies +xml;version=3;
    • application/vnd.juniper.servicenow.autosubmit-policy-management.autosubmitpolicies +json;version=3;

    Response

    Element

    Type

    Description

    uri

    String

    URI of the collection of auto submit policies in Service Now

    size

    Integer

    Number of records in the collection

    autosubmitpolicy

    autosubmitpolicy

    An auto submit policy in the collection

    href

    String

    Link to the auto submit policy

    uri

    String

    URI of the auto submit policy

    key

    Integer

    ID of the auto submit policy

    incidentsSubmitted

    Integer

    Number of incidents submitted through this auto submit policy.

    devices

    Integer

    Number of devices associated with the auto submit policy.

    events

    Integer

    Number of events associated with the auto submit policy.

    name

    String

    Auto submit policy name.

    createdBy

    String

    User who created this auto submit policy.

    enabled

    Boolean

    Flag to indicate whether or not the auto submit policy can be used to submit incidents to JSS or Service Now partner automatically

    Possible values:

    • true—The auto submit policy is can be used to submit incidents
    • false—The auto submit policy cannot be used to submit incidents

    dampeningEnabled

    Boolean

    Flag to indicate whether or not incidents that are created for recurring events should be ignored

    Possible values:

    • true—Incidents generated for recurring events are ignored
    • false—Incidents generated for recurring events are submitted to JSS or Service Now partner

    domainId

    Integer

    ID of the domain in which the auto submit policy is created

    Sample Output

    Sample XML Output

    < autosubmitpolicies uri="/api/juniper/servicenow/autosubmit-policy-management/ autosubmitpolicies " size="2">
          <autosubmitpolicy href="/api/juniper/servicenow/autosubmit-policy-management/ autosubmitpolicies /720896" 
    uri="/api/juniper/servicenow/autosubmit-policy-management/ autosubmitpolicies /720896" key="720896"> <incidentsSubmitted>0</incidentsSubmitted> <devices>3</devices> <events>5</events> <name>test1</name> <createdBy>super</createdBy> <enabled>true</enabled> <dampeningEnabled>true</dampeningEnabled> <domainId>10</domainId> </autosubmitpolicy> <autosubmitpolicy href="/api/juniper/servicenow/autosubmit-policy-management/autosubmitcases/1081344"
    uri="/api/juniper/servicenow/autosubmit-policy-management/ autosubmitpolicies/1081344" key="1081344"> <incidentsSubmitted>0</incidentsSubmitted> <devices>2</devices> <events>7</events> <name>test</name> <createdBy>super</createdBy> <enabled>false</enabled> <dampeningEnabled>true</dampeningEnabled> <domainId>20</domainId> </autosubmitpolicy > </autosubmitpolicies>

    Sample JSON Output

    {
        "autosubmitpolicies":{
            "@uri":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies,
            "@size":"2",
            "autosubmitpolicy":[
                {
                    "@href":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies/720896",
                    "@uri":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies/720896",
                    "@key":"720896",
                    "incidentssubmitted":"0",
                    "devices":"3",
                    "events":"5",
                    "name":"test1",
                    "createdby":"super",
         		    "enabled":"true"
                    “dampeningEnabled”:”true”
    		   “domainId”:”10”
                },
                {
                    "@href":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitcases/1081344",
                    "@uri":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies/1081344",
                    "@key":"1081344",
                    "incidentssubmitted":"0",
                    "devices":"2",
                    "events":"7",
                    "name":"test",
                    "createdby":"super",
           	    "enabled":"false"
                    “dampeningEnabled”:”true”
    	           “domainId”:”20”
                }
            ]
        }
    

    Response Status Code

    Message

    Description

    204 Not Found

    No auto submit policy exists in Service Now

    Modified: 2017-07-19