tencent cloud

APIs

DescribeCPUExpandStrategyInfo

Download
Focus Mode
Font Size
Last updated: 2026-06-01 17:02:42

1. API Description

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

This API is used to query the CPU Elastic Scaling information 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: DescribeCPUExpandStrategyInfo.
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.

3. Output Parameters

Parameter Name Type Description
Type String Policy type. Output value: auto, manual, timeInterval, period.
Description: 1. auto means auto-scaling. 2. manual means custom scaling with immediate effect. 3. timeInterval means custom scaling by time. 4. period means custom scaling by cycle. 5. If the return is NULL, the elastic expansion strategy is not yet opened.
Note: This field may return null, indicating that no valid values can be obtained.
ExpandCpu Integer Custom expansion with CPU that takes effect immediately. Valid when Type is manual.
Note: This field may return null, indicating that no valid values can be obtained.
AutoStrategy AutoStrategy Auto scale-out policy. Valid when Type is auto.
Note: This field may return null, indicating that no valid values can be obtained.
PeriodStrategy PeriodStrategy Scaling policy by cycle. Valid when Type is period.
TimeIntervalStrategy TimeIntervalStrategy Scaling policy by time period. Valid when Type is timeInterval.
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 elastic expansion strategy of instance CPU

Input Example

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

{
    "InstanceId": "cdb-sad1dsfa"
}

Output Example

{
    "Response": {
        "Type": "auto",
        "ExpandCpu": 4,
        "AutoStrategy": {
            "ExpandThreshold": 0,
            "ShrinkThreshold": 0,
            "ExpandPeriod": 0,
            "ShrinkPeriod": 0
        },
        "RequestId": "sasd8asf-f78asd-fas8-dga9-gdfadf1234"
    }
}

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.RemoteCallUnmarshalError Cross-region deserialization failed for the high-availability service.
InternalError.DBRecordNotExistError The database instance does not exist.
InternalError.ExecHttpRequestError Failed to execute the HTTP request
InternalError.UnknownError Unknown error
InvalidParameter.JsonUnmarshalError Failed to deserialize JSON.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback