Get Devices Associated With an Auto Submit Policy
An auto submit policy enables incidents that occur on devices to be submitted to Juniper Support Systems (JSS) or Service Now partner automatically for creating a technical support case.
Use this API to retrieve all devices associated with a specific auto submit policy.
URI
https://[host]/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies /{id}/devices (HTTP method = GET)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the auto submit policy for which information about associated devices are to be retrieved |
Consumes
None
Produces
- application/vnd.juniper.servicenow.autosubmit-policy-management.devices +xml;version=1
- application/vnd.juniper.servicenow.autosubmit-policy-management.devices +json;version=1
Response Elements
Element | Type | Description |
---|---|---|
uri | String | Link to the collection of devices associated with the auto submit policy |
device | device | A device in the collection |
key | Integer | ID of the device |
href | String | Link to the device |
hostName | Integer | Device hostname |
Sample Output
Sample XML Output
<devices uri="/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies /360457/devices"> <device key="360448" href="/api/juniper/servicenow/device-management/devices/360448"> <hostName>EX4200.24T.180</hostName> </device> <device key="360449" href="/api/juniper/servicenow/device-management/devices/360449"> <hostName>ex-4200.50.182</hostName> </device> </devices>
Sample JSON Output
{ "devices":{ "@uri":"/api/juniper/servicenow/autosubmit-policy-management/autosubmitpolicies /360457/devices", "device":[ { "@key":"360448", "@href":"/api/juniper/servicenow/device-management/devices/360448", "hostname":"EX4200.24T.180" }, { "@key":"360449", "@href":"/api/juniper/servicenow/device-management/devices/360449", "hostname":"ex-4200.50.182" } ] } }
Response Status Code
Message | Description |
---|---|
500 Internal Server Error | No devices are associated with the specified auto submit policy. |