Call the UninstallLogstashPlugin to uninstall the installed plug-in.
Debugging
Request header
This operation uses only common request headers. For more information, see Common parameters.
Request syntax
POST /openapi/logstashes/[InstanceId]/plugins/actions/uninstall HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
InstanceId | String | Yes | ls-cn-oew1qbgl**** |
The ID of the instance. |
clientToken | String | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
A unique token generated by the client to guarantee the idempotency of the request. The value of this parameter is generated by the client and is unique among different requests. The maximum length is 64 ASCII characters. |
RequestBody
You must enter the name of the plug-in to be uninstalled in the format of ["pluginName1","pluginName2",...,"pluginNamen"]
, as shown in the following example.
[
"logstash-input-datahub",
"logstash-input-maxcompute"
]
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F99407AB-2FA9-489E-A259-40CF6DCC**** |
The ID of the request. |
Result | List | ["logstash-input-datahub", "logstash-input-maxcompute" ] |
Returned results:
|
The returned data also contains the Headers parameter, indicating the returned header information.
Examples
Sample requests
POST /openapi/logstashes/ls-cn-oew1qbgl****/plugins/actions/uninstall HTTP/1.1
common request headers
[
"logstash-input-datahub", "logstash-input-maxcompute"
]
Sample success responses
JSON
Syntax
{
"Result": [
"logstash-input-datahub",
"logstash-input-maxcompute"
],
"RequestId": "63EB9CD3-7652-4CFD-B38C-6413BCEC****",
"Headers": {}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InstanceNotFound | The instanceId provided does not exist. | The error message returned because the instance cannot be found. Check the status of the instance. |
For a list of error codes, visit the API Error Center.