Uninstalls a plug-in.
Debugging
Request headers
This operation uses only common request headers and does not have operation-specific request headers. For more information, see the "Common request parameters" section of the "Common parameters" topic.
Request syntax
POST /openapi/logstashes/{InstanceId}/plugins/actions/uninstall HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
InstanceId | String | Path | Yes | ls-cn-oew1qbgl**** |
The ID of the instance. |
clientToken | String | Query | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
String | Body | No | ["logstash-input-datahub", "logstash-input-maxcompute" ] |
The list of plug-ins to be uninstalled, in the format of |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | F99407AB-2FA9-489E-A259-40CF6DCC**** |
The ID of the request. |
Result | Array of String | ["logstash-input-datahub", "logstash-input-maxcompute" ] |
The list of plug-ins that have been uninstalled. |
The returned data also contains the Headers parameter, which indicates that the header information is returned.
Examples
Sample requests
POST /openapi/logstashes/ls-cn-oew1qbgl****/plugins/actions/uninstall?clientToken=5A2CFF0E-5718-45B5-9D4D-70B3FF**** HTTP/1.1
Host:elasticsearch.aliyuncs.com
Content-Type:application/json
["logstash-input-datahub", "logstash-input-maxcompute" ]
Sample success responses
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Result" : [ "logstash-input-datahub", "logstash-input-maxcompute" ],
"RequestId" : "63EB9CD3-7652-4CFD-B38C-6413BCEC****",
"Headers" : { }
}
Error codes
For a list of error codes, visit the API Error Center.