Membuat aturan fungsi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:PutFunctionOnDemandConfig |
create |
*All Resource
|
None | None |
Sintaks permintaan
PUT /2021-04-06/services/{serviceName}/functions/{functionName}/on-demand-config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
demo-service |
| functionName |
string |
Yes |
Nama fungsi. |
demo-function |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
Yes |
Alias layanan atau versi terbaru. Versi lain tidak didukung. |
prod |
| body |
object |
No |
Badan permintaan. |
|
| maximumInstanceCount |
integer |
Yes |
The maximum number of on-demand instances. For more information, see Configure provisioned instances and auto scaling rules. |
10 |
| If-Match |
string |
No |
Jika ETag yang ditentukan di permintaan cocok dengan nilai ETag objek, objek dan 200 OK akan dikembalikan. Jika tidak, 412 Precondition Failed akan dikembalikan. |
e19d5cd5af0378da05f63f891c7467af |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Pengatur waktu saat fungsi dipanggil. Nilainya dalam format EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
ID unik jejak. |
r9s89isisi**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| resource |
string |
The description of the resource. |
12345#servierName#qualifier#functionName |
| maximumInstanceCount |
integer |
The maximum number of instances. |
10 |
Contoh
Respons sukses
JSONformat
{
"resource": "12345#servierName#qualifier#functionName",
"maximumInstanceCount": 10
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.