Operasi EnableFunctionInvocation memungkinkan suatu fungsi untuk dipanggil dan melanjutkan pembuatan instance yang telah disediakan (provisioned). Operasi ini saat ini berada dalam pratinjau pribadi (private preview).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:EnableFunctionInvocation |
update |
*Function
|
None | None |
Sintaks permintaan
POST /2023-03-30/functions/{functionName}/invoke/enable HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
No |
Nama fungsi yang ingin Anda izinkan untuk pemanggilan. |
helloworld |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
Contoh
Respons sukses
JSONformat
{
"success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.