Mengambil konfigurasi penskalaan untuk suatu fungsi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetScalingConfig |
get |
*全部资源
|
None | None |
Sintaks permintaan
GET /2023-03-30/functions/{functionName}/scaling-config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
No |
Nama fungsi. |
my-func |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
Alias fungsi. |
LATEST |
Elemen respons
|
Element |
Type |
Description |
Example |
| ScalingConfigStatus |
Konfigurasi penskalaan. |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.