関数の弾性スケーリング設定を行います。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
fc:PutScalingConfig |
update |
*All Resource
|
なし | なし |
リクエスト構文
PUT /2023-03-30/functions/{functionName}/scaling-config HTTP/1.1
パスパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| functionName |
string |
任意 |
関数名 |
my-func |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| qualifier |
string |
任意 |
関数のエイリアス |
LATEST |
| body | PutScalingConfigInput |
任意 |
関数の弾性スケーリング設定 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
| ScalingConfigStatus |
関数の弾性スケーリング設定情報 |
例
成功レスポンス
JSONJSON
{
"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"
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。