All Products
Search
Document Center

AnalyticDB:Integration overview

Last Updated:Mar 28, 2026

AnalyticDB for MySQL provides five ways to call API operations, from fully managed SDKs to direct HTTP requests. Before making your first API call, confirm the API version, endpoint, and authentication identity that match your cluster edition and network setup.

OpenAPI Explorer

OpenAPI Explorer is a browser-based tool for exploring and testing AnalyticDB for MySQL API operations. It provides intelligent search, online debugging, SDK download, sample code, error diagnostics, and call statistics — all in one place.

API versions

AnalyticDB for MySQL uses two API versions. Select the one that matches your cluster edition.

API versionCluster editions
2019-03-15Data Warehouse Edition
2021-12-01Enterprise Edition, Basic Edition, and Data Lakehouse Edition

Online debugging

OpenAPI Explorer supports online debugging for all AnalyticDB for MySQL API operations. Before you start, confirm your cluster's API version, endpoint, and integration method.

image

Debugging pages

Open the debugging page that corresponds to your cluster edition.

Cluster editionDebugging page
Data Warehouse EditionAPI debugging page for Data Warehouse Edition
Enterprise Edition, Basic Edition, and Data Lakehouse EditionAPI debugging page for Data Lakehouse Edition

Version number

Description

Data Warehouse Edition

API debugging entry point for Data Warehouse Edition clusters

Data Lakehouse Edition

API debugging entry point for Data Lakehouse Edition clusters

Endpoints

Select an endpoint based on the region where your cluster resides to reduce latency.

Endpoint types

TypeAccess scopeAdvantages
Public endpointAccessible globallyAvailable from any network
Virtual Private Cloud (VPC) endpointAccessible only from within a VPCHigher security, faster response, lower cost

Endpoint format

Public:  adb.<region-id>.aliyuncs.com
VPC:     adb-vpc.<region-id>.aliyuncs.com

For example, for a cluster in the China (Zhangjiakou) region:

  • Public endpoint: adb.cn-zhangjiakou.aliyuncs.com

  • VPC endpoint: adb-vpc.cn-zhangjiakou.aliyuncs.com

For Data Warehouse Edition endpoints, see Endpoints. For Enterprise Edition, Basic Edition, and Data Lakehouse Edition, see the topics of specific API operations.

Supported identities

Use a Resource Access Management (RAM) user or RAM role for API calls and routine O&M. An Alibaba Cloud account has unrestricted access to all API operations — if compromised, an attacker gains full control of your resources. RAM users and RAM roles limit the blast radius through scoped permissions.

IdentitySupportedNotes
Alibaba Cloud accountYesHigh risk: has permissions for all API operations
RAM userYes (recommended)Scope-limited permissions reduce blast radius
RAM roleYes (recommended)Scope-limited permissions reduce blast radius

Before using a RAM user, grant the required AnalyticDB for MySQL permissions based on your business requirements. For details, see RAM authorization.

Integration methods

Five integration methods are available. Choose based on how much control you need versus how much you want the tooling to handle for you.

Integration methodBest forTrade-offs
Alibaba Cloud SDKs (recommended)Application integration in any supported languageHandles authentication, signature generation, and error handling for you — less boilerplate, simpler integration path
Alibaba Cloud CLIAd-hoc operations, scripting, and automation from the command lineNo application code required; less suitable for programmatic integration in applications
TerraformInfrastructure-as-code workflows and reproducible environment provisioningRequires learning Terraform's configuration language; not suited for ad-hoc calls
ROSAlibaba Cloud-native resource orchestration and stack-based deploymentTightly integrated with Alibaba Cloud services; does not support non-Alibaba Cloud resources
Custom encapsulationFull control over HTTP requests when no SDK or CLI fits your environmentMaximum flexibility; you must construct requests and manage signatures manually

Alibaba Cloud SDKs

Alibaba Cloud SDKs are available in Java, C#, Go, Python, TypeScript, Node.js, PHP, and C++. They abstract authentication, signature rules, and error handling, so you call wrapper functions directly without managing low-level HTTP details.

Alibaba Cloud CLI

Alibaba Cloud CLI lets you run aliyun commands to manage Alibaba Cloud resources from the terminal. It suits scripting and one-off operations where writing application code is not necessary.

Terraform

Terraform is an open source infrastructure-as-code tool for provisioning and managing cloud resources. It calls API operations by interpreting configuration templates, so you can version-control your infrastructure and apply changes predictably.

ROS

Resource Orchestration Service (ROS) is an Alibaba Cloud-native service for managing cloud resources through stack templates. Describe your resources — such as Elastic Compute Service (ECS) instances and ApsaraDB RDS instances — and their dependencies in a template, and the ROS engine provisions and configures everything automatically.

Custom encapsulation

Use custom encapsulation when you need to make native HTTP calls outside of any SDK or CLI. You construct the request and sign it manually. For the signature method, see Request syntax and signature method V3.

Usage notes

If an API call returns an error, check whether the request parameters and their values are valid based on the returned error code. For a full list of error codes, see Service error codes.Error Code CenterError Code Center

For self-service diagnostics, use the Alibaba Cloud OpenAPI Diagnostics platform with the request ID or SDK error information from the failed call.

Notes

If an error is returned after you call an API, use the returned error code to check whether the request parameters and their values are correct. For more information, see Error Code Center.

You can also record the RequestID or the SDK error message from the response and use the Alibaba Cloud OpenAPI Diagnostic Platform for self-service diagnostics.

Basic information

Version guide

Version number

Description

2019-03-15

Use this version to call APIs for Data Warehouse Edition clusters.

2021-12-01

Use this version to call APIs for Enterprise Edition, Basic Edition, and Data Lakehouse Edition clusters.

Endpoint description

To minimize latency, select an endpoint based on the region where your cluster is located.

For example, the VPC endpoint for the China (Zhangjiakou) region is adb-vpc.cn-zhangjiakou.aliyuncs.com. For more information, see Endpoints.

User identity

User identity

Supported features

Alibaba Cloud account

Support

RAM user (Recommended)

Supported

RAM role (Recommended)

Support

Supported call methods

Call method

Support

Description

Alibaba Cloud SDK (Recommended)

Support

For information about the supported languages and how to install dependencies for the AnalyticDB for MySQL SDK, see AnalyticDB for MySQL SDK.

Cloud Assistant CLI

Support

For more information about using the Alibaba Cloud CLI to call AnalyticDB for MySQL APIs, see Alibaba Cloud CLI.

Resource Orchestration

Support

For information about how to use Resource Orchestration Service to call the OpenAPI of AnalyticDB for MySQL, see Resource Orchestration.

Terraform

Support

For information about how to use Terraform to call the OpenAPI of AnalyticDB for MySQL, see Terraform.

If none of the preceding methods meet your business requirements, you can encapsulate requests to call the OpenAPI on your own. This method is not recommended. For more information, see Custom encapsulation.