Queries the major version and minor version of an ApsaraDB for Redis instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeEngineVersion

The operation that you want to perform. Set the value to DescribeEngineVersion.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance. You can call the DescribeInstances operation to obtain it.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed. You can call the DescribeRegions operation to query IDs of available regions.

Response parameters

Parameter Type Example Description
EnableUpgradeMajorVersion Boolean false

Indicates whether the major version can be upgraded. Valid values:

  • true: the major version can be upgraded.
  • false: the major version is the latest version and cannot be upgraded.
Note To upgrade the major version, call the ModifyInstanceMajorVersion operation.
EnableUpgradeMinorVersion Boolean true

Indicates whether the minor version can be upgraded. Valid values:

  • true: the minor version can be upgraded.
  • false: the minor version is the latest version and cannot be upgraded.
Note To upgrade the minor version, call the ModifyInstanceMinorVersion operation.
Engine String redis

The database engine. Valid values: redis and memcache.

IsLatestVersion Boolean false

Indicates whether the minor version is the latest version. Valid values:

  • true: the minor version is the latest one.
  • false: the minor version is not the latest one.
MajorVersion String 5.0

The major version of the ApsaraDB for Redis instance.

MinorVersion String redis-5.0-enterprise_1.4.8

The minor version of the ApsaraDB for Redis instance.

RequestId String A52974D1-9D57-4805-86CC-92E6EDE8****

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=DescribeEngineVersion            

Sample success responses

XML format

<DescribeEngineVersionResponse>
      <MajorVersion>5.0</MajorVersion>
      <IsLatestVersion>false</IsLatestVersion>
      <RequestId>A52974D1-9D57-4805-86CC-92E6EDE8****</RequestId>
      <MinorVersion>redis-5.0-enterprise_1.4.8</MinorVersion>
      <Engine>redis</Engine>
      <EnableUpgradeMinorVersion>true</EnableUpgradeMinorVersion>
      <EnableUpgradeMajorVersion>false</EnableUpgradeMajorVersion>
</DescribeEngineVersionResponse>

JSON format

{
    "MajorVersion": "5.0",
    "IsLatestVersion": false,
    "RequestId": "A52974D1-9D57-4805-86CC-92E6EDE8****",
    "MinorVersion": "redis-5.0-enterprise_1.4.8",
    "Engine": "redis",
    "EnableUpgradeMinorVersion": true,
    "EnableUpgradeMajorVersion": false
}

Error codes

For a list of error codes, visit the API Error Center.