alicloud.lindorm.InstanceV2
Explore with Pulumi AI
Provides a Lindorm Instance V2 resource.
Cloud-native multi-model database.
For information about Lindorm Instance V2 and how to use it, see What is Instance V2.
NOTE: Available since v1.260.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultR8vXlP = new alicloud.vpc.Network("defaultR8vXlP", {cidrBlock: "172.16.0.0/16"});
const default9umuzwH = new alicloud.vpc.Switch("default9umuzwH", {
vpcId: defaultR8vXlP.id,
zoneId: "cn-beijing-h",
cidrBlock: "172.16.0.0/24",
});
const defaultgOFAo3L = new alicloud.vpc.Switch("defaultgOFAo3L", {
vpcId: defaultR8vXlP.id,
zoneId: "cn-beijing-l",
cidrBlock: "172.16.1.0/24",
});
const defaultTAbr2pJ = new alicloud.vpc.Switch("defaultTAbr2pJ", {
vpcId: defaultR8vXlP.id,
zoneId: "cn-beijing-j",
cidrBlock: "172.16.2.0/24",
});
const _default = new alicloud.lindorm.InstanceV2("default", {
standbyZoneId: "cn-beijing-l",
engineLists: [{
engineType: "TABLE",
nodeGroups: [{
nodeCount: 4,
nodeSpec: "lindorm.g.2xlarge",
resourceGroupName: "cx-mz-rg",
}],
}],
cloudStorageSize: 400,
primaryZoneId: "cn-beijing-h",
zoneId: "cn-beijing-h",
cloudStorageType: "PerformanceStorage",
archVersion: "2.0",
vswitchId: default9umuzwH.id,
standbyVswitchId: defaultgOFAo3L.id,
primaryVswitchId: default9umuzwH.id,
arbiterVswitchId: defaultTAbr2pJ.id,
vpcId: defaultR8vXlP.id,
instanceAlias: "preTest-MZ",
paymentType: "POSTPAY",
arbiterZoneId: "cn-beijing-j",
autoRenewal: false,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default_r8v_xl_p = alicloud.vpc.Network("defaultR8vXlP", cidr_block="172.16.0.0/16")
default9umuzw_h = alicloud.vpc.Switch("default9umuzwH",
vpc_id=default_r8v_xl_p.id,
zone_id="cn-beijing-h",
cidr_block="172.16.0.0/24")
defaultg_of_ao3_l = alicloud.vpc.Switch("defaultgOFAo3L",
vpc_id=default_r8v_xl_p.id,
zone_id="cn-beijing-l",
cidr_block="172.16.1.0/24")
default_t_abr2p_j = alicloud.vpc.Switch("defaultTAbr2pJ",
vpc_id=default_r8v_xl_p.id,
zone_id="cn-beijing-j",
cidr_block="172.16.2.0/24")
default = alicloud.lindorm.InstanceV2("default",
standby_zone_id="cn-beijing-l",
engine_lists=[{
"engine_type": "TABLE",
"node_groups": [{
"node_count": 4,
"node_spec": "lindorm.g.2xlarge",
"resource_group_name": "cx-mz-rg",
}],
}],
cloud_storage_size=400,
primary_zone_id="cn-beijing-h",
zone_id="cn-beijing-h",
cloud_storage_type="PerformanceStorage",
arch_version="2.0",
vswitch_id=default9umuzw_h.id,
standby_vswitch_id=defaultg_of_ao3_l.id,
primary_vswitch_id=default9umuzw_h.id,
arbiter_vswitch_id=default_t_abr2p_j.id,
vpc_id=default_r8v_xl_p.id,
instance_alias="preTest-MZ",
payment_type="POSTPAY",
arbiter_zone_id="cn-beijing-j",
auto_renewal=False)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/lindorm"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultR8vXlP, err := vpc.NewNetwork(ctx, "defaultR8vXlP", &vpc.NetworkArgs{
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
default9umuzwH, err := vpc.NewSwitch(ctx, "default9umuzwH", &vpc.SwitchArgs{
VpcId: defaultR8vXlP.ID(),
ZoneId: pulumi.String("cn-beijing-h"),
CidrBlock: pulumi.String("172.16.0.0/24"),
})
if err != nil {
return err
}
defaultgOFAo3L, err := vpc.NewSwitch(ctx, "defaultgOFAo3L", &vpc.SwitchArgs{
VpcId: defaultR8vXlP.ID(),
ZoneId: pulumi.String("cn-beijing-l"),
CidrBlock: pulumi.String("172.16.1.0/24"),
})
if err != nil {
return err
}
defaultTAbr2pJ, err := vpc.NewSwitch(ctx, "defaultTAbr2pJ", &vpc.SwitchArgs{
VpcId: defaultR8vXlP.ID(),
ZoneId: pulumi.String("cn-beijing-j"),
CidrBlock: pulumi.String("172.16.2.0/24"),
})
if err != nil {
return err
}
_, err = lindorm.NewInstanceV2(ctx, "default", &lindorm.InstanceV2Args{
StandbyZoneId: pulumi.String("cn-beijing-l"),
EngineLists: lindorm.InstanceV2EngineListArray{
&lindorm.InstanceV2EngineListArgs{
EngineType: pulumi.String("TABLE"),
NodeGroups: lindorm.InstanceV2EngineListNodeGroupArray{
&lindorm.InstanceV2EngineListNodeGroupArgs{
NodeCount: pulumi.Int(4),
NodeSpec: pulumi.String("lindorm.g.2xlarge"),
ResourceGroupName: pulumi.String("cx-mz-rg"),
},
},
},
},
CloudStorageSize: pulumi.Int(400),
PrimaryZoneId: pulumi.String("cn-beijing-h"),
ZoneId: pulumi.String("cn-beijing-h"),
CloudStorageType: pulumi.String("PerformanceStorage"),
ArchVersion: pulumi.String("2.0"),
VswitchId: default9umuzwH.ID(),
StandbyVswitchId: defaultgOFAo3L.ID(),
PrimaryVswitchId: default9umuzwH.ID(),
ArbiterVswitchId: defaultTAbr2pJ.ID(),
VpcId: defaultR8vXlP.ID(),
InstanceAlias: pulumi.String("preTest-MZ"),
PaymentType: pulumi.String("POSTPAY"),
ArbiterZoneId: pulumi.String("cn-beijing-j"),
AutoRenewal: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultR8vXlP = new AliCloud.Vpc.Network("defaultR8vXlP", new()
{
CidrBlock = "172.16.0.0/16",
});
var default9umuzwH = new AliCloud.Vpc.Switch("default9umuzwH", new()
{
VpcId = defaultR8vXlP.Id,
ZoneId = "cn-beijing-h",
CidrBlock = "172.16.0.0/24",
});
var defaultgOFAo3L = new AliCloud.Vpc.Switch("defaultgOFAo3L", new()
{
VpcId = defaultR8vXlP.Id,
ZoneId = "cn-beijing-l",
CidrBlock = "172.16.1.0/24",
});
var defaultTAbr2pJ = new AliCloud.Vpc.Switch("defaultTAbr2pJ", new()
{
VpcId = defaultR8vXlP.Id,
ZoneId = "cn-beijing-j",
CidrBlock = "172.16.2.0/24",
});
var @default = new AliCloud.Lindorm.InstanceV2("default", new()
{
StandbyZoneId = "cn-beijing-l",
EngineLists = new[]
{
new AliCloud.Lindorm.Inputs.InstanceV2EngineListArgs
{
EngineType = "TABLE",
NodeGroups = new[]
{
new AliCloud.Lindorm.Inputs.InstanceV2EngineListNodeGroupArgs
{
NodeCount = 4,
NodeSpec = "lindorm.g.2xlarge",
ResourceGroupName = "cx-mz-rg",
},
},
},
},
CloudStorageSize = 400,
PrimaryZoneId = "cn-beijing-h",
ZoneId = "cn-beijing-h",
CloudStorageType = "PerformanceStorage",
ArchVersion = "2.0",
VswitchId = default9umuzwH.Id,
StandbyVswitchId = defaultgOFAo3L.Id,
PrimaryVswitchId = default9umuzwH.Id,
ArbiterVswitchId = defaultTAbr2pJ.Id,
VpcId = defaultR8vXlP.Id,
InstanceAlias = "preTest-MZ",
PaymentType = "POSTPAY",
ArbiterZoneId = "cn-beijing-j",
AutoRenewal = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.lindorm.InstanceV2;
import com.pulumi.alicloud.lindorm.InstanceV2Args;
import com.pulumi.alicloud.lindorm.inputs.InstanceV2EngineListArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultR8vXlP = new Network("defaultR8vXlP", NetworkArgs.builder()
.cidrBlock("172.16.0.0/16")
.build());
var default9umuzwH = new Switch("default9umuzwH", SwitchArgs.builder()
.vpcId(defaultR8vXlP.id())
.zoneId("cn-beijing-h")
.cidrBlock("172.16.0.0/24")
.build());
var defaultgOFAo3L = new Switch("defaultgOFAo3L", SwitchArgs.builder()
.vpcId(defaultR8vXlP.id())
.zoneId("cn-beijing-l")
.cidrBlock("172.16.1.0/24")
.build());
var defaultTAbr2pJ = new Switch("defaultTAbr2pJ", SwitchArgs.builder()
.vpcId(defaultR8vXlP.id())
.zoneId("cn-beijing-j")
.cidrBlock("172.16.2.0/24")
.build());
var default_ = new InstanceV2("default", InstanceV2Args.builder()
.standbyZoneId("cn-beijing-l")
.engineLists(InstanceV2EngineListArgs.builder()
.engineType("TABLE")
.nodeGroups(InstanceV2EngineListNodeGroupArgs.builder()
.nodeCount(4)
.nodeSpec("lindorm.g.2xlarge")
.resourceGroupName("cx-mz-rg")
.build())
.build())
.cloudStorageSize(400)
.primaryZoneId("cn-beijing-h")
.zoneId("cn-beijing-h")
.cloudStorageType("PerformanceStorage")
.archVersion("2.0")
.vswitchId(default9umuzwH.id())
.standbyVswitchId(defaultgOFAo3L.id())
.primaryVswitchId(default9umuzwH.id())
.arbiterVswitchId(defaultTAbr2pJ.id())
.vpcId(defaultR8vXlP.id())
.instanceAlias("preTest-MZ")
.paymentType("POSTPAY")
.arbiterZoneId("cn-beijing-j")
.autoRenewal(false)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultR8vXlP:
type: alicloud:vpc:Network
properties:
cidrBlock: 172.16.0.0/16
default9umuzwH:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultR8vXlP.id}
zoneId: cn-beijing-h
cidrBlock: 172.16.0.0/24
defaultgOFAo3L:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultR8vXlP.id}
zoneId: cn-beijing-l
cidrBlock: 172.16.1.0/24
defaultTAbr2pJ:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultR8vXlP.id}
zoneId: cn-beijing-j
cidrBlock: 172.16.2.0/24
default:
type: alicloud:lindorm:InstanceV2
properties:
standbyZoneId: cn-beijing-l
engineLists:
- engineType: TABLE
nodeGroups:
- nodeCount: '4'
nodeSpec: lindorm.g.2xlarge
resourceGroupName: cx-mz-rg
cloudStorageSize: '400'
primaryZoneId: cn-beijing-h
zoneId: cn-beijing-h
cloudStorageType: PerformanceStorage
archVersion: '2.0'
vswitchId: ${default9umuzwH.id}
standbyVswitchId: ${defaultgOFAo3L.id}
primaryVswitchId: ${default9umuzwH.id}
arbiterVswitchId: ${defaultTAbr2pJ.id}
vpcId: ${defaultR8vXlP.id}
instanceAlias: preTest-MZ
paymentType: POSTPAY
arbiterZoneId: cn-beijing-j
autoRenewal: false
Create InstanceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceV2(name: string, args: InstanceV2Args, opts?: CustomResourceOptions);
@overload
def InstanceV2(resource_name: str,
args: InstanceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_lists: Optional[Sequence[InstanceV2EngineListArgs]] = None,
zone_id: Optional[str] = None,
arch_version: Optional[str] = None,
vswitch_id: Optional[str] = None,
vpc_id: Optional[str] = None,
payment_type: Optional[str] = None,
instance_alias: Optional[str] = None,
cloud_storage_size: Optional[int] = None,
deletion_protection: Optional[str] = None,
cloud_storage_type: Optional[str] = None,
primary_vswitch_id: Optional[str] = None,
primary_zone_id: Optional[str] = None,
standby_vswitch_id: Optional[str] = None,
standby_zone_id: Optional[str] = None,
arbiter_vswitch_id: Optional[str] = None,
auto_renewal: Optional[bool] = None,
arbiter_zone_id: Optional[str] = None)
func NewInstanceV2(ctx *Context, name string, args InstanceV2Args, opts ...ResourceOption) (*InstanceV2, error)
public InstanceV2(string name, InstanceV2Args args, CustomResourceOptions? opts = null)
public InstanceV2(String name, InstanceV2Args args)
public InstanceV2(String name, InstanceV2Args args, CustomResourceOptions options)
type: alicloud:lindorm:InstanceV2
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 InstanceV2Args
- 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 InstanceV2Args
- 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 InstanceV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var instanceV2Resource = new AliCloud.Lindorm.InstanceV2("instanceV2Resource", new()
{
EngineLists = new[]
{
new AliCloud.Lindorm.Inputs.InstanceV2EngineListArgs
{
EngineType = "string",
ConnectAddressLists = new[]
{
new AliCloud.Lindorm.Inputs.InstanceV2EngineListConnectAddressListArgs
{
Address = "string",
Port = "string",
Type = "string",
},
},
IsLastVersion = false,
LatestVersion = "string",
NodeGroups = new[]
{
new AliCloud.Lindorm.Inputs.InstanceV2EngineListNodeGroupArgs
{
NodeCount = 0,
NodeSpec = "string",
ResourceGroupName = "string",
Category = "string",
CpuCoreCount = 0,
EnableAttachLocalDisk = false,
MemorySizeGiB = 0,
NodeDiskSize = 0,
NodeDiskType = "string",
SpecId = "string",
Status = "string",
},
},
Version = "string",
},
},
ZoneId = "string",
ArchVersion = "string",
VswitchId = "string",
VpcId = "string",
PaymentType = "string",
InstanceAlias = "string",
CloudStorageSize = 0,
DeletionProtection = "string",
CloudStorageType = "string",
PrimaryVswitchId = "string",
PrimaryZoneId = "string",
StandbyVswitchId = "string",
StandbyZoneId = "string",
ArbiterVswitchId = "string",
AutoRenewal = false,
ArbiterZoneId = "string",
});
example, err := lindorm.NewInstanceV2(ctx, "instanceV2Resource", &lindorm.InstanceV2Args{
EngineLists: lindorm.InstanceV2EngineListArray{
&lindorm.InstanceV2EngineListArgs{
EngineType: pulumi.String("string"),
ConnectAddressLists: lindorm.InstanceV2EngineListConnectAddressListArray{
&lindorm.InstanceV2EngineListConnectAddressListArgs{
Address: pulumi.String("string"),
Port: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
IsLastVersion: pulumi.Bool(false),
LatestVersion: pulumi.String("string"),
NodeGroups: lindorm.InstanceV2EngineListNodeGroupArray{
&lindorm.InstanceV2EngineListNodeGroupArgs{
NodeCount: pulumi.Int(0),
NodeSpec: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Category: pulumi.String("string"),
CpuCoreCount: pulumi.Int(0),
EnableAttachLocalDisk: pulumi.Bool(false),
MemorySizeGiB: pulumi.Int(0),
NodeDiskSize: pulumi.Int(0),
NodeDiskType: pulumi.String("string"),
SpecId: pulumi.String("string"),
Status: pulumi.String("string"),
},
},
Version: pulumi.String("string"),
},
},
ZoneId: pulumi.String("string"),
ArchVersion: pulumi.String("string"),
VswitchId: pulumi.String("string"),
VpcId: pulumi.String("string"),
PaymentType: pulumi.String("string"),
InstanceAlias: pulumi.String("string"),
CloudStorageSize: pulumi.Int(0),
DeletionProtection: pulumi.String("string"),
CloudStorageType: pulumi.String("string"),
PrimaryVswitchId: pulumi.String("string"),
PrimaryZoneId: pulumi.String("string"),
StandbyVswitchId: pulumi.String("string"),
StandbyZoneId: pulumi.String("string"),
ArbiterVswitchId: pulumi.String("string"),
AutoRenewal: pulumi.Bool(false),
ArbiterZoneId: pulumi.String("string"),
})
var instanceV2Resource = new InstanceV2("instanceV2Resource", InstanceV2Args.builder()
.engineLists(InstanceV2EngineListArgs.builder()
.engineType("string")
.connectAddressLists(InstanceV2EngineListConnectAddressListArgs.builder()
.address("string")
.port("string")
.type("string")
.build())
.isLastVersion(false)
.latestVersion("string")
.nodeGroups(InstanceV2EngineListNodeGroupArgs.builder()
.nodeCount(0)
.nodeSpec("string")
.resourceGroupName("string")
.category("string")
.cpuCoreCount(0)
.enableAttachLocalDisk(false)
.memorySizeGiB(0)
.nodeDiskSize(0)
.nodeDiskType("string")
.specId("string")
.status("string")
.build())
.version("string")
.build())
.zoneId("string")
.archVersion("string")
.vswitchId("string")
.vpcId("string")
.paymentType("string")
.instanceAlias("string")
.cloudStorageSize(0)
.deletionProtection("string")
.cloudStorageType("string")
.primaryVswitchId("string")
.primaryZoneId("string")
.standbyVswitchId("string")
.standbyZoneId("string")
.arbiterVswitchId("string")
.autoRenewal(false)
.arbiterZoneId("string")
.build());
instance_v2_resource = alicloud.lindorm.InstanceV2("instanceV2Resource",
engine_lists=[{
"engine_type": "string",
"connect_address_lists": [{
"address": "string",
"port": "string",
"type": "string",
}],
"is_last_version": False,
"latest_version": "string",
"node_groups": [{
"node_count": 0,
"node_spec": "string",
"resource_group_name": "string",
"category": "string",
"cpu_core_count": 0,
"enable_attach_local_disk": False,
"memory_size_gi_b": 0,
"node_disk_size": 0,
"node_disk_type": "string",
"spec_id": "string",
"status": "string",
}],
"version": "string",
}],
zone_id="string",
arch_version="string",
vswitch_id="string",
vpc_id="string",
payment_type="string",
instance_alias="string",
cloud_storage_size=0,
deletion_protection="string",
cloud_storage_type="string",
primary_vswitch_id="string",
primary_zone_id="string",
standby_vswitch_id="string",
standby_zone_id="string",
arbiter_vswitch_id="string",
auto_renewal=False,
arbiter_zone_id="string")
const instanceV2Resource = new alicloud.lindorm.InstanceV2("instanceV2Resource", {
engineLists: [{
engineType: "string",
connectAddressLists: [{
address: "string",
port: "string",
type: "string",
}],
isLastVersion: false,
latestVersion: "string",
nodeGroups: [{
nodeCount: 0,
nodeSpec: "string",
resourceGroupName: "string",
category: "string",
cpuCoreCount: 0,
enableAttachLocalDisk: false,
memorySizeGiB: 0,
nodeDiskSize: 0,
nodeDiskType: "string",
specId: "string",
status: "string",
}],
version: "string",
}],
zoneId: "string",
archVersion: "string",
vswitchId: "string",
vpcId: "string",
paymentType: "string",
instanceAlias: "string",
cloudStorageSize: 0,
deletionProtection: "string",
cloudStorageType: "string",
primaryVswitchId: "string",
primaryZoneId: "string",
standbyVswitchId: "string",
standbyZoneId: "string",
arbiterVswitchId: "string",
autoRenewal: false,
arbiterZoneId: "string",
});
type: alicloud:lindorm:InstanceV2
properties:
arbiterVswitchId: string
arbiterZoneId: string
archVersion: string
autoRenewal: false
cloudStorageSize: 0
cloudStorageType: string
deletionProtection: string
engineLists:
- connectAddressLists:
- address: string
port: string
type: string
engineType: string
isLastVersion: false
latestVersion: string
nodeGroups:
- category: string
cpuCoreCount: 0
enableAttachLocalDisk: false
memorySizeGiB: 0
nodeCount: 0
nodeDiskSize: 0
nodeDiskType: string
nodeSpec: string
resourceGroupName: string
specId: string
status: string
version: string
instanceAlias: string
paymentType: string
primaryVswitchId: string
primaryZoneId: string
standbyVswitchId: string
standbyZoneId: string
vpcId: string
vswitchId: string
zoneId: string
InstanceV2 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 InstanceV2 resource accepts the following input properties:
- Arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- Engine
Lists List<Pulumi.Ali Cloud. Lindorm. Inputs. Instance V2Engine List> - Engine List See
engine_list
below. - Instance
Alias string - Instance name
- Payment
Type string - The payment type of the resource
- Vpc
Id string - VpcId
- Vswitch
Id string - VswitchId
- Zone
Id string - The zone ID of the resource
- Arbiter
Vswitch stringId - Coordination Zone VswitchId
- Arbiter
Zone stringId - Coordination Zone ZoneId
- Auto
Renewal bool - Auto Renew
- Cloud
Storage intSize Cloud storage capacity in GB
- Cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- Deletion
Protection string - Whether to enable deletion protection
- Primary
Vswitch stringId - Primary zone VswitchId
- Primary
Zone stringId - Primary zone ZoneID
- Standby
Vswitch stringId - Standby zone VswitchId
- Standby
Zone stringId - Standby zone ZoneID
- Arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- Engine
Lists []InstanceV2Engine List Args - Engine List See
engine_list
below. - Instance
Alias string - Instance name
- Payment
Type string - The payment type of the resource
- Vpc
Id string - VpcId
- Vswitch
Id string - VswitchId
- Zone
Id string - The zone ID of the resource
- Arbiter
Vswitch stringId - Coordination Zone VswitchId
- Arbiter
Zone stringId - Coordination Zone ZoneId
- Auto
Renewal bool - Auto Renew
- Cloud
Storage intSize Cloud storage capacity in GB
- Cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- Deletion
Protection string - Whether to enable deletion protection
- Primary
Vswitch stringId - Primary zone VswitchId
- Primary
Zone stringId - Primary zone ZoneID
- Standby
Vswitch stringId - Standby zone VswitchId
- Standby
Zone stringId - Standby zone ZoneID
- arch
Version String Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- engine
Lists List<InstanceV2Engine List> - Engine List See
engine_list
below. - instance
Alias String - Instance name
- payment
Type String - The payment type of the resource
- vpc
Id String - VpcId
- vswitch
Id String - VswitchId
- zone
Id String - The zone ID of the resource
- arbiter
Vswitch StringId - Coordination Zone VswitchId
- arbiter
Zone StringId - Coordination Zone ZoneId
- auto
Renewal Boolean - Auto Renew
- cloud
Storage IntegerSize Cloud storage capacity in GB
- cloud
Storage StringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection String - Whether to enable deletion protection
- primary
Vswitch StringId - Primary zone VswitchId
- primary
Zone StringId - Primary zone ZoneID
- standby
Vswitch StringId - Standby zone VswitchId
- standby
Zone StringId - Standby zone ZoneID
- arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- engine
Lists InstanceV2Engine List[] - Engine List See
engine_list
below. - instance
Alias string - Instance name
- payment
Type string - The payment type of the resource
- vpc
Id string - VpcId
- vswitch
Id string - VswitchId
- zone
Id string - The zone ID of the resource
- arbiter
Vswitch stringId - Coordination Zone VswitchId
- arbiter
Zone stringId - Coordination Zone ZoneId
- auto
Renewal boolean - Auto Renew
- cloud
Storage numberSize Cloud storage capacity in GB
- cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection string - Whether to enable deletion protection
- primary
Vswitch stringId - Primary zone VswitchId
- primary
Zone stringId - Primary zone ZoneID
- standby
Vswitch stringId - Standby zone VswitchId
- standby
Zone stringId - Standby zone ZoneID
- arch_
version str Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- engine_
lists Sequence[InstanceV2Engine List Args] - Engine List See
engine_list
below. - instance_
alias str - Instance name
- payment_
type str - The payment type of the resource
- vpc_
id str - VpcId
- vswitch_
id str - VswitchId
- zone_
id str - The zone ID of the resource
- arbiter_
vswitch_ strid - Coordination Zone VswitchId
- arbiter_
zone_ strid - Coordination Zone ZoneId
- auto_
renewal bool - Auto Renew
- cloud_
storage_ intsize Cloud storage capacity in GB
- cloud_
storage_ strtype - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion_
protection str - Whether to enable deletion protection
- primary_
vswitch_ strid - Primary zone VswitchId
- primary_
zone_ strid - Primary zone ZoneID
- standby_
vswitch_ strid - Standby zone VswitchId
- standby_
zone_ strid - Standby zone ZoneID
- arch
Version String Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- engine
Lists List<Property Map> - Engine List See
engine_list
below. - instance
Alias String - Instance name
- payment
Type String - The payment type of the resource
- vpc
Id String - VpcId
- vswitch
Id String - VswitchId
- zone
Id String - The zone ID of the resource
- arbiter
Vswitch StringId - Coordination Zone VswitchId
- arbiter
Zone StringId - Coordination Zone ZoneId
- auto
Renewal Boolean - Auto Renew
- cloud
Storage NumberSize Cloud storage capacity in GB
- cloud
Storage StringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection String - Whether to enable deletion protection
- primary
Vswitch StringId - Primary zone VswitchId
- primary
Zone StringId - Primary zone ZoneID
- standby
Vswitch StringId - Standby zone VswitchId
- standby
Zone StringId - Standby zone ZoneID
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceV2 resource produces the following output properties:
Look up Existing InstanceV2 Resource
Get an existing InstanceV2 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?: InstanceV2State, opts?: CustomResourceOptions): InstanceV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arbiter_vswitch_id: Optional[str] = None,
arbiter_zone_id: Optional[str] = None,
arch_version: Optional[str] = None,
auto_renewal: Optional[bool] = None,
cloud_storage_size: Optional[int] = None,
cloud_storage_type: Optional[str] = None,
deletion_protection: Optional[str] = None,
engine_lists: Optional[Sequence[InstanceV2EngineListArgs]] = None,
instance_alias: Optional[str] = None,
payment_type: Optional[str] = None,
primary_vswitch_id: Optional[str] = None,
primary_zone_id: Optional[str] = None,
region_id: Optional[str] = None,
standby_vswitch_id: Optional[str] = None,
standby_zone_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> InstanceV2
func GetInstanceV2(ctx *Context, name string, id IDInput, state *InstanceV2State, opts ...ResourceOption) (*InstanceV2, error)
public static InstanceV2 Get(string name, Input<string> id, InstanceV2State? state, CustomResourceOptions? opts = null)
public static InstanceV2 get(String name, Output<String> id, InstanceV2State state, CustomResourceOptions options)
resources: _: type: alicloud:lindorm:InstanceV2 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.
- Arbiter
Vswitch stringId - Coordination Zone VswitchId
- Arbiter
Zone stringId - Coordination Zone ZoneId
- Arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- Auto
Renewal bool - Auto Renew
- Cloud
Storage intSize Cloud storage capacity in GB
- Cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- Deletion
Protection string - Whether to enable deletion protection
- Engine
Lists List<Pulumi.Ali Cloud. Lindorm. Inputs. Instance V2Engine List> - Engine List See
engine_list
below. - Instance
Alias string - Instance name
- Payment
Type string - The payment type of the resource
- Primary
Vswitch stringId - Primary zone VswitchId
- Primary
Zone stringId - Primary zone ZoneID
- Region
Id string - The region ID of the resource
- Standby
Vswitch stringId - Standby zone VswitchId
- Standby
Zone stringId - Standby zone ZoneID
- Vpc
Id string - VpcId
- Vswitch
Id string - VswitchId
- Zone
Id string - The zone ID of the resource
- Arbiter
Vswitch stringId - Coordination Zone VswitchId
- Arbiter
Zone stringId - Coordination Zone ZoneId
- Arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- Auto
Renewal bool - Auto Renew
- Cloud
Storage intSize Cloud storage capacity in GB
- Cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- Deletion
Protection string - Whether to enable deletion protection
- Engine
Lists []InstanceV2Engine List Args - Engine List See
engine_list
below. - Instance
Alias string - Instance name
- Payment
Type string - The payment type of the resource
- Primary
Vswitch stringId - Primary zone VswitchId
- Primary
Zone stringId - Primary zone ZoneID
- Region
Id string - The region ID of the resource
- Standby
Vswitch stringId - Standby zone VswitchId
- Standby
Zone stringId - Standby zone ZoneID
- Vpc
Id string - VpcId
- Vswitch
Id string - VswitchId
- Zone
Id string - The zone ID of the resource
- arbiter
Vswitch StringId - Coordination Zone VswitchId
- arbiter
Zone StringId - Coordination Zone ZoneId
- arch
Version String Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- auto
Renewal Boolean - Auto Renew
- cloud
Storage IntegerSize Cloud storage capacity in GB
- cloud
Storage StringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection String - Whether to enable deletion protection
- engine
Lists List<InstanceV2Engine List> - Engine List See
engine_list
below. - instance
Alias String - Instance name
- payment
Type String - The payment type of the resource
- primary
Vswitch StringId - Primary zone VswitchId
- primary
Zone StringId - Primary zone ZoneID
- region
Id String - The region ID of the resource
- standby
Vswitch StringId - Standby zone VswitchId
- standby
Zone StringId - Standby zone ZoneID
- vpc
Id String - VpcId
- vswitch
Id String - VswitchId
- zone
Id String - The zone ID of the resource
- arbiter
Vswitch stringId - Coordination Zone VswitchId
- arbiter
Zone stringId - Coordination Zone ZoneId
- arch
Version string Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- auto
Renewal boolean - Auto Renew
- cloud
Storage numberSize Cloud storage capacity in GB
- cloud
Storage stringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection string - Whether to enable deletion protection
- engine
Lists InstanceV2Engine List[] - Engine List See
engine_list
below. - instance
Alias string - Instance name
- payment
Type string - The payment type of the resource
- primary
Vswitch stringId - Primary zone VswitchId
- primary
Zone stringId - Primary zone ZoneID
- region
Id string - The region ID of the resource
- standby
Vswitch stringId - Standby zone VswitchId
- standby
Zone stringId - Standby zone ZoneID
- vpc
Id string - VpcId
- vswitch
Id string - VswitchId
- zone
Id string - The zone ID of the resource
- arbiter_
vswitch_ strid - Coordination Zone VswitchId
- arbiter_
zone_ strid - Coordination Zone ZoneId
- arch_
version str Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- auto_
renewal bool - Auto Renew
- cloud_
storage_ intsize Cloud storage capacity in GB
- cloud_
storage_ strtype - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion_
protection str - Whether to enable deletion protection
- engine_
lists Sequence[InstanceV2Engine List Args] - Engine List See
engine_list
below. - instance_
alias str - Instance name
- payment_
type str - The payment type of the resource
- primary_
vswitch_ strid - Primary zone VswitchId
- primary_
zone_ strid - Primary zone ZoneID
- region_
id str - The region ID of the resource
- standby_
vswitch_ strid - Standby zone VswitchId
- standby_
zone_ strid - Standby zone ZoneID
- vpc_
id str - VpcId
- vswitch_
id str - VswitchId
- zone_
id str - The zone ID of the resource
- arbiter
Vswitch StringId - Coordination Zone VswitchId
- arbiter
Zone StringId - Coordination Zone ZoneId
- arch
Version String Deployment Scenario
Enumeration value
- 1.0 Single AZ
- 2.0 Multi-AZ Basic
- 3.0 Multi-AZ High Availability Edition
- auto
Renewal Boolean - Auto Renew
- cloud
Storage NumberSize Cloud storage capacity in GB
- cloud
Storage StringType - StandardStorage: Standard cloud storage
- PerformanceStorage: performance-based cloud storage
- capacity storage: Capacity-based cloud storage
- deletion
Protection String - Whether to enable deletion protection
- engine
Lists List<Property Map> - Engine List See
engine_list
below. - instance
Alias String - Instance name
- payment
Type String - The payment type of the resource
- primary
Vswitch StringId - Primary zone VswitchId
- primary
Zone StringId - Primary zone ZoneID
- region
Id String - The region ID of the resource
- standby
Vswitch StringId - Standby zone VswitchId
- standby
Zone StringId - Standby zone ZoneID
- vpc
Id String - VpcId
- vswitch
Id String - VswitchId
- zone
Id String - The zone ID of the resource
Supporting Types
InstanceV2EngineList, InstanceV2EngineListArgs
- Engine
Type string - Engine
- Connect
Address List<Pulumi.Lists Ali Cloud. Lindorm. Inputs. Instance V2Engine List Connect Address List> - Connect Address List
- Is
Last boolVersion - Whether it is the latest version
- Latest
Version string - Latest Version
- Node
Groups List<Pulumi.Ali Cloud. Lindorm. Inputs. Instance V2Engine List Node Group> - Node Group List See
node_group
below. - Version string
- Engine Version
- Engine
Type string - Engine
- Connect
Address []InstanceLists V2Engine List Connect Address List - Connect Address List
- Is
Last boolVersion - Whether it is the latest version
- Latest
Version string - Latest Version
- Node
Groups []InstanceV2Engine List Node Group - Node Group List See
node_group
below. - Version string
- Engine Version
- engine
Type String - Engine
- connect
Address List<InstanceLists V2Engine List Connect Address List> - Connect Address List
- is
Last BooleanVersion - Whether it is the latest version
- latest
Version String - Latest Version
- node
Groups List<InstanceV2Engine List Node Group> - Node Group List See
node_group
below. - version String
- Engine Version
- engine
Type string - Engine
- connect
Address InstanceLists V2Engine List Connect Address List[] - Connect Address List
- is
Last booleanVersion - Whether it is the latest version
- latest
Version string - Latest Version
- node
Groups InstanceV2Engine List Node Group[] - Node Group List See
node_group
below. - version string
- Engine Version
- engine_
type str - Engine
- connect_
address_ Sequence[Instancelists V2Engine List Connect Address List] - Connect Address List
- is_
last_ boolversion - Whether it is the latest version
- latest_
version str - Latest Version
- node_
groups Sequence[InstanceV2Engine List Node Group] - Node Group List See
node_group
below. - version str
- Engine Version
- engine
Type String - Engine
- connect
Address List<Property Map>Lists - Connect Address List
- is
Last BooleanVersion - Whether it is the latest version
- latest
Version String - Latest Version
- node
Groups List<Property Map> - Node Group List See
node_group
below. - version String
- Engine Version
InstanceV2EngineListConnectAddressList, InstanceV2EngineListConnectAddressListArgs
InstanceV2EngineListNodeGroup, InstanceV2EngineListNodeGroupArgs
- Node
Count int - Number of nodes
- Node
Spec string - Node Specifications
- Resource
Group stringName - Resource group name
- Category string
- Node Type
- Cpu
Core intCount - Number of CPU cores
- Enable
Attach boolLocal Disk - Whether to mount local cloud disks
- Memory
Size intGi B - Node memory size
- Node
Disk intSize - Local cloud disk storage capacity
- Node
Disk stringType - Node Disk Type
- Spec
Id string - Spec Id
- Status string
- Node Status
- Node
Count int - Number of nodes
- Node
Spec string - Node Specifications
- Resource
Group stringName - Resource group name
- Category string
- Node Type
- Cpu
Core intCount - Number of CPU cores
- Enable
Attach boolLocal Disk - Whether to mount local cloud disks
- Memory
Size intGi B - Node memory size
- Node
Disk intSize - Local cloud disk storage capacity
- Node
Disk stringType - Node Disk Type
- Spec
Id string - Spec Id
- Status string
- Node Status
- node
Count Integer - Number of nodes
- node
Spec String - Node Specifications
- resource
Group StringName - Resource group name
- category String
- Node Type
- cpu
Core IntegerCount - Number of CPU cores
- enable
Attach BooleanLocal Disk - Whether to mount local cloud disks
- memory
Size IntegerGi B - Node memory size
- node
Disk IntegerSize - Local cloud disk storage capacity
- node
Disk StringType - Node Disk Type
- spec
Id String - Spec Id
- status String
- Node Status
- node
Count number - Number of nodes
- node
Spec string - Node Specifications
- resource
Group stringName - Resource group name
- category string
- Node Type
- cpu
Core numberCount - Number of CPU cores
- enable
Attach booleanLocal Disk - Whether to mount local cloud disks
- memory
Size numberGi B - Node memory size
- node
Disk numberSize - Local cloud disk storage capacity
- node
Disk stringType - Node Disk Type
- spec
Id string - Spec Id
- status string
- Node Status
- node_
count int - Number of nodes
- node_
spec str - Node Specifications
- resource_
group_ strname - Resource group name
- category str
- Node Type
- cpu_
core_ intcount - Number of CPU cores
- enable_
attach_ boollocal_ disk - Whether to mount local cloud disks
- memory_
size_ intgi_ b - Node memory size
- node_
disk_ intsize - Local cloud disk storage capacity
- node_
disk_ strtype - Node Disk Type
- spec_
id str - Spec Id
- status str
- Node Status
- node
Count Number - Number of nodes
- node
Spec String - Node Specifications
- resource
Group StringName - Resource group name
- category String
- Node Type
- cpu
Core NumberCount - Number of CPU cores
- enable
Attach BooleanLocal Disk - Whether to mount local cloud disks
- memory
Size NumberGi B - Node memory size
- node
Disk NumberSize - Local cloud disk storage capacity
- node
Disk StringType - Node Disk Type
- spec
Id String - Spec Id
- status String
- Node Status
Import
Lindorm Instance V2 can be imported using the id, e.g.
$ pulumi import alicloud:lindorm/instanceV2:InstanceV2 example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.