Query Backup and Log

Last updated: 2017-12-26 17:01:28


1. API Description

This API (GetCdbExportLogUrl) is used to query the download addresses of data and logs of cloud database instances.
Domain for API request: cdb.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is GetCdbExportLogUrl.

Parameter Name Required Type Description
cdbInstanceId Yes String Instance ID, such as: cdb-c1nl9rpv. It is identical to the instance ID displayed in the Cloud Database console page and can be obtained using API Query List of Instances. Its value equals to the uInstanceId field value in the output parameter.
type Yes String Log type; passable value: coldbackup (cold backup), binlog (binary log) and slowlog_day (slow query log)

3. Output Parameters

Parameter Name Type Description
code Int Common error code; 0: Succeeded; other values: Failed. For more information, please refer to Common Error Codes on the Error Code page.
message String Module error message description depending on API.
codeDesc String Error description
data Array Returned collection of export addresses
The data parameter is constructed as follows:
Parameter Name Type Description
data.file_name String Name of the backup file
data.size Int Size of the backup file in bytes
data.date String Backup time of the snapshot, with time format: 2016-03-17 02:10:37
data.in_url String Download address in the private network
data.type String Specific type of log; possible values are mysql (logic cold backup), xtrabackup (physical cold backup), binlog (binary log), and slowlog (slow query log)

4. Error Codes

The following error codes only include the business logic error codes for this API.

Error Code Error Message Error Description
9000 SystemError System internal error
9003 InvalidParameter Incorrect parameter
9006 InternalError Database internal error
9013 InternalError System internal error
9016 InternalError DES system internal error
9544 OperationDenied Instance does not exist
9572 InstanceNotExists Instance does not exist
9576 OperationDenied Unable to operate because the instance is not running
9593 IncorrectInstanceStatus Abnormal instance status

5. Example


&<Common request parameters>


            "date":"2016-03-17 02:10:37",
            "date":"2016-03-18 02:17:01",
            "date":"2016-03-19 02:33:27",
            "date":"2016-03-20 01:58:37",
            "date":"2016-03-21 02:01:23",