tencent cloud

TDSQL Boundless

ExpandInstance

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-05-27 16:17:47

1. API Description

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

This API is used to horizontally scale out instances.

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: ExpandInstance.
Version Yes String Common Params. The value used for this API: 2021-11-22.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
InstanceId Yes String

Instance ID.

StorageNodeNum Yes Integer

Expand storage nodes to how many nodes. If no change, pass the current number of nodes

Zones.N No Array of String

Availability zone list

AZMode No Integer

az mode. 1: Single az 2: Multi-az non-primary az mode 3: Multi-az primary az mode

PrimaryAZ No String

AZMode 3 means the primary AZ

FullReplications No Integer

Number of replicas, value ranges from 1 to 3

3. Output Parameters

Parameter Name Type Description
FlowId Integer

Asynchronous task ID. You can call the Query Task API to get task status with this ID.

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 Scale Out a Two-Replica Instance

Input Example

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

{
    "InstanceId": "tdsql3-ecab00ac",
    "StorageNodeNum": 4,
    "Zones": [
        "ap-chengdu-1"
    ]
}

Output Example

{
    "Response": {
        "FlowId": 4295036759,
        "RequestId": "5b104d05-7e16-4869-87fe-dbd2e8f30b70"
    }
}

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.CamAuthError CAM authentication error.
AuthFailure.CheckCamAuthError CAM authentication request parameter check failed.
AuthFailure.UnauthorizedOperation CAM authentication failure.
FailedOperation.ExpandInstanceError Instance scale-out failed.
LimitExceeded.OutOfLimitError The specification exceeds the limit.
LimitExceeded.OutOfSpecLimitError The specification exceeds the limit.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan