UpgradeEngineVersion
Upgrades the version of an Elasticsearch instance, supporting version upgrades and kernel version upgrades.
Operation description
The instance version upgrade feature currently only supports upgrading from version 5.5.3 to 5.6.16, from 5.6.16 to 6.3.2, and from 6.3.2 to 6.7.0. Upgrades between other versions are not supported. For more information, see Upgrade versions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpgradeEngineVersion |
none |
*Instance
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/actions/upgrade-version HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-n6w1o1x0w001c**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| dryRun |
boolean |
No |
Specifies whether to perform a pre-upgrade check. Valid values:
Warning A version upgrade check involves the cluster YML file, plug-in configurations, cluster status, indexes, and resources. Perform a pre-upgrade check before the upgrade to avoid potential issues.
|
false |
| body |
object |
No |
The request body. |
|
| version |
string |
No |
The version after the upgrade. If type is set to engineVersion, the value is the instance version, such as 6.7. If type is set to aliVersion, the value is the kernel version, such as ali1.2.0. |
6.7 |
| type |
string |
No |
The upgrade type. Valid values:
Valid values:
|
engineVersion |
| plugins |
array<object> |
No |
The list of plug-in configurations to install or uninstall during the version upgrade. |
|
|
object |
No |
|||
| name |
string |
No |
The name of the plug-in. |
dynamic-name |
| version |
string |
No |
The Elasticsearch version corresponding to the plug-in, such as 7.16.2. |
7.16.2 |
| fileVersion |
string |
No |
The file version of the plug-in. For more information, see the response of ListUserPlugin. |
CAEQaRiBgIDI2tie6hkiIGIwM2I3MjZmNjk3YzR*** |
| enable |
string |
No |
Specifies whether to install the plug-in. Valid values:
|
true |
| updateStrategy |
string |
No |
The update strategy. Valid values:
|
blue_green |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DC***** |
| Result |
array<object> |
The returned result. |
|
|
array<object> |
|||
| validateType |
string |
The check type. Valid values:
|
checkClusterHealth |
| validateResult |
array<object> |
The check information. |
|
|
object |
|||
| errorType |
string |
The error type. Valid values:
|
clusterStatus |
| errorCode |
string |
The error code. |
ClusterStatusNotHealth |
| errorMsg |
string |
The error message. |
The cluster status is not health |
| status |
string |
Specifies whether the check is passed. Valid values:
|
success |
Examples
Success response
JSON format
{
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DC*****",
"Result": [
{
"validateType": "checkClusterHealth",
"validateResult": [
{
"errorType": "clusterStatus",
"errorCode": "ClusterStatusNotHealth",
"errorMsg": "The cluster status is not health"
}
],
"status": "success"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.