Get All Additional Information Attachments for a Technical Support Case
Use this API to retrieve information about all attachments containing additional information for a technical support case in Junos Space Service Now.
URI
https://[host]/api/juniper/servicenow/case-management/cases/{Id}/ additionalInformationAttachments (HTTP method = GET)
URI Parameters
Element | Type | Required | Description |
---|---|---|---|
Id | Integer | Yes | ID of the case in Service Now for which you want to retrieve all attachments containing additional information |
Consumes
None
Produces
- application/vnd.juniper.servicenow.case-management.attachments+xml;version=1
- application/vnd.juniper.servicenow.case-management.attachments+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
attachments | attachment | Collection of attachments |
uri | String | Link to the collection of attachments |
attachment | attachment | An attachment containing additional information for a technical support case |
attachment id | Integer | ID of the attachment |
attachmentName | String | Name of the attachment |
size | Integer | Size of the attachment in bytes |
readStatus | String | Status of reading the attachment created on the device Possible values:
|
remarks | String | Remarks. Indicates any issues while reading the attachment |
uploadStatus | String | Status of uploading the attachment to Juniper Support Systems (JSS). Possible values:
|
uploadFailedReason | String | indicates the reason for failure when uploading the attachment to JSS fails |
uploadedBy | String | User who uploaded the attachment to JSS |
Sample Output
Sample XML Output
<attachments uri="/api/juniper/servicenow/case-management/cases/691427/additionalInformationAttachments"> <attachment id="701151"> <attachmentName> additional_cli_information_sn-space-mx240-sys_20170613-063247278.txt </attachmentName> <size>2683(in bytes)</size> <readStatus>Success</readStatus> <remarks/> <uploadStatus>Success</uploadStatus> <uploadFailedReason/> <uploadedBy>super</uploadedBy> </attachment> </attachments>
Sample JSON Output
{ "attachments": { "@uri": "/api/juniper/servicenow/case-management/cases/691427/additionalInformationAttachments", "attachment": { "@id": "701151", "attachmentName": "additional_cli_information_sn-space-mx240-sys_20170613-063247278.txt", "size": "2683(in bytes)", "readStatus": "Success", "remarks": "", "uploadStatus": "Success", "uploadFailedReason": "", "uploadedBy": "super" } } }