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

    Assign an Auto Submit Policy to Devices

    Use this API to assign an auto submit policy to devices for submitting incidents, generated for the devices, automatically to Juniper Support System (JSS) or Service Now partner.

    URI

    https://[host]/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies /{id}/associateDevices (HTTP method = POST)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the auto submit policy

    Consumes

    • application/vnd.juniper.servicenow.autosubmit-policy-management.associatedevices+xml;version=1 ;charset=UTF-8 for XML request
    • application/vnd.juniper.servicenow.autosubmit-policy-management.associatedevices+json;version=1 ;charset=UTF-8 for JSON request

    Request Elements

    Parameter

    Type

    Description

    devices

    device

    Collection of devices to which the auto submit policy must be assigned

    device

    device

    A device to which the auto submit policy must be assigned

    href

    String

    Link to the device

    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

    Parameter

    Type

    Description

    msg

    String

    Status message of the assign an auto submit policy to devices job

    Sample Input

    Sample XML Input

    <associateDevices>
                <devices>
                            <device href="/api/juniper/servicenow/device-management/devices/163840"/>
                            <device href="/api/juniper/servicenow/device-management/devices/163841"/>
                </devices>
    </associateDevices>
    

    Sample JSON Input

    {
    	"associateDevices": {
    		"devices": {
    			"device": [{
    					"@href": "/api/juniper/servicenow/device-management/devices/163840"
    				},
    				{
    					"@href": "/api/juniper/servicenow/device-management/devices/163841"
    				}
    			]
    		}
    	}
    }

    Sample Output

    Sample XML Output

    <servicenowmsg>
    	    <msg>Devices associated successfully to auto submit policy</msg>
    </servicenowmsg>
    

    Response Status Code

    Message

    Description

    404 Not Found

    Invalid device ID specified.

    400 Bad Request

    Invalid request.

    Modified: 2018-02-27