UpgradeEngineVersion

Updated at:

Upgrades the version of an Elasticsearch instance, supporting version upgrades and kernel version upgrades.

Operation description

Note

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

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

none

*Instance

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

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:

  • true: performs a check.

  • false: does not perform a check. This is the default value.

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:

  • engineVersion: major engine version upgrade. This is the default value.

  • aliVersion: kernel version upgrade.

Valid values:

  • engineVersion
  • aliVersion

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: installs the plug-in.

  • false: uninstalls the plug-in.

true

updateStrategy

string

No

The update strategy. Valid values:

  • blue_green: blue-green update.

  • normal: in-place update.

  • intelligent: intelligent update.

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: cluster health status.

  • checkConfigCompatible: configuration compatibility status.

  • checkClusterResource: resource space status.

  • checkClusterSnapshot: snapshot existence.

checkClusterHealth

validateResult

array<object>

The check information.

object

errorType

string

The error type. Valid values:

  • clusterStatus: cluster health status.

  • clusterConfigYml: cluster YML file.

  • clusterConfigPlugins: cluster configuration file.

  • clusterResource: cluster resources.

  • clusterSnapshot: cluster snapshot.

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: passed.

  • failed: not passed.

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.