InstallUserPlugins
Installs user-defined custom plugins that have been uploaded to the Elasticsearch console.
Operation description
For instances with the basic management and control (v2) architecture, the custom plugin installation feature is suspended. V3 architecture instances are not affected. If you urgently need to use this feature, submit a ticket to contact us.
To install a custom plugin, follow these steps:
Step 1: Call the PluginAnalysis operation to upload the plugin stored in OSS to the custom plugin repository. The plugin is then in the pending installation state.
Step 2: Call the ListUserPlugin operation to view the information about the plugins pending installation.
Step 3: Call the InstallUserPlugins operation to install the custom plugin. For the required input parameters of this operation, refer to the response of the ListUserPlugin operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:InstallUserPlugins |
none |
*Instance
|
None | None |
Request syntax
POST /openapi/instances/{InstanceId}/plugins/user/actions/install HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-i7m27ausp001l**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| force |
boolean |
No |
Specifies whether to forcibly install the user-defined custom plugin. Default value: false. Instances with the legacy architecture do not support forced installation. |
|
| body |
string |
No |
The list of custom plugins to install. |
[ { "elasticsearchVersion": "8.17.0", "pluginType": "CUSTOM_PLUGIN", "name": "analysis-stempel", "description": "The Stempel Analysis plugin is ***", "version": "8.17.0", "fileVersion": "CAEQnwIYgYDAzYfNj4oaI***" } ] |
RequestBody
You must also specify the following parameters in RequestBody to specify the list of custom plugins. You can obtain the following information from the ListUserPlugin operation.
| Parameter | Type | Required | Example | Description |
| RequestBody | Array | |||
| └ name | String | Yes | analysis-*** | The user-defined custom plugin that has been uploaded to the Elasticsearch console. |
| └ elasticsearchVersion | String | Yes | 8.17.0 | The Elasticsearch cluster version that the plugin is compatible with. |
| └ pluginType | String | Yes | CUSTOM_PLUGIN | The plugin type. Set the value to CUSTOM_PLUGIN. |
| └ description | String | Yes | This plugin is for ** | The description of the plugin. |
| └ version | String | Yes | 8.17.0 | The version of the plugin. |
| └ fileVersion | String | Yes | CAEQnwIYgYDAzYfN*** | The unique value of the plugin. You can obtain the value from the ListUserPlugin operation. |
└ indicates a child parameter.
Example:
[
{
"elasticsearchVersion": "8.17.0",
"pluginType": "CUSTOM_PLUGIN",
"name": "analysis-stempel",
"description": "The Stempel Analysis plugin is ***",
"version": "8.17.0",
"fileVersion": "CAEQnwIYgYDAzYfNj4oaI***"
}
]
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5FFD9ED4-C2EC-4E89-B22B-1ACB6F***** |
| Result |
array |
The list of user-defined custom plugins submitted for installation. |
|
|
string |
The list of plugins requested for installation. If the installation fails, the system returns the corresponding error code. Refer to the error code for troubleshooting. |
["pluginName1.zip", "pluginName2.zip"] |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6F*****",
"Result": [
"[\"pluginName1.zip\", \"pluginName2.zip\"]"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceActivating | Instance is activating. | Instance is activating. |
| 400 | InstanceNotFound | The instanceId provided does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.