Request RMA Incident
Use this API to generate Return Material Authorization (RMA) incidents for devices.
URI
https://[host]/api/juniper/servicenow/device-management/devices/{id}/requestRMAIncident ?queue=https://[host]/api/hornet-q/queues/jms.queue.[QueueName] (HTTP method = POST)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
QueueName | String | Yes | Name of the request RMA job queue |
Consumes
application/vnd.juniper.servicenow.device-management.requestrmaincident+xml; version=7;charset=UTF-8
application/vnd.juniper.servicenow.device-management.requestrmaincident+json; version=7;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
followUpMethod | String | Method used to follow up with the case created for the RMA incident Possible values:
For an end-customer Service Now, a value need not be provided for followUpMethod. Any value, if provided, is discarded. |
caseCCList | caseCCList | Collection of e-mail ID of users to be notified about the RMA incident |
String | E-mail id of a user to be notified about the RMA incident | |
Priority | String | Priority of the incident Possible values:
|
synopsisComments | String | Synopsis of the RMA incident |
customerComments | String | Comments from user for the RMA incident |
createCase | Boolean | Flag to indicate if the RMA incident should be submitted to JSS for creating a case: Possibel values
|
requestRMAParts | String | Device parts for which RMA is requested |
collectLogFiles | Boolean | Flag to indicate whether or not log files should be collected for this on-demand incident Possible values:
|
verifyCPUUsage | Boolean | Flag to indicate whether or not usage of device CPU must be verified while generating this on-demand incident Possible values:
|
associateCaseId | String | ID of the existing case with which an incident is to be associated |
caseAssociationCustomerComment | String | Comments provided when associating an on-demand incident with a case The maximum number of characters allowed is 38000. |
Produces
application/vnd.juniper.servicenow.device-management.device+xml;version=8
application/vnd.juniper.servicenow.device-management.device+json;version=8
Response Elements
Element | Type | Description |
---|---|---|
href | String | Link to the request RMA job |
id | Integer | ID of the request RMA job |
Sample Input
Sample XML Input
<requestrmaincident> <followUpMethod>Email Full Text Update</followUpMethod> <caseCCList> <email>test@juniper.net</email> </caseCCList> <priority>Critical</priority> <problemSynopsis> These are my synopsis comments here </problemSynopsis> <problemDescription> These are my customer comments here </problemDescription> <createCase>false</createCase> <associateCaseId>2017-0101-0001</associateCaseId> <caseAssociationCustomerComment>test REST RMA API Case Association comment</caseAssociationCustomerComment> <addressGroup href="/api/juniper/servicenow/address-group-management/addressGroups/1278088"/> <requestRMAParts> Routing Engine 0 Model Number: EX2200-24T-4G Routing Engine 0 Part Number: 750-026468 (REV 13) Routing Engine 0 SerialNumber: CW0210402769 CW0210402769 Routing Engine 0 Description: EX2200-24T-4G FPC 0 Model Number: EX2200-24T-4G FPC 0 Part Number: 750-026468 (REV 13) FPC 0 SerialNumber: CW0210402769 FPC 0 Description: EX2200-24T-4G </requestRMAParts> <collectLogFiles>false</collectLogFiles> <verifyCPUUsage>false</verifyCPUUsage> </requestrmaincident>
Sample JSON Input
{ "requestrmaincident": { "followUpMethod": "Email Full Text Update", "caseCCList": { "email": "test@juniper.net" }, "priority": "Critical", "problemSynopsis": " These are my synopsis comments here ", "problemDescription": " These are my customer comments here ", "createCase": "false", "associateCaseId": "2017-0101-0001", "caseAssociationCustomerComment": "test REST RMA API Case Association comment", "addressGroup": { "-href": "/api/juniper/servicenow/address-group-management/addressGroups/1278088" }, "requestRMAParts": " Routing Engine 0 Model Number: EX2200-24T-4G Routing Engine 0 Part Number: 750-026468 (REV 13) Routing Engine 0 SerialNumber: CW0210402769 CW0210402769 Routing Engine 0 Description: EX2200-24T-4G FPC 0 Model Number: EX2200-24T-4G FPC 0 Part Number: 750-026468 (REV 13) FPC 0 SerialNumber: CW0210402769 FPC 0 Description: EX2200-24T-4G ", "collectLogFiles": "false", "verifyCPUUsage": "false" } }
Sample Output
Sample XML Output
<task href="/api/juniper/job-management/jobs/3801101"> <id>3801101</id> </task>
Sample JSON Output
{ "task":{ "@href":"/api/space/job-management/jobs/3801101", "id":3801101 } }
Error Codes
Message | Description |
---|---|
400 Bad Request |
|
404 Not Found | The device specified in the request is not a valid Service Now device. |