ListIncidents
Queries a list of incidents.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListIncidents |
get |
*All Resource
|
None | None |
Request syntax
POST /incident/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| incidentLevel |
string |
No |
The event level in descending order. Valid values:
|
P1 |
| pageNumber |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The number of entries per page. |
10 |
| effect |
string |
No |
The impact level. Valid values:
|
LOW |
| relationServiceId |
integer |
No |
The ID of the associated service. |
12312 |
| incidentStatus |
string |
No |
The incident status. Valid values:
|
ASSIGNED |
| me |
integer |
No |
Specifies whether to query incidents of the current user. Valid values:
|
1 |
| clientToken |
string |
No |
The idempotency token. |
FD200FAE-E98F-496E-BFE6-4CE61E59A2E1 |
| createStartTime |
string |
No |
The start time of the creation time range. Specify the time in the YYYY-MM-DD HH:mm:ss format. |
2021-11-01 00:00:00 |
| createEndTime |
string |
No |
The end time of the creation time range. Specify the time in the YYYY-MM-DD HH:mm:ss format. |
2021-11-10 00:00:00 |
| ruleName |
string |
No |
The name of the routing rule. |
sa |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
FD200FAE-E98F-496E-BFE6-4CE61E59A2E9 |
| data |
array<object> |
The list of incidents. |
|
|
object |
The event type. |
||
| incidentId |
integer |
The incident ID. |
12321 |
| routeRuleId |
integer |
The ID of the routing rule. |
123 |
| routeRuleName |
string |
The name of the routing rule. |
Rule A |
| incidentStatus |
string |
The incident status. Valid values:
|
0 |
| incidentLevel |
string |
The event level in descending order. Valid values: P1, P2, P3, and P4. |
P4 |
| relatedServiceId |
integer |
The ID of the associated service. |
213123 |
| relatedServiceName |
string |
The associated service name. |
Service A |
| effect |
string |
The impact level. Valid values: HIGH and LOW. |
HIGH |
| assignUserId |
integer |
The ID of the assigned user. |
21312 |
| assignUserName |
string |
The name of the assigned user. |
Xiao Ming |
| assignUserPhone |
string |
The phone number of the assigned user. |
1390000**** |
| incidentTitle |
string |
The title of the incident. |
Incident A |
| createTime |
string |
The creation time. The time is in the YYYY-MM-DD HH:mm:ss format. |
2020-10-1 00:00:00 |
| isManual |
boolean |
The incident source. Valid values:
|
true |
| incidentNumber |
string |
The incident number. |
I3000021 |
| relServiceDeleteType |
integer |
The deletion status of the service. Valid values:
|
1 |
| relRouteRuleDeleteType |
integer |
The deletion status of the rule. Valid values:
|
1 |
| assignToWhoIsValid |
integer |
Specifies whether the assigned user is valid. Valid values:
|
008 |
| totalCount |
integer |
The total number of entries. |
60 |
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "FD200FAE-E98F-496E-BFE6-4CE61E59A2E9",
"data": [
{
"incidentId": 12321,
"routeRuleId": 123,
"routeRuleName": "Rule A",
"incidentStatus": "0",
"incidentLevel": "P4",
"relatedServiceId": 213123,
"relatedServiceName": "Service A",
"effect": "HIGH",
"assignUserId": 21312,
"assignUserName": "John Doe",
"assignUserPhone": "1390000****",
"incidentTitle": "Incident A",
"createTime": "2020-10-1 00:00:00",
"isManual": true,
"incidentNumber": "I3000021",
"relServiceDeleteType": 1,
"relRouteRuleDeleteType": 1,
"assignToWhoIsValid": 8
}
],
"totalCount": 60,
"pageNumber": 1,
"pageSize": 10
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | UserNotAdded | The user is not added to the system. | The user did not added to system |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.