Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

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

Sample JSON Input

Sample Output

Sample XML Output

Response Status Code

Message

Description

404 Not Found

Invalid device ID specified.

400 Bad Request

Invalid request.