ListActionRecords

Updated at:

Queries change records and change details.

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

get

*Instance

acs:elasticsearch:{#regionId}:{#accountId}:instances/{#instanceId}

None None

Request syntax

GET /openapi/instances/{InstanceId}/action-records HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

InstanceId

string

No

A short description of struct

es-cn-nif24adwc0082****

Request parameters

Parameter

Type

Required

Description

Example

requestId

string

No

Filters records by the ID of the request that triggered the change.

request-123

userId

string

No

Filters records by the ID of the user that triggered the change.

user-123

actionNames

string

No

Filters records by the names of change operations. Separate multiple names with commas.

RestartInstance

filter

string

No

The display type of change records. Default value: ACTION_RECORD.

ACTION_RECORD

page

integer

No

The page number.

1

size

integer

No

The number of records returned per page.

10

startTime

integer

No

The lower bound of the change start time for the query. The value is a UNIX timestamp in milliseconds.

1767225600000

endTime

integer

No

The upper bound of the change start time for the query. The value is a UNIX timestamp in milliseconds. If you do not specify this parameter, the current time is used.

1767312000000

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

5FFD9ED4-C2EC-4E89-B22B-1ACB6F******

Result

array<object>

The list of instance change records.

array<object>

actionName

string

The name of the operation that triggered the change.

RestartInstance

actionParams

object

The parameters used for the change.

{"force":"true"}

actionResultAccessList

array

The list of internal processing paths used to obtain the final status of the change.

string

The internal processing path used to obtain the final status of the change.

shuttle

endTime

integer

The end time of the change. The value is a UNIX timestamp in milliseconds.

1767225660000

instanceId

string

The ID of the Elasticsearch instance where the change occurred.

es-cn-nif24adwc0082****

process

string

The progress of the change, represented as a percentage string.

100%

recordDiff

object

The field differences before and after the change.

{"nodeAmount":{"old":"2","now":"3"}}

recordIds

array

The list of associated asynchronous task or change order IDs for internal processing pipelines.

string

The ID of the associated asynchronous task or change order.

scheduled-task-example-001

requestId

string

The ID of the request that triggered the change.

request-123

startTime

integer

The start time of the change. The value is a UNIX timestamp in milliseconds.

1767225600000

stateType

string

The current status of the change.

FINISHED

statusInfo

array<object>

The list of status details for each phase of the change.

array<object>

subState

string

The name of the phase.

rolling

nodeCount

integer

The total number of nodes involved in the phase.

5

completeNodeCount

integer

The number of completed nodes in the phase.

3

exception

string

The exception information that occurred in the phase.

Task execution timed out.

latencyMills

integer

The time elapsed for the phase, in milliseconds.

1000

process

string

The completion progress of the phase, represented as a percentage string.

100%

startTime

integer

The start time of the phase. The value is a UNIX timestamp in milliseconds.

1767225600000

endTime

integer

The end time of the phase. The value is a UNIX timestamp in milliseconds.

1767225660000

stateType

string

The current change status of the phase.

FINISHED

subStatusInfo

array<object>

The list of status details for the sub-phases included in the current phase.

object

subState

string

The name of the sub-phase.

clusterStateWait

nodeCount

integer

The total number of nodes involved in the sub-phase.

5

completeNodeCount

integer

The number of completed nodes in the sub-phase.

3

exception

string

The exception information that occurred in the sub-phase.

Task execution timed out.

latencyMills

integer

The time elapsed for the sub-phase, in milliseconds.

1000

process

string

The completion progress of the sub-phase, represented as a percentage string.

100%

startTime

integer

The start time of the sub-phase. The value is a UNIX timestamp in milliseconds.

1767225610000

endTime

integer

The end time of the sub-phase. The value is a UNIX timestamp in milliseconds.

1767225650000

stateType

string

The current change status of the sub-phase.

FINISHED

userId

string

The ID of the user that triggered the change.

user-123

userType

string

The type of the account that triggered the change.

customer

ownerId

string

The ID of the Alibaba Cloud account to which the account that triggered the change belongs.

1234567890123456

userInfo

string

The additional user information for internal calls, represented as a JSON string.

{"innerapi":true}

metaNow

string

The instance information after the change, represented as a JSON string.

["192.0.2.1","198.51.100.2","203.0.113.3"]

metaOld

string

The instance information before the change, represented as a JSON string.

["192.0.2.1/32","198.51.100.2/32","203.0.113.3/32"]

Examples

Success response

JSON format

{
  "RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6F******",
  "Result": [
    {
      "actionName": "RestartInstance",
      "actionParams": {
        "force": "true"
      },
      "actionResultAccessList": [
        "shuttle"
      ],
      "endTime": 1767225660000,
      "instanceId": "es-cn-nif24adwc0082****",
      "process": "100%",
      "recordDiff": {
        "nodeAmount": {
          "old": "2",
          "now": "3"
        }
      },
      "recordIds": [
        "scheduled-task-example-001"
      ],
      "requestId": "request-123",
      "startTime": 1767225600000,
      "stateType": "FINISHED",
      "statusInfo": [
        {
          "subState": "rolling",
          "nodeCount": 5,
          "completeNodeCount": 3,
          "exception": "Task execution timed out.",
          "latencyMills": 1000,
          "process": "100%",
          "startTime": 1767225600000,
          "endTime": 1767225660000,
          "stateType": "FINISHED",
          "subStatusInfo": [
            {
              "subState": "clusterStateWait",
              "nodeCount": 5,
              "completeNodeCount": 3,
              "exception": "Task execution timed out.",
              "latencyMills": 1000,
              "process": "100%",
              "startTime": 1767225610000,
              "endTime": 1767225650000,
              "stateType": "FINISHED"
            }
          ]
        }
      ],
      "userId": "user-123",
      "userType": "customer",
      "ownerId": "1234567890123456",
      "userInfo": "{\"innerapi\":true}",
      "metaNow": "[\"192.0.2.1\",\"198.51.100.2\",\"203.0.113.3\"]",
      "metaOld": "[\"192.0.2.1/32\",\"198.51.100.2/32\",\"203.0.113.3/32\"]"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.