tencent cloud

APIs

DescribeAutoScalerResourceStrategies

Focus Mode
Font Size
Last updated: 2026-05-08 14:54:24

1. API Description

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

View AS policy list

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: DescribeAutoScalerResourceStrategies.
Version Yes String Common Params. The value used for this API: 2020-12-07.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
GatewayId Yes String Gateway instance ID
StrategyId No String Policy ID

3. Output Parameters

Parameter Name Type Description
Result ListCloudNativeAPIGatewayStrategyResult Get the response result of the auto scaling policy list for the Cloud Native API gateway instance.
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 View Auto Scaling Policy List

View auto scaling policy list

Input Example

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

{
    "GatewayId": "gateway-4a34cf5f"
}

Output Example

{
    "Response": {
        "RequestId": "adc44984-762c-42e0-b39a-80777e5c3bcc",
        "Result": {
            "TotalCount": 1,
            "StrategyList": [
                {
                    "StrategyId": "strategy-7bb4fcb0",
"StrategyName": "Double 11 auto scaling policy",
                    "CreateTime": "2021-09-09 11:52:30",
                    "ModifyTime": "2021-09-09 11:52:30",
"Description": "Double 11 auto scaling policy"
                    "GatewayId": "gateway-4a34cf5f",
                    "Config": {
                        "AutoScalerId": "autoscaler-92aaca7b",
                        "StrategyId": "strategy-448e24f7",
                        "Enabled": true,
                        "MaxReplicas": 15,
                        "Metrics": [
                            {
                                "Type": "Resource",
                                "ResourceName": "cpu",
                                "TargetType": "Utilization",
                                "TargetValue": 50
                            },
                            {
                                "Type": "Pods",
                                "ResourceName": "tcp-connection-num",
                                "TargetType": "AverageValue",
                                "TargetValue": 5
                            }
                        ],
                        "CreateTime": "2023-03-08 16:57:18",
                        "ModifyTime": "2023-03-08 16:57:18"
                    },
                    "CronConfig": {
                        "StrategyId": "strategy-448e24f7",
                        "Enabled": true,
                        "Params": [
                            {
                                "Period": "",
                                "StartAt": "17:00",
                                "TargetReplicas": 0
                            }
                        ],
                        "CreateTime": "2023-03-08 16:57:18",
                        "ModifyTime": "2023-03-08 16:57:18"
                    }
                }
            ]
        }
    }
}

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 CAM signature/authentication error.
AuthFailure.UnauthorizedOperation Unauthorized operation error.
FailedOperation Operation failed.
FailedOperation.FailedOperation Operation failed.
FailedOperation.InternalError Operation failed. Internal error.
InternalError Internal error.
InternalError.CamNoAuth Insufficient permissions.
InternalError.CreateError Create an internal error.
InternalError.DecodeError Decoding error.
InternalError.InternalError Internal service error.
InternalError.QueryError Query internal error.
InternalError.UpdateError Refresh internal error.
InvalidParameterValue Parameter value error.
InvalidParameterValue.BadRequestFormat Request format incorrect.
InvalidParameterValue.InvalidParameterValue Invalid parameter value.
ResourceNotFound The resource does not exist.
ResourceNotFound.InstanceNotFound The instance does not exist.
ResourceNotFound.ResourceNotFound The resource does not exist.

Help and Support

Was this page helpful?

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

Feedback