tencent cloud

TencentDB for MySQL

StartCpuExpand

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-06-09 16:30:34

1. API Description

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

This API is used to enable CPU Elastic Scaling, including one-time manual scale-out and automatic elastic scaling.

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: StartCpuExpand.
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 Instance ID, which can be obtained through the DescribeDBInstances API.
Type Yes String Scale-out type supports auto-scaling and custom scaling.
Description: 1. auto means automatic scaling. 2. manual means custom scaling with immediate effect. 3. timeInterval means custom scaling by time. 4. period means custom scaling by cycle.
ExpandCpu No Integer Number of CPU cores for scale-out during customization.
Description: 1. This parameter is required when Type is set to manual, timeInterval, or period. 2. The maximum number of CPU cores to increase is the current instance's CPU core number. For example, an 8-core 16GB instance can scale out up to 8 CPU cores, with a range of 1 - 8.
AutoStrategy No AutoStrategy Automatic scale-out policy. This parameter is required when Type is set to auto.
TimeIntervalStrategy No TimeIntervalStrategy Scaling policy by time period.
Description: When Type is timeInterval, TimeIntervalStrategy is required.
PeriodStrategy No PeriodStrategy Scale by cycle.
Description: When Type is period, PeriodStrategy is required.

3. Output Parameters

Parameter Name Type Description
AsyncRequestId String Asynchronous Task ID. Call the API DescribeAsyncRequest and input the ID to query the task execution progress.
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 Enable elastic scaling

The customer can call this API for one-time instance expansion of the CPU core number.

Input Example

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

{
    "InstanceId": "cdb-himitj11",
    "Type": "manual",
    "ExpandCpu": 4
}

Output Example

{
    "Response": {
        "AsyncRequestId": "841592f6-dd318344-aea19230-38912726",
        "RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7"
    }
}

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.InstanceTaskConflictError An error occurred due to instance task conflict.
FailedOperation.NotChangeStrategy No policy modification detected
InternalError.UnknownError Unknown error
InvalidParameter.ExceptionParam Parameter exception.
InvalidParameterValue.InvalidParameterValueError Invalid parameter value
MissingParameter.MissingParamError Required parameters are missing.
UnsupportedOperation.NotSupportNormalInstance The current operation is not supported for instances with no resource usage limit.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック