GetIncident

Updated at:

Retrieves the details of an event.

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:GetIncident

get

*All Resource

*

None None

Request syntax

POST /incident/detail HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request parameters for retrieving the details of an event.

incidentId

integer

No

The incident ID.

32113

clientToken

string

No

The client token.

2b63cdef-7ac3-4892-a76d-0f3389ef729f

Response elements

Element

Type

Description

Example

object

The response structure.

requestId

string

The request ID.

2b63cdef-7ac3-4892-a76d-0f3389ef7291

data

object

The event details.

incidentId

integer

The incident ID.

3213

routeRuleId

integer

The routing rule ID.

3123

routeRuleName

string

The routing rule name.

Routing Rule A

relatedServiceId

integer

The associated service ID.

312312

relatedServiceName

string

The associated service name.

Service A

relatedServiceDescription

string

The associated service description.

Associated service description

incidentStatus

string

The event status. Valid values: ASSIGNED, RESPONDED, and FINISHED.

FINISHE

incidentLevel

string

The event level. Valid values: P1, P2, P3, and P4, in descending order of severity.

P4

effect

string

The impact level. Valid values: HIGH and LOW.

LOW

assignUserId

integer

The ID of the assigned user.

12312

assignUserName

string

The name of the assigned user, which is obtained from the user table.

Xiaoming

assignUserPhone

string

The phone number of the assigned user.

1390000****

incidentNumber

string

The event number.

I3443831000000016247759753663894

incidentTitle

string

The event title.

Event title

createTime

string

The creation time. The time is in the YYYY-MM-DD HH:mm:ss format.

2020-01-10 00:00:00

isManual

boolean

The event source. Valid values: true (manual) and false (automatic).

true

isUpgrade

boolean

Indicates whether the event is upgraded.

true

incidentDescription

string

The event description.

Event description

problemId

integer

The problem ID.

232113

problemNumber

string

The problem number.

3332113231453321

durationTime

integer

The duration.

3000000

notifyChannels

array

The notification channels.

["1"]

string

The notification channels.

WEBHOOK

relatedServiceGroupName

string

The name of the associated service group.

Service Group A

relatedServiceGroupId

integer

The associated service ID.

13000

relServiceDeleteType

integer

The service deletion field.

1

relRouteRuleDeleteType

integer

The rule deletion field.

1

assignToWhoIsValid

integer

Indicates whether the assigned user is valid. Valid values: 1 (valid) and 0 (invalid).

1

relServiceGroupIsValid

integer

Indicates whether the associated service group is valid. Valid values: 1 (valid) and 0 (invalid).

1

defaultAssignToWhoName

string

The name of the default assignee.

Xiaoming

defaultAssignToWho

integer

The ID of the default assignee.

1212

defaultAssignToWhoIsValid

integer

The deletion status of the default assignee. Valid values: 1 (normal) and 0 (deleted).

1

Examples

Success response

JSON format

{
  "requestId": "2b63cdef-7ac3-4892-a76d-0f3389ef7291",
  "data": {
    "incidentId": 3213,
    "routeRuleId": 3123,
    "routeRuleName": "Routing rule A",
    "relatedServiceId": 312312,
    "relatedServiceName": "Service A",
    "relatedServiceDescription": "Associated service description",
    "incidentStatus": "FINISHE",
    "incidentLevel": "P4",
    "effect": "LOW",
    "assignUserId": 12312,
    "assignUserName": "Xiao Ming",
    "assignUserPhone": "1390000****",
    "incidentNumber": "I3443831000000016247759753663894",
    "incidentTitle": "Event title",
    "createTime": "2020-01-10 00:00:00",
    "isManual": true,
    "isUpgrade": true,
    "incidentDescription": "Event description",
    "problemId": 232113,
    "problemNumber": "3332113231453321",
    "durationTime": 3000000,
    "notifyChannels": [
      "WEBHOOK"
    ],
    "relatedServiceGroupName": "Service group A",
    "relatedServiceGroupId": 13000,
    "relServiceDeleteType": 1,
    "relRouteRuleDeleteType": 1,
    "assignToWhoIsValid": 1,
    "relServiceGroupIsValid": 1,
    "defaultAssignToWhoName": "Xiao Ming",
    "defaultAssignToWho": 1212,
    "defaultAssignToWhoIsValid": 1
  }
}

Error codes

HTTP status code

Error code

Error message

Description

404 IncidentNotExtisted The incident does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.