ListProblems

Updated at:

Queries the fault list.

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

get

*All Resource

*

None None

Request syntax

POST /problem/listProblems HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

queryType

string

No

Valid values:

  • RESPONSIBLE: Faults that I am responsible for.

  • PARTICIPATED: Faults that I participated in.

  • ALL: All faults.

RESPONSIBLE

problemStatus

string

No

The fault status. Valid values:

  • HANDLING: Handling.

  • RECOVERED: Recovered.

  • REPLAYING: Reviewing.

  • REPLAYED: Reviewed.

  • CANCEL: Canceled.

HANDLING

problemLevel

string

No

The fault level in descending order of severity. Valid values:

  • P1

  • P2

  • P3

  • P4

P2

affectServiceId

integer

No

The ID of the affected service.

1

serviceGroupId

integer

No

The emergency response group.

1

mainHandlerId

integer

No

The primary handler.

1

repeaterId

integer

No

The review owner.

1

discoveryStartTime

string

No

The start time of discovery. The format is YYYY-MM-DD HH:mm:ss.

2020-03-05 15:50:59

discoveryEndTime

string

No

The end time of discovery. The format is YYYY-MM-DD HH:mm:ss.

2020-03-05 15:50:59

restoreEndTime

string

No

The end time of recovery. The format is YYYY-MM-DD HH:mm:ss.

2020-03-05 15:50:59

restoreStartTime

string

No

The start time of recovery. The format is YYYY-MM-DD HH:mm:ss.

2020-03-05 15:50:59

pageNumber

integer

No

The page number.

1

pageSize

integer

No

The number of entries per page.

10

clientToken

string

No

The client token that is used to ensure idempotence.

C4BE3837-1A13-413B-A225-2C88188E8A43

Response elements

Element

Type

Description

Example

object

The response structure.

requestId

string

The request ID.

C4BE3837-1A13-413B-A225-2C88188E8A43

data

array<object>

The list of faults.

array<object>

The list of faults.

problemId

integer

The fault ID.

1

isManual

boolean

Indicates whether it is manual.

true

isUpgrade

boolean

Indicates whether it is an upgrade.

true

incidentId

integer

The event ID.

10000

createTime

string

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

2020-09-08 15:59:59

updateTime

string

The update time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

problemNumber

string

The fault number.

P34438300000001116258132229577472

problemName

string

The fault name.

Fault

problemStatus

string

The fault status. Valid values:

  • HANDLING: Handling.

  • RECOVERED: Recovered.

  • REPLAYING: Reviewing.

  • REPLAYED: Reviewed.

  • CANCEL: Canceled.

HANDLING

problemLevel

string

The fault level in descending order of severity. Valid values:

  • P1

  • P2

  • P3

  • P4

P1

discoverTime

string

The discovery time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

recoveryTime

string

The recovery time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

relatedServiceId

string

The associated service ID.

1

serviceName

string

The associated service name.

Service 1

affectServices

array<object>

The affected services.

object

The affected services.

serviceId

integer

The ID of the affected service.

100

serviceDescription

string

The service description.

Service description

serviceName

string

The service name.

Cloud Rush

updateTime

string

The update time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

mainHandlerId

integer

The primary handler ID.

100

mainHandlerName

string

The primary handler name.

Wang Yu

cancelTime

string

The cancellation time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

finishTime

string

The completion time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

replayTime

string

The review time. The format is YYYY-MM-DD HH:mm:ss.

2020-09-08 15:59:59

serviceDeletedType

integer

The service deletion field.

0

mainHandlerIsValid

integer

The primary handler ID.

1

pageNumber

integer

The page number.

1

pageSize

integer

The number of entries per page.

10

totalCount

integer

The total count.

100

Examples

Success response

JSON format

{
  "requestId": "C4BE3837-1A13-413B-A225-2C88188E8A43",
  "data": [
    {
      "problemId": 1,
      "isManual": true,
      "isUpgrade": true,
      "incidentId": 10000,
      "createTime": "2020-09-08 15:59:59",
      "updateTime": "2020-09-08 15:59:59",
      "problemNumber": "P34438300000001116258132229577472",
      "problemName": "Problem",
      "problemStatus": "HANDLING",
      "problemLevel": "P1",
      "discoverTime": "2020-09-08 15:59:59",
      "recoveryTime": "2020-09-08 15:59:59",
      "relatedServiceId": "1",
      "serviceName": "Service 1",
      "affectServices": [
        {
          "serviceId": 100,
          "serviceDescription": "Service description",
          "serviceName": "Cloud Soar",
          "updateTime": "2020-09-08 15:59:59"
        }
      ],
      "mainHandlerId": 100,
      "mainHandlerName": "Wang Yu",
      "cancelTime": "2020-09-08 15:59:59",
      "finishTime": "2020-09-08 15:59:59",
      "replayTime": "2020-09-08 15:59:59",
      "serviceDeletedType": 0,
      "mainHandlerIsValid": 1
    }
  ],
  "pageNumber": 1,
  "pageSize": 10,
  "totalCount": 100
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.