tencent cloud

Feedback

DescribeBackupRecords

Last updated: 2023-09-19 17:36:54

1. API Description

Domain name for API request: tcaplusdb.tencentcloudapi.com.

This API is used to query backup records.

When querying the cluster level, set TableGroupId to -1 and TableName to -1.
When querying the cluster and table group levels, set TableName to -1.
When querying the cluster, table group, and table levels, both TableGroupId and TableName cannot be set to -1.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeBackupRecords.
Version Yes String Common Params. The value used for this API: 2019-08-23.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ClusterId No String Cluster ID, which is used to query a specified cluster
Limit No Integer Number of results per page
Offset No Integer Page offset
TableGroupId No String Table group ID used as a filter condition
TableName No String Table name used as a filter condition

3. Output Parameters

Parameter Name Type Description
BackupRecords Array of BackupRecords Backup record details
TotalCount Integer Number of returned entries
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying the list of cluster operation applications

Input Example

POST / HTTP/1.1
Host: tcaplusdb.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBackupRecords
<Common request parameters>

{
    "Limit": 1,
    "ClusterId": "xx",
    "TableGroupId": "xx",
    "TableName": "xx",
    "Offset": 1
}

Output Example

{
    "Response": {
        "TotalCount": 92,
        "BackupRecords": [
            {
                "BackupBatchTime": "xx",
                "AppId": 1,
                "TableName": "xx",
                "ZoneId": 1,
                "BackupType": "xx",
                "FileTag": "xx",
                "ShardCount": 1,
                "BackupExpireTime": "xx",
                "BackupSuccRate": "xx",
                "BackupFileSize": 1
            }
        ],
        "RequestId": "xx"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure.UnauthorizedOperation API operation authentication error.
FailedOperation.RegionMismatch The requested region does not match.
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Incorrect parameter value.
ResourceNotFound The resource does not exist.