Data Management (DMS) provides a visualized operation console and allows you to perform online API debugging and call DMS API operations by using Alibaba Cloud SDKs or Alibaba Cloud CLI. We recommend that you select an appropriate operation and integration method based on your business requirements to improve your development efficiency with DMS.
Overview of the DMS API
Alibaba Cloud provides OpenAPI Explorer to help you learn about and use API operations. OpenAPI Explorer integrates multiple features related to API operations, such as intelligent search, documentation, online debugging, SDK download, sample code, error diagnosis, and call statistics. In OpenAPI Explorer, you can call the API operations of Alibaba Cloud services and view API requests and responses. OpenAPI Explorer also automatically generates the corresponding SDK sample code to facilitate the use of Alibaba Cloud services. For more information, see What is an API?
Supported version
Alibaba Cloud APIs use version numbers to manage the versions of cloud service APIs.
For example, DMS supports the API of the 2018-11-01
version. 2018-11-01
is an API version number instead of a date. Users are provided with the latest public information about the API. 2018-11-01
is the up-to-date version of the DMS API.
Feature | API version | Description |
DMS | Recommended. |
Online debugging
DMS provides features such as API debugging in OpenAPI Explorer. Before you call API operations, you must understand the following information provided by DMS: the API version, endpoints, API style, and request methods.
Debugging pages
Feature | API version | Page |
DMS |
Endpoints
DMS
Select an endpoint based on the region where your resource resides to reduce latency.
For example, if your instance resides in the China (Zhangjiakou) region and is deployed in a virtual private cloud (VPC), specify dms-enterprise-vpc.cn-zhangjiakou.aliyuncs.com
as the endpoint. For more information, see Endpoints.
Supported identities
By default, after you log on to OpenAPI Explorer by using your Alibaba Cloud account, the Alibaba Cloud account is used to perform online debugging. An Alibaba Cloud account has permissions on all API operations. Using an Alibaba Cloud account to debug API operations online is a high-risk operation. We recommend that you call API operations or perform routine O&M as a RAM user. Before you call API operations as a RAM user, grant the required permissions to the RAM user based on your business requirements. The RAM user must have the required permissions to use DMS. For more information, see Use RAM to implement access control.
User identity | Supported |
Yes | |
RAM user (recommended) | Yes |
RAM role (recommended) | Yes |
Integration methods
Integration overview
You can integrate DMS with your business systems by using different integration methods such as SDKs based on your business requirements.
Alibaba Cloud SDKs can be easily integrated into applications. We recommend that you use Alibaba Cloud SDKs to call API operations.
DMS
Method | Supported |
Alibaba Cloud SDK (recommended) | Yes |
Yes | |
Yes (partially supported) | |
No | |
Custom API encapsulation (not recommended) | Yes |
Alibaba Cloud SDKs
Alibaba Cloud provides SDKs for multiple programming languages, such as Java, C#, Go, Python, TypeScript, Node.js, PHP, and C++. You can integrate the SDKs with your business systems to directly call API operations. SDKs encapsulate information including the signature logic, timeout mechanism, and retry mechanism and return structured response objects based on specifications, which provide convenience for developers. For more information, see Alibaba Cloud SDKs.
For information about the programming languages and dependencies supported by DMS SDKs, see DMS SDKs.
Alibaba Cloud CLI
Alibaba Cloud CLI allows you to use
aliyun
commands to interact with other Alibaba Cloud services to manage your Alibaba Cloud resources. For more information about Alibaba Cloud CLI, see What is Alibaba Cloud CLI?You can use Alibaba Cloud CLI to call the API operations of DMS. For more information, see Command syntax.
ROS
ROS is an Alibaba Cloud service that allows you to manage cloud computing resources in a simplified manner. You can compile stack templates to describe cloud computing resources, such as Elastic Compute Service (ECS) and ApsaraDB RDS instances, and the dependencies between the resources in the templates. The ROS engine automatically creates and configures all resources in a stack based on a template to implement automated deployment and O&M. For more information, see What is ROS?
You can use ROS to call the API operations of DMS. The following DMS-specific resource types are supported by ROS:
ALIYUN::DMS::Instance: registers an instance with DMS.
ALIYUN::DMS::User: adds a DMS user.
For more information about how to use ROS to orchestrate DMS resources with efficiency, see Work with ROS.
Custom API encapsulation
To make native HTTP calls, you must create custom requests and sign the requests. For more information about the signature method, see List of operations by function and Request syntax and signature method V3.
Usage notes
DMS
If an API operation call returns an error, check parameters and values in the request based on the error code. For more information about error codes, see Error codes.
You can also use Alibaba Cloud OpenAPI Diagnostics to perform self-service diagnostics based on the returned request ID or SDK error information.