1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ElasticsearchUpdatePluginsOperation
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.ElasticsearchUpdatePluginsOperation

Explore with Pulumi AI

Provides a resource to update elasticsearch plugins

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const updatePluginsOperation = new tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation", {
    forceRestart: false,
    forceUpdate: true,
    installPluginLists: ["analysis-pinyin"],
    instanceId: "es-xxxxxx",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

update_plugins_operation = tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation",
    force_restart=False,
    force_update=True,
    install_plugin_lists=["analysis-pinyin"],
    instance_id="es-xxxxxx")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewElasticsearchUpdatePluginsOperation(ctx, "updatePluginsOperation", &tencentcloud.ElasticsearchUpdatePluginsOperationArgs{
			ForceRestart: pulumi.Bool(false),
			ForceUpdate:  pulumi.Bool(true),
			InstallPluginLists: pulumi.StringArray{
				pulumi.String("analysis-pinyin"),
			},
			InstanceId: pulumi.String("es-xxxxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var updatePluginsOperation = new Tencentcloud.ElasticsearchUpdatePluginsOperation("updatePluginsOperation", new()
    {
        ForceRestart = false,
        ForceUpdate = true,
        InstallPluginLists = new[]
        {
            "analysis-pinyin",
        },
        InstanceId = "es-xxxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticsearchUpdatePluginsOperation;
import com.pulumi.tencentcloud.ElasticsearchUpdatePluginsOperationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var updatePluginsOperation = new ElasticsearchUpdatePluginsOperation("updatePluginsOperation", ElasticsearchUpdatePluginsOperationArgs.builder()
            .forceRestart(false)
            .forceUpdate(true)
            .installPluginLists("analysis-pinyin")
            .instanceId("es-xxxxxx")
            .build());

    }
}
Copy
resources:
  updatePluginsOperation:
    type: tencentcloud:ElasticsearchUpdatePluginsOperation
    properties:
      forceRestart: false
      forceUpdate: true
      installPluginLists:
        - analysis-pinyin
      instanceId: es-xxxxxx
Copy

Create ElasticsearchUpdatePluginsOperation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ElasticsearchUpdatePluginsOperation(name: string, args: ElasticsearchUpdatePluginsOperationArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchUpdatePluginsOperation(resource_name: str,
                                        args: ElasticsearchUpdatePluginsOperationArgs,
                                        opts: Optional[ResourceOptions] = None)

@overload
def ElasticsearchUpdatePluginsOperation(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        instance_id: Optional[str] = None,
                                        elasticsearch_update_plugins_operation_id: Optional[str] = None,
                                        force_restart: Optional[bool] = None,
                                        force_update: Optional[bool] = None,
                                        install_plugin_lists: Optional[Sequence[str]] = None,
                                        plugin_type: Optional[float] = None,
                                        remove_plugin_lists: Optional[Sequence[str]] = None)
func NewElasticsearchUpdatePluginsOperation(ctx *Context, name string, args ElasticsearchUpdatePluginsOperationArgs, opts ...ResourceOption) (*ElasticsearchUpdatePluginsOperation, error)
public ElasticsearchUpdatePluginsOperation(string name, ElasticsearchUpdatePluginsOperationArgs args, CustomResourceOptions? opts = null)
public ElasticsearchUpdatePluginsOperation(String name, ElasticsearchUpdatePluginsOperationArgs args)
public ElasticsearchUpdatePluginsOperation(String name, ElasticsearchUpdatePluginsOperationArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchUpdatePluginsOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ElasticsearchUpdatePluginsOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ElasticsearchUpdatePluginsOperationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ElasticsearchUpdatePluginsOperationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ElasticsearchUpdatePluginsOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ElasticsearchUpdatePluginsOperationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ElasticsearchUpdatePluginsOperation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ElasticsearchUpdatePluginsOperation resource accepts the following input properties:

InstanceId This property is required. string
Instance id.
ElasticsearchUpdatePluginsOperationId string
ID of the resource.
ForceRestart bool
Whether to force a restart. Default is false.
ForceUpdate bool
Whether to reinstall, default value false.
InstallPluginLists List<string>
List of plugins that need to be installed.
PluginType double
Plugin type. 0: system plugin.
RemovePluginLists List<string>
List of plugins that need to be uninstalled.
InstanceId This property is required. string
Instance id.
ElasticsearchUpdatePluginsOperationId string
ID of the resource.
ForceRestart bool
Whether to force a restart. Default is false.
ForceUpdate bool
Whether to reinstall, default value false.
InstallPluginLists []string
List of plugins that need to be installed.
PluginType float64
Plugin type. 0: system plugin.
RemovePluginLists []string
List of plugins that need to be uninstalled.
instanceId This property is required. String
Instance id.
elasticsearchUpdatePluginsOperationId String
ID of the resource.
forceRestart Boolean
Whether to force a restart. Default is false.
forceUpdate Boolean
Whether to reinstall, default value false.
installPluginLists List<String>
List of plugins that need to be installed.
pluginType Double
Plugin type. 0: system plugin.
removePluginLists List<String>
List of plugins that need to be uninstalled.
instanceId This property is required. string
Instance id.
elasticsearchUpdatePluginsOperationId string
ID of the resource.
forceRestart boolean
Whether to force a restart. Default is false.
forceUpdate boolean
Whether to reinstall, default value false.
installPluginLists string[]
List of plugins that need to be installed.
pluginType number
Plugin type. 0: system plugin.
removePluginLists string[]
List of plugins that need to be uninstalled.
instance_id This property is required. str
Instance id.
elasticsearch_update_plugins_operation_id str
ID of the resource.
force_restart bool
Whether to force a restart. Default is false.
force_update bool
Whether to reinstall, default value false.
install_plugin_lists Sequence[str]
List of plugins that need to be installed.
plugin_type float
Plugin type. 0: system plugin.
remove_plugin_lists Sequence[str]
List of plugins that need to be uninstalled.
instanceId This property is required. String
Instance id.
elasticsearchUpdatePluginsOperationId String
ID of the resource.
forceRestart Boolean
Whether to force a restart. Default is false.
forceUpdate Boolean
Whether to reinstall, default value false.
installPluginLists List<String>
List of plugins that need to be installed.
pluginType Number
Plugin type. 0: system plugin.
removePluginLists List<String>
List of plugins that need to be uninstalled.

Outputs

All input properties are implicitly available as output properties. Additionally, the ElasticsearchUpdatePluginsOperation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ElasticsearchUpdatePluginsOperation Resource

Get an existing ElasticsearchUpdatePluginsOperation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ElasticsearchUpdatePluginsOperationState, opts?: CustomResourceOptions): ElasticsearchUpdatePluginsOperation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        elasticsearch_update_plugins_operation_id: Optional[str] = None,
        force_restart: Optional[bool] = None,
        force_update: Optional[bool] = None,
        install_plugin_lists: Optional[Sequence[str]] = None,
        instance_id: Optional[str] = None,
        plugin_type: Optional[float] = None,
        remove_plugin_lists: Optional[Sequence[str]] = None) -> ElasticsearchUpdatePluginsOperation
func GetElasticsearchUpdatePluginsOperation(ctx *Context, name string, id IDInput, state *ElasticsearchUpdatePluginsOperationState, opts ...ResourceOption) (*ElasticsearchUpdatePluginsOperation, error)
public static ElasticsearchUpdatePluginsOperation Get(string name, Input<string> id, ElasticsearchUpdatePluginsOperationState? state, CustomResourceOptions? opts = null)
public static ElasticsearchUpdatePluginsOperation get(String name, Output<String> id, ElasticsearchUpdatePluginsOperationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:ElasticsearchUpdatePluginsOperation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ElasticsearchUpdatePluginsOperationId string
ID of the resource.
ForceRestart bool
Whether to force a restart. Default is false.
ForceUpdate bool
Whether to reinstall, default value false.
InstallPluginLists List<string>
List of plugins that need to be installed.
InstanceId string
Instance id.
PluginType double
Plugin type. 0: system plugin.
RemovePluginLists List<string>
List of plugins that need to be uninstalled.
ElasticsearchUpdatePluginsOperationId string
ID of the resource.
ForceRestart bool
Whether to force a restart. Default is false.
ForceUpdate bool
Whether to reinstall, default value false.
InstallPluginLists []string
List of plugins that need to be installed.
InstanceId string
Instance id.
PluginType float64
Plugin type. 0: system plugin.
RemovePluginLists []string
List of plugins that need to be uninstalled.
elasticsearchUpdatePluginsOperationId String
ID of the resource.
forceRestart Boolean
Whether to force a restart. Default is false.
forceUpdate Boolean
Whether to reinstall, default value false.
installPluginLists List<String>
List of plugins that need to be installed.
instanceId String
Instance id.
pluginType Double
Plugin type. 0: system plugin.
removePluginLists List<String>
List of plugins that need to be uninstalled.
elasticsearchUpdatePluginsOperationId string
ID of the resource.
forceRestart boolean
Whether to force a restart. Default is false.
forceUpdate boolean
Whether to reinstall, default value false.
installPluginLists string[]
List of plugins that need to be installed.
instanceId string
Instance id.
pluginType number
Plugin type. 0: system plugin.
removePluginLists string[]
List of plugins that need to be uninstalled.
elasticsearch_update_plugins_operation_id str
ID of the resource.
force_restart bool
Whether to force a restart. Default is false.
force_update bool
Whether to reinstall, default value false.
install_plugin_lists Sequence[str]
List of plugins that need to be installed.
instance_id str
Instance id.
plugin_type float
Plugin type. 0: system plugin.
remove_plugin_lists Sequence[str]
List of plugins that need to be uninstalled.
elasticsearchUpdatePluginsOperationId String
ID of the resource.
forceRestart Boolean
Whether to force a restart. Default is false.
forceUpdate Boolean
Whether to reinstall, default value false.
installPluginLists List<String>
List of plugins that need to be installed.
instanceId String
Instance id.
pluginType Number
Plugin type. 0: system plugin.
removePluginLists List<String>
List of plugins that need to be uninstalled.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.