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

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
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Action String No DescribeAvailableEngineVersion

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

Response parameters

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

The ID of the request.

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

The engine versions that the ApsaraDB for MongoDB instance can be upgraded to.

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

The engine version that the ApsaraDB for MongoDB instance can be upgraded to.

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

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

Error codes

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