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.
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 |
| 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. |
View auto scaling policy list
POST / HTTP/1.1
Host: tse.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAutoScalerResourceStrategies
<Common request parameters>
{
"GatewayId": "gateway-4a34cf5f"
}
{
"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"
}
}
]
}
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários