Lists the auto scaling configurations for a function.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListScalingConfigs |
list |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/scaling-configs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
No |
The function name. |
my-func |
| nextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. |
MTIzNCNhYmM= |
| limit |
integer |
No |
The number of auto scaling configurations to return. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
| ListScalingConfigsOutput |
The list of auto scaling configurations. |
Examples
Success response
JSON format
{
"nextToken": "next_token",
"scalingConfigs": [
{
"functionArn": "acs:fc:cn-shanghai:124:functions/myFunction/prod",
"residentPoolId": "fc-pool-a2b664c1f87171j4******",
"minInstances": 1,
"currentInstances": 1,
"currentError": "image not found",
"targetInstances": 10,
"enableOnDemandScaling": true,
"scheduledPolicies": [
{
"name": "student_app_shop_analyzer",
"startTime": "1764432000000",
"endTime": "1633449590000",
"target": 5,
"scheduleExpression": "。",
"timeZone": "。"
}
],
"horizontalScalingPolicies": [
{
"name": "test",
"startTime": "2023-03-10T10:10:10Z",
"endTime": "2024-03-10T10:10:10Z",
"metricType": "CPUUtilization",
"metricTarget": 0.6,
"minInstances": 1,
"maxInstances": 10,
"timeZone": "Asia/Shanghai"
}
],
"enableMixMode": true,
"requestDispatchPolicy": "Balanced"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.