Help & Documentation>TencentDB for MySQL

API 2.0 to 3.0 Switch Guide

Last updated: 2023-09-04 14:14:31

TencentDB for MySQL fully upgraded the API service to v3.0 on January 1, 2018 (UTC+8). Because API 2.0 has a higher access latency and is more complicated to use, technical support has been discontinued for API 2.0, which has been deactivated on March 31, 2023 (UTC+8).
We recommend you upgrade to TencentDB for MySQL API 3.0 as soon as possible to avoid affecting your business.
When using the API 3.0 service, you can go to the SDK Center to obtain the SDKs for multiple programming languages. Besides, API Explorer can be used to directly generate codes for you to call SDKs.
You can refer to the API 2.0 and 3.0 comparison table below, where you can find the new APIs you need to upgrade and complete the upgrade accordingly.

List of APIs switched from v2.0 to v3.0

API 2.0 Interface
API 3.0 Interface
API 3.0 Documentation
Input Parameter Change
DescribeCdbInstances
DescribeDBInstances
Queries the list of instances. For more information, see DescribeDBInstances.
To reduce complexity, some parameters have changed. Please refer to the relevant API documentation for details.
QueryCdbStatisticsInfo
GetAppStat
This API has been deprecated. To obtain the instance monitoring information, call GetMonitorData. For more information, see GetMonitorData.
No changes.
DescribeDBInstancesV3
DescribeDBInstances
Queries the list of instances. For more information, see DescribeDBInstances.
No changes.
GetCdbExportLogUrl
GetDownloadUrl
This API can be replaced with APIs in the production environment.

type = slowlog_day: Queries slow logs. For more information, see DescribeSlowLogs.
type = errlog_day: Queries the error logs of an instance. For more information, see DescribeErrorLogData.
type = coldbackup: Queries the list of data backups. For more information, see DescribeBackups.
type = binlog: Queries the list of log backups. For more information, see DescribeBinlogs.
In order to make the API easier to use, some parameters have been changed as described in:
RenewCdb
RenewDBInstance
Renews a TencentDB instance. For more information, see ModifyNameOrDescByDpId.
To reduce complexity, some parameters have changed. Please refer to the relevant API documentation for details.