InstallUserPlugins

Updated at:

Installs user-defined custom plugins that have been uploaded to the Elasticsearch console.

Operation description

Note

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

elasticsearch:InstallUserPlugins

none

*Instance

acs:elasticsearch:{#regionId}:{#accountId}:instances/{#instancesId}

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.

ParameterTypeRequiredExampleDescription
RequestBodyArray
└ nameStringYesanalysis-***The user-defined custom plugin that has been uploaded to the Elasticsearch console.
└ elasticsearchVersionStringYes8.17.0The Elasticsearch cluster version that the plugin is compatible with.
└ pluginTypeStringYesCUSTOM_PLUGINThe plugin type. Set the value to CUSTOM_PLUGIN.
└ descriptionStringYesThis plugin is for **The description of the plugin.
└ versionStringYes8.17.0The version of the plugin.
└ fileVersionStringYesCAEQnwIYgYDAzYfN***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.