You can call this operation to query the engine versions to which an ApsaraDB for MongoDB instance can be upgraded.

Debugging

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

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeAvailableEngineVersion

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

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the region ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String 52507B6B-003B-47A3-A0A3-9FE992C7A243

The ID of the request.

EngineVersions List {"EngineVersion": ["4.0" ]}

The list of one or more engine versions to which an ApsaraDB for MongoDB instance can be upgraded.

Note An empty string is returned if the latest version is being used.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/? Action=DescribeAvailableEngineVersion
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<DescribeAvailableEngineVersionResponse>
	  <EngineVersions>
		    <EngineVersion>4.0</EngineVersion>
	  </EngineVersions>
	  <RequestId>52507B6B-003B-47A3-A0A3-9FE992C7A243</RequestId>
</DescribeAvailableEngineVersionResponse>

JSON format

{
	"EngineVersions": {
		"EngineVersion": [
			"4.0"
		]
	},
	"RequestId": "52507B6B-003B-47A3-A0A3-9FE992C7A243"
}

Error codes

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