Creates a plug-in configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreatePluginConfig |
create |
*Gateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
Yes |
The unique ID of the gateway. |
gw-ubuwqygbq4783gqb2y3f87q**** |
| PluginId |
integer |
Yes |
The ID of the gateway plug-in. |
20 |
| ConfigLevel |
integer |
Yes |
The application scope of the plug-in. Valid values:
|
1 |
| Config |
string |
No |
The plug-in configuration. The configuration content of a Wasm plug-in is in YAML format, and the configuration content of a Lua plug-in is Lua code. |
name: John age: 18 friends: - David - Anne |
| Enable |
boolean |
Yes |
Specifies whether to enable the plug-in. |
true |
| ResourceIdList |
array |
No |
The list of domain name IDs or route IDs. The specific type depends on the value of ConfigLevel. |
|
|
integer |
No |
The ID. |
200 |
|
| AcceptLanguage |
string |
No |
The language in which the response is displayed. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RestResult |
||
| RequestId |
string |
The request ID. |
03A3E2F4-6804-5663-9D5D-2EC47A1***** |
| PluginConfigID |
integer |
The ID of the plug-in configuration. |
10 |
Examples
Success response
JSON format
{
"RequestId": "03A3E2F4-6804-5663-9D5D-2EC47A1*****",
"PluginConfigID": 10
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.