Home > Storage > Data Storage Essentials > Storage Resource Manager (SRM) > Dell SRM: Automating Incident Management in ServiceNow > Create incident test
The scripted REST API service configuration is now a new resource. Create an incident test as follows:
Figure 10. Create incident test – resource
Figure 11. Create incident test – explore REST API
The left side of the REST API explorer lists the resource details: Namespace, API Name, and API Version. On the right side, the URI of HTTP POST method is listed with http headers.
Figure 12. Create incident test – request configuration
{
"alertId": "Unity-A007_Pool_Test-Pool93_Threshold Exceeded",
"severity": "1",
"eventType": "DURABLE",
"timestamp": "1623403895",
"systemName": "Unity-A007",
"systemType": "UnifiedArray",
"componentType": "Pool",
"componentName": "Test-Pool93",
"source": "Unity-GenericEvent",
"category": "Capacity",
"description": "Storage pool Test-Pool93 has exceeded its critical threshold of 95%",
"active":"true",
"acknowledged":"N/A",
"owner":"N/A"
}
An alert triggers incident creation due to the property active=true and the nonexistence of the same alertId in the incident database.
Figure 13. Create incident test – request body
The explore REST API webapp responds with the following request summary:
Figure 14. Create incident test – request summary
The status code must be 200 OK. The Response Body message reflects the specific action being performed within ServiceNow (Incident created).
Figure 15. Create incident test – response
The new incident appears.
Figure 16. ServiceNow incident created
The details of the incident are shown with state New, subcategory SRM, and the short and detailed descriptions.
Figure 17. ServiceNow incident details