ListIncidents

Updated at:

Queries a list of incidents.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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

  • P2

  • P3

  • P4

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:

  • HIGH: High.

  • LOW: Low.

LOW

relationServiceId

integer

No

The ID of the associated service.

12312

incidentStatus

string

No

The incident status. Valid values:

  • ASSIGNED: Assigned.

  • RESPONDED: Responded.

  • FINISHED: Finished.

ASSIGNED

me

integer

No

Specifies whether to query incidents of the current user. Valid values:

  • 1: Yes.

  • 0: No.

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: Assigned.

  • 1: Responded.

  • 2: Finished.

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:

  • Yes: Manual.

  • No: Automatic.

true

incidentNumber

string

The incident number.

I3000021

relServiceDeleteType

integer

The deletion status of the service. Valid values:

  • 1: Normal.

  • 0: Deleted.

1

relRouteRuleDeleteType

integer

The deletion status of the rule. Valid values:

  • 1: Normal.

  • 0: Deleted.

1

assignToWhoIsValid

integer

Specifies whether the assigned user is valid. Valid values:

  • 1: Valid.

  • 0: Invalid.

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.