All Products
Search
Document Center

ApsaraDB for MongoDB:Integration overview

Last Updated:Jun 08, 2026

ApsaraDB for MongoDB provides a visual console and supports programmatic integration through API operations, SDKs, Alibaba Cloud CLI, Terraform, and ROS.ApsaraDB for MongoDB

API operations

Alibaba Cloud OpenAPI Explorer lets you search, debug, and call API operations online, and generates SDK sample code.What is an API?

API versions

API version numbers indicate major versions. The current version forApsaraDB for MongoDB is 2015-12-01. Despite its date-like format, this number does not reflect the last update date.

API version number

Description

2015-12-01

Recommended.

Online debugging

ApsaraDB for MongoDB supports API debugging in OpenAPI Explorer. Before calling an API operation, review its version, endpoint, and calling method inApsaraDB for MongoDB.

For example, the CreateDBInstance operation page lists API categories on the left, a parameter form (RegionId, ZoneId, Engine, EngineVersion, DBInstanceClass, DBInstanceStorage, etc.) in the middle, and reference documentation on the right. Click Initiate Call to run the request.

OpenAPI online debugging - International site

Debugging page

Debug API operations at: https://api.alibabacloud.com/api/Dds/2015-12-01/.

Endpoints

Select an endpoint based on the region of your resource. For example, anApsaraDB for MongoDB instance in the China (Zhangjiakou) region uses public endpointmongodb.cn-zhangjiakou.aliyuncs.com and VPC endpointmongodb-vpc.cn-zhangjiakou.aliyuncs.com.

  • Public endpoints are accessible globally.

  • VPC endpoints are accessible only within the VPC in the corresponding region and offer these benefits:

    • Higher security and privacy.

    • Lower latency by avoiding public Internet overhead.

    • Lower cost through internal network communication.

Endpoints.

Supported identities

OpenAPI Explorer uses your Alibaba Cloud account for debugging by default. Because an Alibaba Cloud account has full API permissions, we recommend that you use a RAM user for routine API calls and O&M. Grant the RAM user the required permissions on ApsaraDB for MongoDB instances. Use RAM to implement access control. The following table lists the supported user identities.

User identity

Supported

Alibaba Cloud account

Yes

RAM user (recommended)

Yes

RAM role (recommended)

Yes

Integration methods

ApsaraDB for MongoDB supports the following integration methods.

Integration method

Supported

Alibaba Cloud SDK (recommended)

Yes

Alibaba Cloud CLI

Yes

Terraform

Yes

ROS

Yes

Custom encapsulation

Yes

SDKs

  • Alibaba Cloud provides SDKs for Java, C#, Go, Python, TypeScript, Node.js, PHP, and C++. The SDKs handle signature logic, timeouts, and retries, and return structured response objects. Alibaba Cloud SDKs.

  • OpenAPI Explorer generates SDK code samples for calling ApsaraDB for MongoDB API operations. Supported languages and dependencies:ApsaraDB for MongoDB SDK.

Alibaba Cloud CLI

Terraform

ROS

Custom encapsulation

If none of the preceding methods meet your requirements, you can manually encapsulate API requests. This method is not recommended. Request syntax and signature method V3.

Error handling

If an API call returns an error, check your request parameters against the returned error code in the Error Code Center.

For self-service troubleshooting, use the Alibaba Cloud OpenAPI Diagnostics platform with the RequestID from the response or SDK error details.