関数のオートスケーリング設定をリストします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
fc:ListScalingConfigs |
list |
*All Resource
|
なし | なし |
リクエスト構文
GET /2023-03-30/scaling-configs HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| functionName |
string |
任意 |
関数名。 |
my-func |
| nextToken |
string |
任意 |
次のリクエストで結果の新しいページを取得するために使用されるページネーショントークン。 |
MTIzNCNhYmM= |
| limit |
integer |
任意 |
返すオートスケーリング設定の数。 |
20 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
| ListScalingConfigsOutput |
オートスケーリング設定のリスト。 |
例
成功レスポンス
JSONJSON
{
"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"
}
]
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。