tencent cloud

RenewClusters
Last updated:2025-11-13 20:51:21
RenewClusters
Last updated: 2025-11-13 20:51:21

1. API Description

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

This API is used to renew the cluster.

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: RenewClusters.
Version Yes String Common Params. The value used for this API: 2019-01-07.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
ClusterId Yes String Cluster ID.
TimeSpan Yes Float Renewal period.
TimeUnit Yes String Time unit, such as y, m, d, h, i, and s.
DealMode No Integer "Transaction mode. 0 - place an order and pay; 1 - place an order."

3. Output Parameters

Parameter Name Type Description
BigDealIds Array of String Prepaid total order number.
DealNames Array of String Refund order number.
TranId String Frozen flow. One frozen flow is activated at a time.
ResourceIds Array of String Delivery resource id list corresponding to each order number.
ClusterIds Array of String List of Cluster IDs
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 Renew a Cluster

This example shows you how to renew a cluster.

Input Example

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

{
    "TimeUnit": "m",
    "DealMode": 0,
    "ClusterId": "cynosdbmysql-grhvkwd",
    "TimeSpan": 1
}

Output Example

{
    "Response": {
        "BigDealIds": [
            "20241223054076837313781",
            "20241223054076837313781"
        ],
        "ClusterIds": [
            "cynosdbmysql-b6sy2i0oi"
        ],
        "DealNames": [
            "20241223054076837520111",
            "20241223054076837520121"
        ],
        "RequestId": "623f7cc5-ce5f-4f11-ad96-97bd07dad332",
        "ResourceIds": [
            "cynosdbmysql-ins-bx72i9ws",
            "cynosdbmysql-ins-i8g3n8xq"
        ],
        "TranId": ""
    }
}

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
FailedOperation.DatabaseAccessError Failed to access the database. Please try again later. If the problem persists, please contact customer service.
FailedOperation.FlowCreateError Failed to create a task. Try again later. If the problem persists, contact customer service.
FailedOperation.TradeCreateOrderError Failed to create the order and make a payment. Please try again later. If the problem persists, please contact customer service.
InternalError.DbOperationFailed Failed to query the database.
InternalError.UnknownError Unknown internal error.
InvalidParameterValue.ClusterNotFound No cluster found.
InvalidParameterValue.InvalidParameterValueError Invalid parameter value.
InvalidParameterValue.InvalidRegionIdError The region is invalid.
OperationDenied.ClusterOpNotAllowedError The current cluster does not allow the operation.
ResourceNotFound.ClusterNotFoundError The cluster does not exist.
ResourceUnavailable.InstanceLockFail Failed to lock the instance, so the operation cannot be performed temporarily.
ResourceUnavailable.InstanceStatusAbnormal The instance is exceptional, so the operation cannot be performed temporarily.
UnauthorizedOperation.PermissionDenied CAM authentication failed.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback