Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Collect Additional Information for an Incident

 

Use this API to collect information in addition to what is provided by a Juniper Message Bundle (JMB) for an incident in Junos Space Service Now.

URI

https://[host]/api/juniper/servicenow/incident-management/incidents/{incidentId} /collectAdditionalInformation?queue=https:/[host]/api/hornet-q/queues /jms.queue.testq&schedule=(at(<date and time>)) (HTTP method = POST)

Sample URI for a collect additional information job without schedule or repetition

https://10.219.51.6/api/juniper/servicenow/incident-management/incidents /689710/collectAdditionalInformation?queue=https://10.219.51.6/api/hornet-q /queues/jms.queue.testq

Sample URI for a collect additional information job scheduled for execution at 10:55 PM on July 4, 2017

https://10.219.51.6/api/juniper/servicenow/incident-management/incidents /760715/collectAdditionalInformation?queue=https://10.219.51.6/api/hornet-q /queues/jms.queue.testq=(at(00 55 22 04 07 ? 2017))

Sample URI for a collect additional information job scheduled for execution every three minutes the whole day on July 4, 2017.

https://10.219.51.6/api/juniper/servicenow/incident-management/incidents /623354/collectAdditionalInformation?queue=https://10.219.51.6/api/hornet-q /queues/jms.queue.testq=(at(00 */3 * 04 07 ? 2017)

URI Parameters

Element

Type

Required

Description

incidentId

Integer

Yes

ID of the incident for which additional information is to be collected

date and time

String

No

Date and time (in the ss mm hh dd mm ? yy format) additional information is to be collected

Consumes

  • application/vnd.juniper.servicenow.incidnet-management.incident. collectAdditionalInformation+xml;version=1;charset=UTF-8

  • application/vnd.juniper.servicenow.incidnet-management.incident. collectAdditionalInformation+json;version=1;charset=UTF-8

Request Elements

Element

Type

Description

cliCommand

String

Junos OS commands to be executed for collecting additional information for the incident

Produces

  • application/vnd.juniper.servicenow.incident-management.incident+xml;version=1

  • application/vnd.juniper.servicenow.incident-management.incident+json;version=1

Response Elements

Element

Type

Description

href

String

Link to the job for collecting additional information

id

Integer

ID of the collect additional information job

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output