获取函数弹性配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
fc:GetScalingConfig |
get |
*全部资源
|
无 | 无 |
请求语法
GET /2023-03-30/functions/{functionName}/scaling-config HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| functionName |
string |
否 |
函数名称 |
my-func |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| qualifier |
string |
否 |
函数别名 |
LATEST |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| ScalingConfigStatus |
弹性配置信息 |
示例
正常返回示例
JSON格式
{
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?