tencentcloud.ElasticsearchInstance
Explore with Pulumi AI
Provides an elasticsearch instance resource.
Example Usage
Create a basic version of elasticsearch instance paid by the hour
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const availabilityZone = tencentcloud.getAvailabilityZonesByProduct({
product: "es",
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
vpcId: vpc.vpcId,
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
cidrBlock: "10.0.1.0/24",
});
const example = new tencentcloud.ElasticsearchInstance("example", {
instanceName: "tf_example_es",
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
version: "7.10.1",
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
password: "Test12345",
licenseType: "basic",
basicSecurityType: 2,
webNodeTypeInfos: [{
nodeNum: 1,
nodeType: "ES.S1.MEDIUM4",
}],
nodeInfoLists: [{
nodeNum: 2,
nodeType: "ES.S1.MEDIUM8",
encrypt: false,
}],
esAcl: {
whiteLists: ["127.0.0.1"],
},
cosBackup: {
isAutoBackup: true,
backupTime: "22:00",
},
tags: {
test: "test",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
availability_zone = tencentcloud.get_availability_zones_by_product(product="es")
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
vpc_id=vpc.vpc_id,
availability_zone=availability_zone.zones[0].name,
cidr_block="10.0.1.0/24")
example = tencentcloud.ElasticsearchInstance("example",
instance_name="tf_example_es",
availability_zone=availability_zone.zones[0].name,
version="7.10.1",
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id,
password="Test12345",
license_type="basic",
basic_security_type=2,
web_node_type_infos=[{
"node_num": 1,
"node_type": "ES.S1.MEDIUM4",
}],
node_info_lists=[{
"node_num": 2,
"node_type": "ES.S1.MEDIUM8",
"encrypt": False,
}],
es_acl={
"white_lists": ["127.0.0.1"],
},
cos_backup={
"is_auto_backup": True,
"backup_time": "22:00",
},
tags={
"test": "test",
})
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 {
availabilityZone, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Product: "es",
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
CidrBlock: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewElasticsearchInstance(ctx, "example", &tencentcloud.ElasticsearchInstanceArgs{
InstanceName: pulumi.String("tf_example_es"),
AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
Version: pulumi.String("7.10.1"),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
Password: pulumi.String("Test12345"),
LicenseType: pulumi.String("basic"),
BasicSecurityType: pulumi.Float64(2),
WebNodeTypeInfos: tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArray{
&tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArgs{
NodeNum: pulumi.Float64(1),
NodeType: pulumi.String("ES.S1.MEDIUM4"),
},
},
NodeInfoLists: tencentcloud.ElasticsearchInstanceNodeInfoListArray{
&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
NodeNum: pulumi.Float64(2),
NodeType: pulumi.String("ES.S1.MEDIUM8"),
Encrypt: pulumi.Bool(false),
},
},
EsAcl: &tencentcloud.ElasticsearchInstanceEsAclArgs{
WhiteLists: pulumi.StringArray{
pulumi.String("127.0.0.1"),
},
},
CosBackup: &tencentcloud.ElasticsearchInstanceCosBackupArgs{
IsAutoBackup: pulumi.Bool(true),
BackupTime: pulumi.String("22:00"),
},
Tags: pulumi.StringMap{
"test": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var availabilityZone = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Product = "es",
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
VpcId = vpc.VpcId,
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
CidrBlock = "10.0.1.0/24",
});
var example = new Tencentcloud.ElasticsearchInstance("example", new()
{
InstanceName = "tf_example_es",
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
Version = "7.10.1",
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
Password = "Test12345",
LicenseType = "basic",
BasicSecurityType = 2,
WebNodeTypeInfos = new[]
{
new Tencentcloud.Inputs.ElasticsearchInstanceWebNodeTypeInfoArgs
{
NodeNum = 1,
NodeType = "ES.S1.MEDIUM4",
},
},
NodeInfoLists = new[]
{
new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
{
NodeNum = 2,
NodeType = "ES.S1.MEDIUM8",
Encrypt = false,
},
},
EsAcl = new Tencentcloud.Inputs.ElasticsearchInstanceEsAclArgs
{
WhiteLists = new[]
{
"127.0.0.1",
},
},
CosBackup = new Tencentcloud.Inputs.ElasticsearchInstanceCosBackupArgs
{
IsAutoBackup = true,
BackupTime = "22:00",
},
Tags =
{
{ "test", "test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.ElasticsearchInstance;
import com.pulumi.tencentcloud.ElasticsearchInstanceArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceWebNodeTypeInfoArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceNodeInfoListArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceEsAclArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceCosBackupArgs;
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) {
final var availabilityZone = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.product("es")
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.cidrBlock("10.0.1.0/24")
.build());
var example = new ElasticsearchInstance("example", ElasticsearchInstanceArgs.builder()
.instanceName("tf_example_es")
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.version("7.10.1")
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.password("Test12345")
.licenseType("basic")
.basicSecurityType(2)
.webNodeTypeInfos(ElasticsearchInstanceWebNodeTypeInfoArgs.builder()
.nodeNum(1)
.nodeType("ES.S1.MEDIUM4")
.build())
.nodeInfoLists(ElasticsearchInstanceNodeInfoListArgs.builder()
.nodeNum(2)
.nodeType("ES.S1.MEDIUM8")
.encrypt(false)
.build())
.esAcl(ElasticsearchInstanceEsAclArgs.builder()
.whiteLists("127.0.0.1")
.build())
.cosBackup(ElasticsearchInstanceCosBackupArgs.builder()
.isAutoBackup(true)
.backupTime("22:00")
.build())
.tags(Map.of("test", "test"))
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
availabilityZone: ${availabilityZone.zones[0].name}
cidrBlock: 10.0.1.0/24
example:
type: tencentcloud:ElasticsearchInstance
properties:
instanceName: tf_example_es
availabilityZone: ${availabilityZone.zones[0].name}
version: 7.10.1
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
password: Test12345
licenseType: basic
basicSecurityType: 2
webNodeTypeInfos:
- nodeNum: 1
nodeType: ES.S1.MEDIUM4
nodeInfoLists:
- nodeNum: 2
nodeType: ES.S1.MEDIUM8
encrypt: false
esAcl:
whiteLists:
- 127.0.0.1
cosBackup:
isAutoBackup: true
backupTime: 22:00
tags:
test: test
variables:
availabilityZone:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: es
Create a basic version of elasticsearch instance for multi-availability zone deployment
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const availabilityZone = tencentcloud.getAvailabilityZonesByProduct({
product: "es",
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
vpcId: vpc.vpcId,
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
cidrBlock: "10.0.1.0/24",
});
const subnetMultiZone = new tencentcloud.Subnet("subnetMultiZone", {
vpcId: vpc.vpcId,
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[1]?.name),
cidrBlock: "10.0.2.0/24",
});
const exampleMultiZone = new tencentcloud.ElasticsearchInstance("exampleMultiZone", {
instanceName: "tf_example_es",
availabilityZone: "-",
version: "7.10.1",
vpcId: vpc.vpcId,
subnetId: "-",
password: "Test12345",
licenseType: "basic",
basicSecurityType: 2,
deployMode: 1,
multiZoneInfos: [
{
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[0]?.name),
subnetId: subnet.subnetId,
},
{
availabilityZone: availabilityZone.then(availabilityZone => availabilityZone.zones?.[1]?.name),
subnetId: subnetMultiZone.subnetId,
},
],
webNodeTypeInfos: [{
nodeNum: 1,
nodeType: "ES.S1.MEDIUM4",
}],
nodeInfoLists: [
{
type: "dedicatedMaster",
nodeNum: 3,
nodeType: "ES.S1.MEDIUM8",
encrypt: false,
},
{
type: "hotData",
nodeNum: 2,
nodeType: "ES.S1.MEDIUM8",
encrypt: false,
},
],
esAcl: {
whiteLists: ["127.0.0.1"],
},
tags: {
test: "test",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
availability_zone = tencentcloud.get_availability_zones_by_product(product="es")
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
vpc_id=vpc.vpc_id,
availability_zone=availability_zone.zones[0].name,
cidr_block="10.0.1.0/24")
subnet_multi_zone = tencentcloud.Subnet("subnetMultiZone",
vpc_id=vpc.vpc_id,
availability_zone=availability_zone.zones[1].name,
cidr_block="10.0.2.0/24")
example_multi_zone = tencentcloud.ElasticsearchInstance("exampleMultiZone",
instance_name="tf_example_es",
availability_zone="-",
version="7.10.1",
vpc_id=vpc.vpc_id,
subnet_id="-",
password="Test12345",
license_type="basic",
basic_security_type=2,
deploy_mode=1,
multi_zone_infos=[
{
"availability_zone": availability_zone.zones[0].name,
"subnet_id": subnet.subnet_id,
},
{
"availability_zone": availability_zone.zones[1].name,
"subnet_id": subnet_multi_zone.subnet_id,
},
],
web_node_type_infos=[{
"node_num": 1,
"node_type": "ES.S1.MEDIUM4",
}],
node_info_lists=[
{
"type": "dedicatedMaster",
"node_num": 3,
"node_type": "ES.S1.MEDIUM8",
"encrypt": False,
},
{
"type": "hotData",
"node_num": 2,
"node_type": "ES.S1.MEDIUM8",
"encrypt": False,
},
],
es_acl={
"white_lists": ["127.0.0.1"],
},
tags={
"test": "test",
})
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 {
availabilityZone, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Product: "es",
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
CidrBlock: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
subnetMultiZone, err := tencentcloud.NewSubnet(ctx, "subnetMultiZone", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
AvailabilityZone: pulumi.String(availabilityZone.Zones[1].Name),
CidrBlock: pulumi.String("10.0.2.0/24"),
})
if err != nil {
return err
}
_, err = tencentcloud.NewElasticsearchInstance(ctx, "exampleMultiZone", &tencentcloud.ElasticsearchInstanceArgs{
InstanceName: pulumi.String("tf_example_es"),
AvailabilityZone: pulumi.String("-"),
Version: pulumi.String("7.10.1"),
VpcId: vpc.VpcId,
SubnetId: pulumi.String("-"),
Password: pulumi.String("Test12345"),
LicenseType: pulumi.String("basic"),
BasicSecurityType: pulumi.Float64(2),
DeployMode: pulumi.Float64(1),
MultiZoneInfos: tencentcloud.ElasticsearchInstanceMultiZoneInfoArray{
&tencentcloud.ElasticsearchInstanceMultiZoneInfoArgs{
AvailabilityZone: pulumi.String(availabilityZone.Zones[0].Name),
SubnetId: subnet.SubnetId,
},
&tencentcloud.ElasticsearchInstanceMultiZoneInfoArgs{
AvailabilityZone: pulumi.String(availabilityZone.Zones[1].Name),
SubnetId: subnetMultiZone.SubnetId,
},
},
WebNodeTypeInfos: tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArray{
&tencentcloud.ElasticsearchInstanceWebNodeTypeInfoArgs{
NodeNum: pulumi.Float64(1),
NodeType: pulumi.String("ES.S1.MEDIUM4"),
},
},
NodeInfoLists: tencentcloud.ElasticsearchInstanceNodeInfoListArray{
&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
Type: pulumi.String("dedicatedMaster"),
NodeNum: pulumi.Float64(3),
NodeType: pulumi.String("ES.S1.MEDIUM8"),
Encrypt: pulumi.Bool(false),
},
&tencentcloud.ElasticsearchInstanceNodeInfoListArgs{
Type: pulumi.String("hotData"),
NodeNum: pulumi.Float64(2),
NodeType: pulumi.String("ES.S1.MEDIUM8"),
Encrypt: pulumi.Bool(false),
},
},
EsAcl: &tencentcloud.ElasticsearchInstanceEsAclArgs{
WhiteLists: pulumi.StringArray{
pulumi.String("127.0.0.1"),
},
},
Tags: pulumi.StringMap{
"test": pulumi.String("test"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var availabilityZone = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Product = "es",
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
VpcId = vpc.VpcId,
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
CidrBlock = "10.0.1.0/24",
});
var subnetMultiZone = new Tencentcloud.Subnet("subnetMultiZone", new()
{
VpcId = vpc.VpcId,
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[1]?.Name),
CidrBlock = "10.0.2.0/24",
});
var exampleMultiZone = new Tencentcloud.ElasticsearchInstance("exampleMultiZone", new()
{
InstanceName = "tf_example_es",
AvailabilityZone = "-",
Version = "7.10.1",
VpcId = vpc.VpcId,
SubnetId = "-",
Password = "Test12345",
LicenseType = "basic",
BasicSecurityType = 2,
DeployMode = 1,
MultiZoneInfos = new[]
{
new Tencentcloud.Inputs.ElasticsearchInstanceMultiZoneInfoArgs
{
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
SubnetId = subnet.SubnetId,
},
new Tencentcloud.Inputs.ElasticsearchInstanceMultiZoneInfoArgs
{
AvailabilityZone = availabilityZone.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[1]?.Name),
SubnetId = subnetMultiZone.SubnetId,
},
},
WebNodeTypeInfos = new[]
{
new Tencentcloud.Inputs.ElasticsearchInstanceWebNodeTypeInfoArgs
{
NodeNum = 1,
NodeType = "ES.S1.MEDIUM4",
},
},
NodeInfoLists = new[]
{
new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
{
Type = "dedicatedMaster",
NodeNum = 3,
NodeType = "ES.S1.MEDIUM8",
Encrypt = false,
},
new Tencentcloud.Inputs.ElasticsearchInstanceNodeInfoListArgs
{
Type = "hotData",
NodeNum = 2,
NodeType = "ES.S1.MEDIUM8",
Encrypt = false,
},
},
EsAcl = new Tencentcloud.Inputs.ElasticsearchInstanceEsAclArgs
{
WhiteLists = new[]
{
"127.0.0.1",
},
},
Tags =
{
{ "test", "test" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.ElasticsearchInstance;
import com.pulumi.tencentcloud.ElasticsearchInstanceArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceMultiZoneInfoArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceWebNodeTypeInfoArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceNodeInfoListArgs;
import com.pulumi.tencentcloud.inputs.ElasticsearchInstanceEsAclArgs;
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) {
final var availabilityZone = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.product("es")
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.cidrBlock("10.0.1.0/24")
.build());
var subnetMultiZone = new Subnet("subnetMultiZone", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[1].name()))
.cidrBlock("10.0.2.0/24")
.build());
var exampleMultiZone = new ElasticsearchInstance("exampleMultiZone", ElasticsearchInstanceArgs.builder()
.instanceName("tf_example_es")
.availabilityZone("-")
.version("7.10.1")
.vpcId(vpc.vpcId())
.subnetId("-")
.password("Test12345")
.licenseType("basic")
.basicSecurityType(2)
.deployMode(1)
.multiZoneInfos(
ElasticsearchInstanceMultiZoneInfoArgs.builder()
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.subnetId(subnet.subnetId())
.build(),
ElasticsearchInstanceMultiZoneInfoArgs.builder()
.availabilityZone(availabilityZone.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[1].name()))
.subnetId(subnetMultiZone.subnetId())
.build())
.webNodeTypeInfos(ElasticsearchInstanceWebNodeTypeInfoArgs.builder()
.nodeNum(1)
.nodeType("ES.S1.MEDIUM4")
.build())
.nodeInfoLists(
ElasticsearchInstanceNodeInfoListArgs.builder()
.type("dedicatedMaster")
.nodeNum(3)
.nodeType("ES.S1.MEDIUM8")
.encrypt(false)
.build(),
ElasticsearchInstanceNodeInfoListArgs.builder()
.type("hotData")
.nodeNum(2)
.nodeType("ES.S1.MEDIUM8")
.encrypt(false)
.build())
.esAcl(ElasticsearchInstanceEsAclArgs.builder()
.whiteLists("127.0.0.1")
.build())
.tags(Map.of("test", "test"))
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
availabilityZone: ${availabilityZone.zones[0].name}
cidrBlock: 10.0.1.0/24
subnetMultiZone:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
availabilityZone: ${availabilityZone.zones[1].name}
cidrBlock: 10.0.2.0/24
exampleMultiZone:
type: tencentcloud:ElasticsearchInstance
properties:
instanceName: tf_example_es
availabilityZone: '-'
version: 7.10.1
vpcId: ${vpc.vpcId}
subnetId: '-'
password: Test12345
licenseType: basic
basicSecurityType: 2
deployMode: 1
multiZoneInfos:
- availabilityZone: ${availabilityZone.zones[0].name}
subnetId: ${subnet.subnetId}
- availabilityZone: ${availabilityZone.zones[1].name}
subnetId: ${subnetMultiZone.subnetId}
webNodeTypeInfos:
- nodeNum: 1
nodeType: ES.S1.MEDIUM4
nodeInfoLists:
- type: dedicatedMaster
nodeNum: 3
nodeType: ES.S1.MEDIUM8
encrypt: false
- type: hotData
nodeNum: 2
nodeType: ES.S1.MEDIUM8
encrypt: false
esAcl:
whiteLists:
- 127.0.0.1
tags:
test: test
variables:
availabilityZone:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: es
Create ElasticsearchInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticsearchInstance(name: string, args: ElasticsearchInstanceArgs, opts?: CustomResourceOptions);
@overload
def ElasticsearchInstance(resource_name: str,
args: ElasticsearchInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticsearchInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_info_lists: Optional[Sequence[ElasticsearchInstanceNodeInfoListArgs]] = None,
vpc_id: Optional[str] = None,
version: Optional[str] = None,
password: Optional[str] = None,
kibana_public_access: Optional[str] = None,
cos_backup: Optional[ElasticsearchInstanceCosBackupArgs] = None,
elasticsearch_instance_id: Optional[str] = None,
es_acl: Optional[ElasticsearchInstanceEsAclArgs] = None,
es_public_acl: Optional[ElasticsearchInstanceEsPublicAclArgs] = None,
instance_name: Optional[str] = None,
availability_zone: Optional[str] = None,
license_type: Optional[str] = None,
multi_zone_infos: Optional[Sequence[ElasticsearchInstanceMultiZoneInfoArgs]] = None,
deploy_mode: Optional[float] = None,
charge_type: Optional[str] = None,
public_access: Optional[str] = None,
renew_flag: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
charge_period: Optional[float] = None,
basic_security_type: Optional[float] = None,
web_node_type_infos: Optional[Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]] = None)
func NewElasticsearchInstance(ctx *Context, name string, args ElasticsearchInstanceArgs, opts ...ResourceOption) (*ElasticsearchInstance, error)
public ElasticsearchInstance(string name, ElasticsearchInstanceArgs args, CustomResourceOptions? opts = null)
public ElasticsearchInstance(String name, ElasticsearchInstanceArgs args)
public ElasticsearchInstance(String name, ElasticsearchInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticsearchInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElasticsearchInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElasticsearchInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticsearchInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticsearchInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticsearchInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticsearchInstance 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 ElasticsearchInstance resource accepts the following input properties:
- Node
Info List<ElasticsearchLists Instance Node Info List> - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- Password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- Version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - Vpc
Id string - The ID of a VPC network.
- Availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - Basic
Security doubleType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - Charge
Period double - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - Cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- Deploy
Mode double - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - Elasticsearch
Instance stringId - ID of the resource.
- Es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- Es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- Instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- Kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - License
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - Multi
Zone List<ElasticsearchInfos Instance Multi Zone Info> - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - Public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - Renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - Subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Dictionary<string, string>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- Web
Node List<ElasticsearchType Infos Instance Web Node Type Info> - Visual node configuration.
- Node
Info []ElasticsearchLists Instance Node Info List Args - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- Password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- Version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - Vpc
Id string - The ID of a VPC network.
- Availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - Basic
Security float64Type - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - Charge
Period float64 - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - Cos
Backup ElasticsearchInstance Cos Backup Args - COS automatic backup information.
- Deploy
Mode float64 - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - Elasticsearch
Instance stringId - ID of the resource.
- Es
Acl ElasticsearchInstance Es Acl Args - Kibana Access Control Configuration.
- Es
Public ElasticsearchAcl Instance Es Public Acl Args - Public network access control list.
- Instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- Kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - License
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - Multi
Zone []ElasticsearchInfos Instance Multi Zone Info Args - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - Public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - Renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - Subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - map[string]string
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- Web
Node []ElasticsearchType Infos Instance Web Node Type Info Args - Visual node configuration.
- node
Info List<ElasticsearchLists Instance Node Info List> - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password String
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- version String
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id String - The ID of a VPC network.
- availability
Zone String - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security DoubleType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period Double - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- deploy
Mode Double - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Instance StringId - ID of the resource.
- es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- instance
Name String - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public StringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - license
Type String - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone List<ElasticsearchInfos Instance Multi Zone Info> - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - public
Access String - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag String - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id String - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Map<String,String>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- web
Node List<ElasticsearchType Infos Instance Web Node Type Info> - Visual node configuration.
- node
Info ElasticsearchLists Instance Node Info List[] - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id string - The ID of a VPC network.
- availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security numberType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period number - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- deploy
Mode number - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Instance stringId - ID of the resource.
- es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - license
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone ElasticsearchInfos Instance Multi Zone Info[] - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - {[key: string]: string}
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- web
Node ElasticsearchType Infos Instance Web Node Type Info[] - Visual node configuration.
- node_
info_ Sequence[Elasticsearchlists Instance Node Info List Args] - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password str
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- version str
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc_
id str - The ID of a VPC network.
- availability_
zone str - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic_
security_ floattype - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge_
period float - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos_
backup ElasticsearchInstance Cos Backup Args - COS automatic backup information.
- deploy_
mode float - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch_
instance_ strid - ID of the resource.
- es_
acl ElasticsearchInstance Es Acl Args - Kibana Access Control Configuration.
- es_
public_ Elasticsearchacl Instance Es Public Acl Args - Public network access control list.
- instance_
name str - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana_
public_ straccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - license_
type str - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi_
zone_ Sequence[Elasticsearchinfos Instance Multi Zone Info Args] - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - public_
access str - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew_
flag str - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet_
id str - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Mapping[str, str]
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- web_
node_ Sequence[Elasticsearchtype_ infos Instance Web Node Type Info Args] - Visual node configuration.
- node
Info List<Property Map>Lists - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password String
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- version String
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id String - The ID of a VPC network.
- availability
Zone String - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security NumberType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period Number - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup Property Map - COS automatic backup information.
- deploy
Mode Number - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Instance StringId - ID of the resource.
- es
Acl Property Map - Kibana Access Control Configuration.
- es
Public Property MapAcl - Public network access control list.
- instance
Name String - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public StringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - license
Type String - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone List<Property Map>Infos - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - public
Access String - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag String - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id String - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Map<String>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- web
Node List<Property Map>Type Infos - Visual node configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticsearchInstance resource produces the following output properties:
- Create
Time string - Instance creation time.
- Elasticsearch
Domain string - Elasticsearch domain name.
- Elasticsearch
Port double - Elasticsearch port.
- Elasticsearch
Vip string - Elasticsearch VIP.
- Es
Public stringUrl - Es public network address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kibana
Url string - Kibana access URL.
- Create
Time string - Instance creation time.
- Elasticsearch
Domain string - Elasticsearch domain name.
- Elasticsearch
Port float64 - Elasticsearch port.
- Elasticsearch
Vip string - Elasticsearch VIP.
- Es
Public stringUrl - Es public network address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kibana
Url string - Kibana access URL.
- create
Time String - Instance creation time.
- elasticsearch
Domain String - Elasticsearch domain name.
- elasticsearch
Port Double - Elasticsearch port.
- elasticsearch
Vip String - Elasticsearch VIP.
- es
Public StringUrl - Es public network address.
- id String
- The provider-assigned unique ID for this managed resource.
- kibana
Url String - Kibana access URL.
- create
Time string - Instance creation time.
- elasticsearch
Domain string - Elasticsearch domain name.
- elasticsearch
Port number - Elasticsearch port.
- elasticsearch
Vip string - Elasticsearch VIP.
- es
Public stringUrl - Es public network address.
- id string
- The provider-assigned unique ID for this managed resource.
- kibana
Url string - Kibana access URL.
- create_
time str - Instance creation time.
- elasticsearch_
domain str - Elasticsearch domain name.
- elasticsearch_
port float - Elasticsearch port.
- elasticsearch_
vip str - Elasticsearch VIP.
- es_
public_ strurl - Es public network address.
- id str
- The provider-assigned unique ID for this managed resource.
- kibana_
url str - Kibana access URL.
- create
Time String - Instance creation time.
- elasticsearch
Domain String - Elasticsearch domain name.
- elasticsearch
Port Number - Elasticsearch port.
- elasticsearch
Vip String - Elasticsearch VIP.
- es
Public StringUrl - Es public network address.
- id String
- The provider-assigned unique ID for this managed resource.
- kibana
Url String - Kibana access URL.
Look up Existing ElasticsearchInstance Resource
Get an existing ElasticsearchInstance 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?: ElasticsearchInstanceState, opts?: CustomResourceOptions): ElasticsearchInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
basic_security_type: Optional[float] = None,
charge_period: Optional[float] = None,
charge_type: Optional[str] = None,
cos_backup: Optional[ElasticsearchInstanceCosBackupArgs] = None,
create_time: Optional[str] = None,
deploy_mode: Optional[float] = None,
elasticsearch_domain: Optional[str] = None,
elasticsearch_instance_id: Optional[str] = None,
elasticsearch_port: Optional[float] = None,
elasticsearch_vip: Optional[str] = None,
es_acl: Optional[ElasticsearchInstanceEsAclArgs] = None,
es_public_acl: Optional[ElasticsearchInstanceEsPublicAclArgs] = None,
es_public_url: Optional[str] = None,
instance_name: Optional[str] = None,
kibana_public_access: Optional[str] = None,
kibana_url: Optional[str] = None,
license_type: Optional[str] = None,
multi_zone_infos: Optional[Sequence[ElasticsearchInstanceMultiZoneInfoArgs]] = None,
node_info_lists: Optional[Sequence[ElasticsearchInstanceNodeInfoListArgs]] = None,
password: Optional[str] = None,
public_access: Optional[str] = None,
renew_flag: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
version: Optional[str] = None,
vpc_id: Optional[str] = None,
web_node_type_infos: Optional[Sequence[ElasticsearchInstanceWebNodeTypeInfoArgs]] = None) -> ElasticsearchInstance
func GetElasticsearchInstance(ctx *Context, name string, id IDInput, state *ElasticsearchInstanceState, opts ...ResourceOption) (*ElasticsearchInstance, error)
public static ElasticsearchInstance Get(string name, Input<string> id, ElasticsearchInstanceState? state, CustomResourceOptions? opts = null)
public static ElasticsearchInstance get(String name, Output<String> id, ElasticsearchInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticsearchInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - Basic
Security doubleType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - Charge
Period double - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - Cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- Create
Time string - Instance creation time.
- Deploy
Mode double - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - Elasticsearch
Domain string - Elasticsearch domain name.
- Elasticsearch
Instance stringId - ID of the resource.
- Elasticsearch
Port double - Elasticsearch port.
- Elasticsearch
Vip string - Elasticsearch VIP.
- Es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- Es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- Es
Public stringUrl - Es public network address.
- Instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- Kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - Kibana
Url string - Kibana access URL.
- License
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - Multi
Zone List<ElasticsearchInfos Instance Multi Zone Info> - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - Node
Info List<ElasticsearchLists Instance Node Info List> - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- Password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- Public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - Renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - Subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Dictionary<string, string>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- Version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - Vpc
Id string - The ID of a VPC network.
- Web
Node List<ElasticsearchType Infos Instance Web Node Type Info> - Visual node configuration.
- Availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - Basic
Security float64Type - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - Charge
Period float64 - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - Charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - Cos
Backup ElasticsearchInstance Cos Backup Args - COS automatic backup information.
- Create
Time string - Instance creation time.
- Deploy
Mode float64 - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - Elasticsearch
Domain string - Elasticsearch domain name.
- Elasticsearch
Instance stringId - ID of the resource.
- Elasticsearch
Port float64 - Elasticsearch port.
- Elasticsearch
Vip string - Elasticsearch VIP.
- Es
Acl ElasticsearchInstance Es Acl Args - Kibana Access Control Configuration.
- Es
Public ElasticsearchAcl Instance Es Public Acl Args - Public network access control list.
- Es
Public stringUrl - Es public network address.
- Instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- Kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - Kibana
Url string - Kibana access URL.
- License
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - Multi
Zone []ElasticsearchInfos Instance Multi Zone Info Args - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - Node
Info []ElasticsearchLists Instance Node Info List Args - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- Password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- Public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - Renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - Subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - map[string]string
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- Version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - Vpc
Id string - The ID of a VPC network.
- Web
Node []ElasticsearchType Infos Instance Web Node Type Info Args - Visual node configuration.
- availability
Zone String - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security DoubleType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period Double - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- create
Time String - Instance creation time.
- deploy
Mode Double - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Domain String - Elasticsearch domain name.
- elasticsearch
Instance StringId - ID of the resource.
- elasticsearch
Port Double - Elasticsearch port.
- elasticsearch
Vip String - Elasticsearch VIP.
- es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- es
Public StringUrl - Es public network address.
- instance
Name String - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public StringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - kibana
Url String - Kibana access URL.
- license
Type String - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone List<ElasticsearchInfos Instance Multi Zone Info> - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - node
Info List<ElasticsearchLists Instance Node Info List> - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password String
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- public
Access String - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag String - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id String - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Map<String,String>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- version String
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id String - The ID of a VPC network.
- web
Node List<ElasticsearchType Infos Instance Web Node Type Info> - Visual node configuration.
- availability
Zone string - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security numberType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period number - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type string - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup ElasticsearchInstance Cos Backup - COS automatic backup information.
- create
Time string - Instance creation time.
- deploy
Mode number - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Domain string - Elasticsearch domain name.
- elasticsearch
Instance stringId - ID of the resource.
- elasticsearch
Port number - Elasticsearch port.
- elasticsearch
Vip string - Elasticsearch VIP.
- es
Acl ElasticsearchInstance Es Acl - Kibana Access Control Configuration.
- es
Public ElasticsearchAcl Instance Es Public Acl - Public network access control list.
- es
Public stringUrl - Es public network address.
- instance
Name string - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public stringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - kibana
Url string - Kibana access URL.
- license
Type string - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone ElasticsearchInfos Instance Multi Zone Info[] - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - node
Info ElasticsearchLists Instance Node Info List[] - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password string
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- public
Access string - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag string - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id string - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - {[key: string]: string}
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- version string
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id string - The ID of a VPC network.
- web
Node ElasticsearchType Infos Instance Web Node Type Info[] - Visual node configuration.
- availability_
zone str - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic_
security_ floattype - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge_
period float - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge_
type str - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos_
backup ElasticsearchInstance Cos Backup Args - COS automatic backup information.
- create_
time str - Instance creation time.
- deploy_
mode float - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch_
domain str - Elasticsearch domain name.
- elasticsearch_
instance_ strid - ID of the resource.
- elasticsearch_
port float - Elasticsearch port.
- elasticsearch_
vip str - Elasticsearch VIP.
- es_
acl ElasticsearchInstance Es Acl Args - Kibana Access Control Configuration.
- es_
public_ Elasticsearchacl Instance Es Public Acl Args - Public network access control list.
- es_
public_ strurl - Es public network address.
- instance_
name str - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana_
public_ straccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - kibana_
url str - Kibana access URL.
- license_
type str - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi_
zone_ Sequence[Elasticsearchinfos Instance Multi Zone Info Args] - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - node_
info_ Sequence[Elasticsearchlists Instance Node Info List Args] - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password str
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- public_
access str - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew_
flag str - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet_
id str - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Mapping[str, str]
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- version str
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc_
id str - The ID of a VPC network.
- web_
node_ Sequence[Elasticsearchtype_ infos Instance Web Node Type Info Args] - Visual node configuration.
- availability
Zone String - Availability zone. When create multi-az es, this parameter must be omitted or
-
. - basic
Security NumberType - Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are
1
and2
.1
is disabled,2
is enabled, and default value is1
. Notice: this parameter is only take effect onbasic
license. - charge
Period Number - The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to
PREPAID
. - charge
Type String - The charge type of instance. Valid values are
PREPAID
andPOSTPAID_BY_HOUR
. - cos
Backup Property Map - COS automatic backup information.
- create
Time String - Instance creation time.
- deploy
Mode Number - Cluster deployment mode. Valid values are
0
and1
.0
is single-AZ deployment, and1
is multi-AZ deployment. Default value is0
. - elasticsearch
Domain String - Elasticsearch domain name.
- elasticsearch
Instance StringId - ID of the resource.
- elasticsearch
Port Number - Elasticsearch port.
- elasticsearch
Vip String - Elasticsearch VIP.
- es
Acl Property Map - Kibana Access Control Configuration.
- es
Public Property MapAcl - Public network access control list.
- es
Public StringUrl - Es public network address.
- instance
Name String - Name of the instance, which can contain 1 to 50 English letters, Chinese characters, digits, dashes(-), or underscores(_).
- kibana
Public StringAccess - Kibana public network access status. Valid values are
OPEN
andCLOSE
. - kibana
Url String - Kibana access URL.
- license
Type String - License type. Valid values are
oss
,basic
andplatinum
. The default value isplatinum
. - multi
Zone List<Property Map>Infos - Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is
1
). - node
Info List<Property Map>Lists - Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
- password String
- Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
- public
Access String - ES cluster public network access status. Valid values are
OPEN
andCLOSE
. Cannot be changed at the same time ases_acl
. - renew
Flag String - When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are
RENEW_FLAG_AUTO
andRENEW_FLAG_MANUAL
. NOTE: it only works when charge_type is set toPREPAID
. - subnet
Id String - The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or
-
. - Map<String>
- A mapping of tags to assign to the instance. For tag limits, please refer to Use Limits.
- version String
- Version of the instance. Valid values are
5.6.4
,6.4.3
,6.8.2
,7.5.1
and7.10.1
. - vpc
Id String - The ID of a VPC network.
- web
Node List<Property Map>Type Infos - Visual node configuration.
Supporting Types
ElasticsearchInstanceCosBackup, ElasticsearchInstanceCosBackupArgs
- Backup
Time string - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - Is
Auto boolBackup - Whether to enable automatic backup of cos.
- Backup
Time string - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - Is
Auto boolBackup - Whether to enable automatic backup of cos.
- backup
Time String - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - is
Auto BooleanBackup - Whether to enable automatic backup of cos.
- backup
Time string - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - is
Auto booleanBackup - Whether to enable automatic backup of cos.
- backup_
time str - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - is_
auto_ boolbackup - Whether to enable automatic backup of cos.
- backup
Time String - Automatic backup execution time (accurate to the hour), e.g.
22:00
. - is
Auto BooleanBackup - Whether to enable automatic backup of cos.
ElasticsearchInstanceEsAcl, ElasticsearchInstanceEsAclArgs
- Black
Lists List<string> - Blacklist of kibana access.
- White
Lists List<string> - Whitelist of kibana access.
- Black
Lists []string - Blacklist of kibana access.
- White
Lists []string - Whitelist of kibana access.
- black
Lists List<String> - Blacklist of kibana access.
- white
Lists List<String> - Whitelist of kibana access.
- black
Lists string[] - Blacklist of kibana access.
- white
Lists string[] - Whitelist of kibana access.
- black_
lists Sequence[str] - Blacklist of kibana access.
- white_
lists Sequence[str] - Whitelist of kibana access.
- black
Lists List<String> - Blacklist of kibana access.
- white
Lists List<String> - Whitelist of kibana access.
ElasticsearchInstanceEsPublicAcl, ElasticsearchInstanceEsPublicAclArgs
- White
Ip List<string>Lists - Access Whitelist.
- White
Ip []stringLists - Access Whitelist.
- white
Ip List<String>Lists - Access Whitelist.
- white
Ip string[]Lists - Access Whitelist.
- white_
ip_ Sequence[str]lists - Access Whitelist.
- white
Ip List<String>Lists - Access Whitelist.
ElasticsearchInstanceMultiZoneInfo, ElasticsearchInstanceMultiZoneInfoArgs
- Availability
Zone string - Availability zone.
- Subnet
Id string - The ID of a VPC subnetwork.
- Availability
Zone string - Availability zone.
- Subnet
Id string - The ID of a VPC subnetwork.
- availability
Zone String - Availability zone.
- subnet
Id String - The ID of a VPC subnetwork.
- availability
Zone string - Availability zone.
- subnet
Id string - The ID of a VPC subnetwork.
- availability_
zone str - Availability zone.
- subnet_
id str - The ID of a VPC subnetwork.
- availability
Zone String - Availability zone.
- subnet
Id String - The ID of a VPC subnetwork.
ElasticsearchInstanceNodeInfoList, ElasticsearchInstanceNodeInfoListArgs
- Node
Num double - Number of nodes.
- Node
Type string - Node specification, and valid values refer to document of tencentcloud.
- Disk
Size double - Node disk size. Unit is GB, and default value is
100
. - Disk
Type string - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - Encrypt bool
- Decides to encrypt this disk or not.
- Type string
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
- Node
Num float64 - Number of nodes.
- Node
Type string - Node specification, and valid values refer to document of tencentcloud.
- Disk
Size float64 - Node disk size. Unit is GB, and default value is
100
. - Disk
Type string - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - Encrypt bool
- Decides to encrypt this disk or not.
- Type string
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
- node
Num Double - Number of nodes.
- node
Type String - Node specification, and valid values refer to document of tencentcloud.
- disk
Size Double - Node disk size. Unit is GB, and default value is
100
. - disk
Type String - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - encrypt Boolean
- Decides to encrypt this disk or not.
- type String
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
- node
Num number - Number of nodes.
- node
Type string - Node specification, and valid values refer to document of tencentcloud.
- disk
Size number - Node disk size. Unit is GB, and default value is
100
. - disk
Type string - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - encrypt boolean
- Decides to encrypt this disk or not.
- type string
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
- node_
num float - Number of nodes.
- node_
type str - Node specification, and valid values refer to document of tencentcloud.
- disk_
size float - Node disk size. Unit is GB, and default value is
100
. - disk_
type str - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - encrypt bool
- Decides to encrypt this disk or not.
- type str
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
- node
Num Number - Number of nodes.
- node
Type String - Node specification, and valid values refer to document of tencentcloud.
- disk
Size Number - Node disk size. Unit is GB, and default value is
100
. - disk
Type String - Node disk type. Valid values are
CLOUD_SSD
,CLOUD_PREMIUM
,CLOUD_HSSD
,CLOUD_BSSD
,CLOUD_BIGDATA
andCLOUD_HIGHIO
. The default value isCLOUD_SSD
. - encrypt Boolean
- Decides to encrypt this disk or not.
- type String
- Node type. Valid values are
hotData
,warmData
anddedicatedMaster
. The default value is 'hotData`.
ElasticsearchInstanceWebNodeTypeInfo, ElasticsearchInstanceWebNodeTypeInfoArgs
Import
Elasticsearch instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/elasticsearchInstance:ElasticsearchInstance foo es-17634f05
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.