Menonaktifkan pemanggilan fungsi. Anda juga dapat menghentikan semua permintaan yang sedang berlangsung. Saat fungsi dinonaktifkan, instans baru tidak dapat dibuat dan instans yang telah disediakan akan dihancurkan. OpenAPI ini berada dalam versi beta.
Deskripsi operasi
Use caution when calling this API for functions in a production environment because disabling function invocations can disrupt your services.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:DisableFunctionInvocation |
update |
*Function
|
None | None |
Sintaks permintaan
POST /2023-03-30/functions/{functionName}/invoke/disable HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
No |
Nama fungsi yang akan dinonaktifkan. |
helloworld |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Parameter permintaan untuk menonaktifkan pemanggilan fungsi. |
|
| reason |
string |
No |
The reason for disabling the function invocation. |
Business decommissioned |
| abortOngoingRequest |
boolean |
No |
Specifies whether to immediately stop all ongoing requests. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response for successfully disabling a function invocation. |
||
| success |
boolean |
Indicates whether the function invocation was successfully disabled. |
true |
Contoh
Respons sukses
JSONformat
{
"success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.