Membuat konfigurasi plug-in.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreatePluginConfig |
create |
*Gateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
ID unik gerbang. |
gw-ubuwqygbq4783gqb2y3f87q**** |
| PluginId |
integer |
Yes |
ID plug-in gerbang. |
20 |
| ConfigLevel |
integer |
Yes |
Cakupan aplikasi plug-in. Nilai valid:
|
1 |
| Config |
string |
No |
Konfigurasi plug-in. Konten konfigurasi plug-in WebAssembly (Wasm) dalam format YAML. Konten konfigurasi plug-in Lua adalah kode Lua. |
|
| Enable |
boolean |
Yes |
Apakah plug-in diaktifkan. |
true |
| ResourceIdList |
array |
No |
ID domain atau ID entri rute. Keduanya dibedakan berdasarkan ConfigLevel. |
|
|
integer |
No |
The ID. |
200 |
|
| AcceptLanguage |
string |
No |
Bahasa untuk menampilkan hasil. Nilai valid: zh dan en. zh menunjukkan bahasa Tionghoa, yang merupakan nilai default. en menunjukkan bahasa Inggris. |
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
The request ID. |
03A3E2F4-6804-5663-9D5D-2EC47A1***** |
| PluginConfigID |
integer |
The plug-in configuration ID. |
10 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "03A3E2F4-6804-5663-9D5D-2EC47A1*****",
"PluginConfigID": 10
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.