Data Transmission Service (DTS) provides a visual console and other ways to call the service, such as online debugging by using OpenAPI, the Alibaba Cloud SDK, and . To improve your development efficiency with DTS, we recommend that you choose the operation and integration methods that best suit your needs.
OpenAPI Explorer
Alibaba Cloud provides OpenAPI Explorer for efficiently learning and using the APIs of cloud services. OpenAPI Explorer is a comprehensive tool that includes intelligent API search, documentation, online debugging, SDK generation, code samples, error diagnosis, and call statistics. You can use OpenAPI Explorer to call the APIs of various Alibaba Cloud services and view the requests and responses. OpenAPI Explorer also automatically generates SDK sample code to help you get started quickly. For more information, see What is OpenAPI?.
Versions
Alibaba Cloud OpenAPI uses version numbers to manage the APIs for major versions of its cloud products. For example, DTS currently supports the 2020-01-01 API version. The string 2020-01-01 represents an API version number, not a date. The displayed data is the latest public API data. This does not mean that the APIs have remained unchanged since 2020-01-01.
|
Version |
Description |
|
Recommended. |
|
|
Not recommended. These API versions support a limited number of operations and are incomplete. |
|
Online debugging
DTS provides API debugging features in OpenAPI Explorer. Before you call an API, note its supported versions, endpoints, and integration methods.
If your source or destination instance is a self-managed database, you must add the IP addresses of the DTS servers to the database's security settings. To obtain these IP addresses, call the DescribeDTSIP operation. In the left-side navigation pane of OpenAPI Explorer, select DescribeDTSIP. In the parameter configuration section, select a Service Address, such as China (Hangzhou), and enter the request parameters: RegionId (for example, cn-hangzhou), SourceEndpointRegion (required, the region of the source instance), and DestinationEndpointRegion (the region of the destination instance). Then, click Initiate Call.

Debugging URL
You can debug API operations at the following URL: https://next.api.alibabacloud.com/api/Dts/2020-01-01/
Endpoints
To minimize latency, connect to the endpoint in the region where your resources are located. For example, for resources in the China (Zhangjiakou) region, the public and VPC endpoints are dts.cn-zhangjiakou.aliyuncs.com and dts-vpc.cn-zhangjiakou.aliyuncs.com, respectively.
-
Public endpoints are accessible from anywhere in the world.
-
A VPC endpoint is accessible only from a VPC in the corresponding Alibaba Cloud region. VPC endpoints offer the following advantages:
-
High security: A VPC endpoint can be accessed only from within a VPC, providing enhanced security and privacy.
-
Faster response: By operating on a VPC's internal network, a VPC endpoint typically offers faster response times than a public endpoint and avoids public network latency and bandwidth limitations.
-
Lower cost: VPC endpoints use internal network communication, which can reduce data transfer costs.
-
For more information, see Endpoints.
User identity
When you log on to OpenAPI Explorer, it uses your current account to debug APIs by default. Because an Alibaba Cloud account has full access to all APIs, using it for debugging is a security risk. We strongly recommend that you create and use a RAM user for API access and routine O&M. Grant permissions to the RAM user based on your business needs before making API calls. The RAM user must have the required permissions to operate DTS. For more information, see RAM Authorization.
|
User identity |
Support status |
|
Supported |
|
|
RAM user (recommended) |
Supported |
|
RAM role (recommended) |
Supported |
More information
Integration methods
DTS provides multiple integration methods, such as SDKs. You can select an integration method based on your business requirements.
|
Integration method |
Support status |
|
Alibaba Cloud SDK (recommended) |
Supported |
|
Alibaba Cloud CLI |
Not supported |
|
Terraform |
Not supported |
|
Resource Orchestration Service (ROS) |
Not supported |
|
Custom encapsulation |
Supported |
Alibaba Cloud SDK
-
Alibaba Cloud provides an SDK for various programming languages, including Java, C#, Go, Python, TypeScript, PHP, and C++. You can integrate the SDK into your application to call APIs directly. The SDK handles common tasks like signing logic, timeouts, and retries, and returns structured response objects, which simplifies development. For more information about the Alibaba Cloud SDK, see Alibaba Cloud SDK.
-
For information about the programming languages and dependencies supported by the DTS SDK, see DTS SDK.
Custom API encapsulation
If none of the preceding methods meet your business requirements, you can encapsulate API requests yourself. This method is not recommended. For more information, see V3 request structure and signature.
Usage notes
If an API call fails, use the returned error code to verify that your request parameters and values are valid. For more information, see the Error Code Center.
Alternatively, you can note down the returned request ID or SDK error messages, and use the Alibaba Cloud OpenAPI Diagnostic Platform to run a self-diagnosis.