Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get Attachment Details by Incident ID

 

Use this API to retrieve details about all attachments present in the Junos Space Service Now database for an incident.

URI

https://[host]/api/juniper/servicenow/incident-management/incidents/{id}/attachments (HTTP method = GET)

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the Incident for which details about attachments are to be retrieved

Consumes

None

Produces

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

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

Response Elements

Element

Type

Description

attachments

String

Link to the collection of attachments present for an incident

attachment

String

An attachment in the collection

uri

String

URI of the attachment

id

Integer

ID of the attachment

attachmentName

String

Name of the attachment

command

String

show command of Junos OS

The attachment file contains the output of this show command.

size

Integer

Size of the attachment in bytes

readStatus

String

Status of reading the attachment from the device

Possible values—Success and Failure:

readFailReason

String

Reason why Service Now could not read the attachment

uploadStatus

String

Status of uploading the attachment to Juniper Support System (JSS)

Possible values—Uploaded and Not Uploaded

deviceFileType

String

Type of file

Possible values—config, version, chassis, RSI, ESI, status, and log

Sample Output

Sample XML Output

Sample JSON Output

Related Documentation