Mengambil konfigurasi instans on-demand.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetFunctionOnDemandConfig |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /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. |
demoFunction |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
Yes |
Alias layanan atau LATEST. Versi lain tidak didukung. |
prod |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Format nilainya adalah: 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. |
asdf**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| 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.