tencent cloud

Feedback

DescribeCloneList

Last updated: 2024-11-20 11:14:36

    1. API Description

    Domain name for API request: cdb.intl.tencentcloudapi.com.

    This API is used to query the clone task list of an instance.

    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: DescribeCloneList.
    Version Yes String Common Params. The value used for this API: 2017-03-20.
    Region Yes String Common Params. For more information, please see the list of regions supported by the product.
    InstanceId Yes String ID of the original instance. This parameter is used to query the clone task list of a specific original instance.
    Offset No Integer Paginated query offset. Default value: 0.
    Limit No Integer Number of results per page. Default value: 20.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer The number of results which meet the conditions
    Items Array of CloneItem Clone task list
    RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Querying the clone task list

    This example shows you how to query the clone task list.

    Input Example

    POST / HTTP/1.1
    Host: cdb.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCloneList
    <Common request parameters>
    
    {
        &InstanceId=cdb-9303wd4x
    }
    

    Output Example

    {
        "Response": {
            "TotalCount": 2,
            "RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
            "Items": [
                {
                    "SrcInstanceId": "cdb-4bblpca3",
                    "RollbackTargetTime": "2019-11-15 12:34:56",
                    "CloneJobId": 80,
                    "SrcRegionId": 0,
                    "TaskStatus": "initial",
                    "NewRegionId": 8,
                    "RollbackStrategy": "test",
                    "StartTime": "2019-12-26 18:05:42",
                    "DstInstanceId": "cdb-9ubfzt6x",
                    "EndTime": ""
                },
                {
                    "SrcInstanceId": "cdb-4bblpca3",
                    "RollbackTargetTime": "2019-11-15 16:13:31",
                    "CloneJobId": 81,
                    "SrcRegionId": 4,
                    "TaskStatus": "initial",
                    "StartTime": "2019-12-26 17:16:58",
                    "RollbackStrategy": "backupset",
                    "NewRegionId": 0,
                    "DstInstanceId": "cdb-awbsatzq",
                    "EndTime": ""
                }
            ]
        }
    }
    

    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
    CdbError Backend or process error.
    CdbError.DatabaseError Backend database error.
    InternalError.UnknownError Unknown error