ListActionRecords
Queries change records and change details.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListActionRecords |
get |
*Instance
|
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.