ListInstanceHistoryEvents

Updated at:

Queries the hardware O&M events triggered by an Elasticsearch cluster.

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

elasticsearch:ListInstanceHistoryEvents

get

*All Resource

*

None None

Request syntax

POST /openapi/events HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

instanceId

string

No

The instance ID.

es-cn-2r42l7a740005****

nodeIP

string

No

The IP address of the node that triggered the event.

10.1.xx.xx

eventType

array

No

The event type.

string

No

The event types. Separate multiple values with commas (,). Valid values:

  • ECS:AUTO_RESTART: automatic restart of an ECS node

  • Instance:InstanceFailure.Reboot:Executed: ECS instance restart completed (instance error)

  • Instance:InstanceFailure.Reboot:Executing: ECS instance restart started (instance error)

  • Instance:SystemFailure.Reboot:Executed: ECS instance restart completed (system error)

  • Instance:SystemFailure.Reboot:Executing: ECS instance restart started (system error)

  • Instance:SystemFailure.Reboot:Failed: ECS instance restart failed (system error)

Instance:InstanceFailure.Reboot:Executed

eventLevel

array

No

The event level.

string

No

The event levels. Separate multiple values with commas (,). Valid values:

  • INFO: information

  • WARN: warning

  • CRITICAL: critical

INFO,WARN

eventCreateStartTime

string

No

The start time for querying events by creation time. The value is a timestamp in milliseconds.

1645596516000

eventCreateEndTime

string

No

The end time for querying events by creation time. The value is a timestamp in milliseconds.

1645596516000

eventExecuteStartTime

string

No

The start time for querying events by execution time. The value is a timestamp in milliseconds.

1645596516000

eventExecuteEndTime

string

No

The end time for querying events by execution time. The value is a timestamp in milliseconds.

1645596516000

eventFinashStartTime

string

No

The start time for querying events by completion time. The value is a timestamp in milliseconds.

1645596516000

eventFinashEndTime

string

No

The end time for querying events by completion time. The value is a timestamp in milliseconds.

1645596516000

page

integer

No

The starting document offset. The value must be a non-negative number. Default value: 0.

0

size

integer

No

The number of events to return. The value must be a non-negative number. Default value: 10.

10

eventCycleStatus

array

No

The lifecycle status of the event.

string

No

The lifecycle statuses of the event. Separate multiple values with commas (,). Valid values:

  • FAILED: failed

  • EXECUTED: executed

  • EXECUTING: executing

EXECUTED,FAILED

body

array<object>

No

The request body parameters.

object

No

The request object.

sortField

string

No

The sort field for the returned results. Valid values:

  • eventCreateTime: the event creation time

  • eventExecuteTime: the event execution time

  • eventFinishTime: the event completion time

Valid values:

  • eventCreateTime :

    Event creation time.

  • eventFinishTime :

    Event completion time.

  • eventExecuteTime :

    Event execution time.

eventCreateTime

desc

boolean

No

Specifies whether to sort in descending order. Valid values:

  • true (default): yes

  • false: no

true

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

D1A6830A-F59B-4E05-BFAC-9496C21DBBA7

Headers

object

The response headers.

X-Total-Count

integer

The total number of records.

15

X-Total-Failed

integer

The total number of failures.

2

X-Total-Success

integer

The total number of successes.

13

Result

array<object>

The returned result.

object

The result object.

eventCreateTime

string

The event creation time in ISO 8601 format and UTC.

2017-12-07T00:00:00Z

eventLevel

string

The event level. Valid values:

  • INFO: information

  • WARN: warning

  • CRITICAL: critical

INFO

instanceId

string

The instance ID.

es-cn-2r42l7a740005****

eventFinashTime

string

The event completion time in ISO 8601 format and UTC.

2017-12-07T00:00:00Z

eventCycleStatus

string

The event status. Valid values:

  • FAILED: failed

  • EXECUTED: executed

  • EXECUTING: executing

EXECUTED

regionId

string

The ID of the region where the event occurred.

cn-hangzhou

nodeIP

string

The IP address of the node that generated the event.

10.1.xx.xx

eventExecuteTime

string

The event execution time in ISO 8601 format and UTC.

2017-12-07T00:00:00Z

eventType

string

The event type. Valid values:

  • ECS:AUTO_RESTART: automatic restart of an ECS node

  • Instance:InstanceFailure.Reboot:Executed: ECS instance restart completed (instance error)

  • Instance:InstanceFailure.Reboot:Executing: ECS instance restart started (instance error)

  • Instance:SystemFailure.Reboot:Executed: ECS instance restart completed (system error)

  • Instance:SystemFailure.Reboot:Executing: ECS instance restart started (system error)

  • Instance:SystemFailure.Reboot:Failed: ECS instance restart failed (system error)

ECS:AUTO_RESTART

ecsId

string

The ECS instance ID.

i-2ze8s9cjdf2cv969****

Examples

Success response

JSON format

{
  "RequestId": "D1A6830A-F59B-4E05-BFAC-9496C21DBBA7",
  "Headers": {
    "X-Total-Count": 15,
    "X-Total-Failed": 2,
    "X-Total-Success": 13
  },
  "Result": [
    {
      "eventCreateTime": "2017-12-07T00:00:00Z",
      "eventLevel": "INFO",
      "instanceId": "es-cn-2r42l7a740005****",
      "eventFinashTime": "2017-12-07T00:00:00Z",
      "eventCycleStatus": "EXECUTED",
      "regionId": "cn-hangzhou",
      "nodeIP": "10.1.xx.xx",
      "eventExecuteTime": "2017-12-07T00:00:00Z",
      "eventType": "ECS:AUTO_RESTART",
      "ecsId": "i-2ze8s9cjdf2cv969****"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.