published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provides a resource to create a VDB instance.
NOTE: When
force_deleteis false (default), destroying this resource will only isolate the instance to the recycle bin. Setforce_deleteto true to permanently destroy the instance.
Example Usage
Create a pay-as-you-go single instance
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VdbInstance("example", {
vpcId: "vpc-xxxxxxxx",
subnetId: "subnet-xxxxxxxx",
payMode: 0,
securityGroupIds: ["sg-xxxxxxxx"],
instanceName: "tf-example",
instanceType: "single",
nodeType: "normal",
cpu: 2,
memory: 4,
diskSize: 50,
workerNodeNum: 1,
forceDelete: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VdbInstance("example",
vpc_id="vpc-xxxxxxxx",
subnet_id="subnet-xxxxxxxx",
pay_mode=0,
security_group_ids=["sg-xxxxxxxx"],
instance_name="tf-example",
instance_type="single",
node_type="normal",
cpu=2,
memory=4,
disk_size=50,
worker_node_num=1,
force_delete=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVdbInstance(ctx, "example", &tencentcloud.VdbInstanceArgs{
VpcId: pulumi.String("vpc-xxxxxxxx"),
SubnetId: pulumi.String("subnet-xxxxxxxx"),
PayMode: pulumi.Float64(0),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-xxxxxxxx"),
},
InstanceName: pulumi.String("tf-example"),
InstanceType: pulumi.String("single"),
NodeType: pulumi.String("normal"),
Cpu: pulumi.Float64(2),
Memory: pulumi.Float64(4),
DiskSize: pulumi.Float64(50),
WorkerNodeNum: pulumi.Float64(1),
ForceDelete: pulumi.Bool(false),
})
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 example = new Tencentcloud.VdbInstance("example", new()
{
VpcId = "vpc-xxxxxxxx",
SubnetId = "subnet-xxxxxxxx",
PayMode = 0,
SecurityGroupIds = new[]
{
"sg-xxxxxxxx",
},
InstanceName = "tf-example",
InstanceType = "single",
NodeType = "normal",
Cpu = 2,
Memory = 4,
DiskSize = 50,
WorkerNodeNum = 1,
ForceDelete = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VdbInstance;
import com.pulumi.tencentcloud.VdbInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new VdbInstance("example", VdbInstanceArgs.builder()
.vpcId("vpc-xxxxxxxx")
.subnetId("subnet-xxxxxxxx")
.payMode(0.0)
.securityGroupIds("sg-xxxxxxxx")
.instanceName("tf-example")
.instanceType("single")
.nodeType("normal")
.cpu(2.0)
.memory(4.0)
.diskSize(50.0)
.workerNodeNum(1.0)
.forceDelete(false)
.build());
}
}
resources:
example:
type: tencentcloud:VdbInstance
properties:
vpcId: vpc-xxxxxxxx
subnetId: subnet-xxxxxxxx
payMode: 0
securityGroupIds:
- sg-xxxxxxxx
instanceName: tf-example
instanceType: single
nodeType: normal
cpu: 2
memory: 4
diskSize: 50
workerNodeNum: 1
forceDelete: false
Example coming soon!
Create a monthly subscription cluster instance with all parameters
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cluster = new tencentcloud.VdbInstance("cluster", {
vpcId: "vpc-xxxxxxxx",
subnetId: "subnet-xxxxxxxx",
payMode: 1,
payPeriod: 1,
autoRenew: 1,
instanceName: "tf-example-cluster",
instanceType: "cluster",
mode: "two",
productType: 0,
nodeType: "compute",
cpu: 4,
memory: 8,
diskSize: 100,
workerNodeNum: 2,
params: "{\"key\":\"value\"}",
forceDelete: true,
securityGroupIds: ["sg-xxxxxxxx"],
resourceTags: [
{
tagKey: "env",
tagValue: "test",
},
{
tagKey: "project",
tagValue: "demo",
},
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cluster = tencentcloud.VdbInstance("cluster",
vpc_id="vpc-xxxxxxxx",
subnet_id="subnet-xxxxxxxx",
pay_mode=1,
pay_period=1,
auto_renew=1,
instance_name="tf-example-cluster",
instance_type="cluster",
mode="two",
product_type=0,
node_type="compute",
cpu=4,
memory=8,
disk_size=100,
worker_node_num=2,
params="{\"key\":\"value\"}",
force_delete=True,
security_group_ids=["sg-xxxxxxxx"],
resource_tags=[
{
"tag_key": "env",
"tag_value": "test",
},
{
"tag_key": "project",
"tag_value": "demo",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVdbInstance(ctx, "cluster", &tencentcloud.VdbInstanceArgs{
VpcId: pulumi.String("vpc-xxxxxxxx"),
SubnetId: pulumi.String("subnet-xxxxxxxx"),
PayMode: pulumi.Float64(1),
PayPeriod: pulumi.Float64(1),
AutoRenew: pulumi.Float64(1),
InstanceName: pulumi.String("tf-example-cluster"),
InstanceType: pulumi.String("cluster"),
Mode: pulumi.String("two"),
ProductType: pulumi.Float64(0),
NodeType: pulumi.String("compute"),
Cpu: pulumi.Float64(4),
Memory: pulumi.Float64(8),
DiskSize: pulumi.Float64(100),
WorkerNodeNum: pulumi.Float64(2),
Params: pulumi.String("{\"key\":\"value\"}"),
ForceDelete: pulumi.Bool(true),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-xxxxxxxx"),
},
ResourceTags: tencentcloud.VdbInstanceResourceTagArray{
&tencentcloud.VdbInstanceResourceTagArgs{
TagKey: pulumi.String("env"),
TagValue: pulumi.String("test"),
},
&tencentcloud.VdbInstanceResourceTagArgs{
TagKey: pulumi.String("project"),
TagValue: pulumi.String("demo"),
},
},
})
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 cluster = new Tencentcloud.VdbInstance("cluster", new()
{
VpcId = "vpc-xxxxxxxx",
SubnetId = "subnet-xxxxxxxx",
PayMode = 1,
PayPeriod = 1,
AutoRenew = 1,
InstanceName = "tf-example-cluster",
InstanceType = "cluster",
Mode = "two",
ProductType = 0,
NodeType = "compute",
Cpu = 4,
Memory = 8,
DiskSize = 100,
WorkerNodeNum = 2,
Params = "{\"key\":\"value\"}",
ForceDelete = true,
SecurityGroupIds = new[]
{
"sg-xxxxxxxx",
},
ResourceTags = new[]
{
new Tencentcloud.Inputs.VdbInstanceResourceTagArgs
{
TagKey = "env",
TagValue = "test",
},
new Tencentcloud.Inputs.VdbInstanceResourceTagArgs
{
TagKey = "project",
TagValue = "demo",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VdbInstance;
import com.pulumi.tencentcloud.VdbInstanceArgs;
import com.pulumi.tencentcloud.inputs.VdbInstanceResourceTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cluster = new VdbInstance("cluster", VdbInstanceArgs.builder()
.vpcId("vpc-xxxxxxxx")
.subnetId("subnet-xxxxxxxx")
.payMode(1.0)
.payPeriod(1.0)
.autoRenew(1.0)
.instanceName("tf-example-cluster")
.instanceType("cluster")
.mode("two")
.productType(0.0)
.nodeType("compute")
.cpu(4.0)
.memory(8.0)
.diskSize(100.0)
.workerNodeNum(2.0)
.params("{\"key\":\"value\"}")
.forceDelete(true)
.securityGroupIds("sg-xxxxxxxx")
.resourceTags(
VdbInstanceResourceTagArgs.builder()
.tagKey("env")
.tagValue("test")
.build(),
VdbInstanceResourceTagArgs.builder()
.tagKey("project")
.tagValue("demo")
.build())
.build());
}
}
resources:
cluster:
type: tencentcloud:VdbInstance
properties:
vpcId: vpc-xxxxxxxx
subnetId: subnet-xxxxxxxx
payMode: 1
payPeriod: 1
autoRenew: 1
instanceName: tf-example-cluster
instanceType: cluster
mode: two
productType: 0
nodeType: compute
cpu: 4
memory: 8
diskSize: 100
workerNodeNum: 2
params: '{"key":"value"}'
forceDelete: true
securityGroupIds:
- sg-xxxxxxxx
resourceTags:
- tagKey: env
tagValue: test
- tagKey: project
tagValue: demo
Example coming soon!
Create VdbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VdbInstance(name: string, args: VdbInstanceArgs, opts?: CustomResourceOptions);@overload
def VdbInstance(resource_name: str,
args: VdbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VdbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
subnet_id: Optional[str] = None,
pay_mode: Optional[float] = None,
vpc_id: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
cpu: Optional[float] = None,
pay_period: Optional[float] = None,
memory: Optional[float] = None,
mode: Optional[str] = None,
params: Optional[str] = None,
node_type: Optional[str] = None,
product_type: Optional[float] = None,
instance_type: Optional[str] = None,
instance_name: Optional[str] = None,
resource_tags: Optional[Sequence[VdbInstanceResourceTagArgs]] = None,
force_delete: Optional[bool] = None,
auto_renew: Optional[float] = None,
timeouts: Optional[VdbInstanceTimeoutsArgs] = None,
vdb_instance_id: Optional[str] = None,
disk_size: Optional[float] = None,
worker_node_num: Optional[float] = None)func NewVdbInstance(ctx *Context, name string, args VdbInstanceArgs, opts ...ResourceOption) (*VdbInstance, error)public VdbInstance(string name, VdbInstanceArgs args, CustomResourceOptions? opts = null)
public VdbInstance(String name, VdbInstanceArgs args)
public VdbInstance(String name, VdbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:VdbInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_vdbinstance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VdbInstanceArgs
- 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 VdbInstanceArgs
- 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 VdbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VdbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VdbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VdbInstance 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 VdbInstance resource accepts the following input properties:
- Pay
Mode double - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- Security
Group List<string>Ids - Security group IDs.
- Subnet
Id string - Subnet ID.
- Vpc
Id string - VPC ID.
- Auto
Renew double - Auto-renew flag. 0: disabled, 1: enabled.
- Cpu double
- CPU cores.
- Disk
Size double - Disk size in GB.
- Force
Delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- Instance
Name string - Instance name. Supports up to 60 characters.
- Instance
Type string - Instance type. Valid values: base, single, cluster.
- Memory double
- Memory size in GB.
- Mode string
- Availability zone mode for cluster type. Valid values: two, three.
- Node
Type string - Node type. Valid values: compute, normal, store.
- Params string
- Instance extra parameters, submitted via JSON.
- Pay
Period double - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- Product
Type double - Product version. 0: standard, 1: capacity-enhanced.
-
List<Vdb
Instance Resource Tag> - Tag list.
- Timeouts
Vdb
Instance Timeouts - Vdb
Instance stringId - ID of the resource.
- Worker
Node doubleNum - Number of worker nodes.
- Pay
Mode float64 - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- Security
Group []stringIds - Security group IDs.
- Subnet
Id string - Subnet ID.
- Vpc
Id string - VPC ID.
- Auto
Renew float64 - Auto-renew flag. 0: disabled, 1: enabled.
- Cpu float64
- CPU cores.
- Disk
Size float64 - Disk size in GB.
- Force
Delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- Instance
Name string - Instance name. Supports up to 60 characters.
- Instance
Type string - Instance type. Valid values: base, single, cluster.
- Memory float64
- Memory size in GB.
- Mode string
- Availability zone mode for cluster type. Valid values: two, three.
- Node
Type string - Node type. Valid values: compute, normal, store.
- Params string
- Instance extra parameters, submitted via JSON.
- Pay
Period float64 - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- Product
Type float64 - Product version. 0: standard, 1: capacity-enhanced.
-
[]Vdb
Instance Resource Tag Args - Tag list.
- Timeouts
Vdb
Instance Timeouts Args - Vdb
Instance stringId - ID of the resource.
- Worker
Node float64Num - Number of worker nodes.
- pay_
mode number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- security_
group_ list(string)ids - Security group IDs.
- subnet_
id string - Subnet ID.
- vpc_
id string - VPC ID.
- auto_
renew number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu number
- CPU cores.
- disk_
size number - Disk size in GB.
- force_
delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance_
name string - Instance name. Supports up to 60 characters.
- instance_
type string - Instance type. Valid values: base, single, cluster.
- memory number
- Memory size in GB.
- mode string
- Availability zone mode for cluster type. Valid values: two, three.
- node_
type string - Node type. Valid values: compute, normal, store.
- params string
- Instance extra parameters, submitted via JSON.
- pay_
period number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product_
type number - Product version. 0: standard, 1: capacity-enhanced.
- list(object)
- Tag list.
- timeouts object
- vdb_
instance_ stringid - ID of the resource.
- worker_
node_ numbernum - Number of worker nodes.
- pay
Mode Double - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- security
Group List<String>Ids - Security group IDs.
- subnet
Id String - Subnet ID.
- vpc
Id String - VPC ID.
- auto
Renew Double - Auto-renew flag. 0: disabled, 1: enabled.
- cpu Double
- CPU cores.
- disk
Size Double - Disk size in GB.
- force
Delete Boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name String - Instance name. Supports up to 60 characters.
- instance
Type String - Instance type. Valid values: base, single, cluster.
- memory Double
- Memory size in GB.
- mode String
- Availability zone mode for cluster type. Valid values: two, three.
- node
Type String - Node type. Valid values: compute, normal, store.
- params String
- Instance extra parameters, submitted via JSON.
- pay
Period Double - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product
Type Double - Product version. 0: standard, 1: capacity-enhanced.
-
List<Vdb
Instance Resource Tag> - Tag list.
- timeouts
Vdb
Instance Timeouts - vdb
Instance StringId - ID of the resource.
- worker
Node DoubleNum - Number of worker nodes.
- pay
Mode number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- security
Group string[]Ids - Security group IDs.
- subnet
Id string - Subnet ID.
- vpc
Id string - VPC ID.
- auto
Renew number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu number
- CPU cores.
- disk
Size number - Disk size in GB.
- force
Delete boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name string - Instance name. Supports up to 60 characters.
- instance
Type string - Instance type. Valid values: base, single, cluster.
- memory number
- Memory size in GB.
- mode string
- Availability zone mode for cluster type. Valid values: two, three.
- node
Type string - Node type. Valid values: compute, normal, store.
- params string
- Instance extra parameters, submitted via JSON.
- pay
Period number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product
Type number - Product version. 0: standard, 1: capacity-enhanced.
-
Vdb
Instance Resource Tag[] - Tag list.
- timeouts
Vdb
Instance Timeouts - vdb
Instance stringId - ID of the resource.
- worker
Node numberNum - Number of worker nodes.
- pay_
mode float - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- security_
group_ Sequence[str]ids - Security group IDs.
- subnet_
id str - Subnet ID.
- vpc_
id str - VPC ID.
- auto_
renew float - Auto-renew flag. 0: disabled, 1: enabled.
- cpu float
- CPU cores.
- disk_
size float - Disk size in GB.
- force_
delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance_
name str - Instance name. Supports up to 60 characters.
- instance_
type str - Instance type. Valid values: base, single, cluster.
- memory float
- Memory size in GB.
- mode str
- Availability zone mode for cluster type. Valid values: two, three.
- node_
type str - Node type. Valid values: compute, normal, store.
- params str
- Instance extra parameters, submitted via JSON.
- pay_
period float - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product_
type float - Product version. 0: standard, 1: capacity-enhanced.
-
Sequence[Vdb
Instance Resource Tag Args] - Tag list.
- timeouts
Vdb
Instance Timeouts Args - vdb_
instance_ strid - ID of the resource.
- worker_
node_ floatnum - Number of worker nodes.
- pay
Mode Number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- security
Group List<String>Ids - Security group IDs.
- subnet
Id String - Subnet ID.
- vpc
Id String - VPC ID.
- auto
Renew Number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu Number
- CPU cores.
- disk
Size Number - Disk size in GB.
- force
Delete Boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name String - Instance name. Supports up to 60 characters.
- instance
Type String - Instance type. Valid values: base, single, cluster.
- memory Number
- Memory size in GB.
- mode String
- Availability zone mode for cluster type. Valid values: two, three.
- node
Type String - Node type. Valid values: compute, normal, store.
- params String
- Instance extra parameters, submitted via JSON.
- pay
Period Number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product
Type Number - Product version. 0: standard, 1: capacity-enhanced.
- List<Property Map>
- Tag list.
- timeouts Property Map
- vdb
Instance StringId - ID of the resource.
- worker
Node NumberNum - Number of worker nodes.
Outputs
All input properties are implicitly available as output properties. Additionally, the VdbInstance resource produces the following output properties:
- Api
Version string - API version.
- Created
At string - Creation time.
- Engine
Name string - Engine name.
- Engine
Version string - Engine version.
- Expired
At string - Expiration time.
- Extend string
- Extended information in JSON format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
No boolExpired - Whether the instance never expires.
- Isolate
At string - Isolation time.
- Networks
List<Vdb
Instance Network> - Network information.
- Nodes
List<Vdb
Instance Node> - Instance node list.
- Product string
- Product.
- Region string
- Region.
- double
- Shard number.
- Status string
- Instance status.
- Task
Status double - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- Wan
Address string - Public network address.
- Zone string
- Availability zone.
- Api
Version string - API version.
- Created
At string - Creation time.
- Engine
Name string - Engine name.
- Engine
Version string - Engine version.
- Expired
At string - Expiration time.
- Extend string
- Extended information in JSON format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
No boolExpired - Whether the instance never expires.
- Isolate
At string - Isolation time.
- Networks
[]Vdb
Instance Network - Network information.
- Nodes
[]Vdb
Instance Node - Instance node list.
- Product string
- Product.
- Region string
- Region.
- float64
- Shard number.
- Status string
- Instance status.
- Task
Status float64 - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- Wan
Address string - Public network address.
- Zone string
- Availability zone.
- api_
version string - API version.
- created_
at string - Creation time.
- engine_
name string - Engine name.
- engine_
version string - Engine version.
- expired_
at string - Expiration time.
- extend string
- Extended information in JSON format.
- id string
- The provider-assigned unique ID for this managed resource.
- is_
no_ boolexpired - Whether the instance never expires.
- isolate_
at string - Isolation time.
- networks list(object)
- Network information.
- nodes list(object)
- Instance node list.
- product string
- Product.
- region string
- Region.
- number
- Shard number.
- status string
- Instance status.
- task_
status number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- wan_
address string - Public network address.
- zone string
- Availability zone.
- api
Version String - API version.
- created
At String - Creation time.
- engine
Name String - Engine name.
- engine
Version String - Engine version.
- expired
At String - Expiration time.
- extend String
- Extended information in JSON format.
- id String
- The provider-assigned unique ID for this managed resource.
- is
No BooleanExpired - Whether the instance never expires.
- isolate
At String - Isolation time.
- networks
List<Vdb
Instance Network> - Network information.
- nodes
List<Vdb
Instance Node> - Instance node list.
- product String
- Product.
- region String
- Region.
- Double
- Shard number.
- status String
- Instance status.
- task
Status Double - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- wan
Address String - Public network address.
- zone String
- Availability zone.
- api
Version string - API version.
- created
At string - Creation time.
- engine
Name string - Engine name.
- engine
Version string - Engine version.
- expired
At string - Expiration time.
- extend string
- Extended information in JSON format.
- id string
- The provider-assigned unique ID for this managed resource.
- is
No booleanExpired - Whether the instance never expires.
- isolate
At string - Isolation time.
- networks
Vdb
Instance Network[] - Network information.
- nodes
Vdb
Instance Node[] - Instance node list.
- product string
- Product.
- region string
- Region.
- number
- Shard number.
- status string
- Instance status.
- task
Status number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- wan
Address string - Public network address.
- zone string
- Availability zone.
- api_
version str - API version.
- created_
at str - Creation time.
- engine_
name str - Engine name.
- engine_
version str - Engine version.
- expired_
at str - Expiration time.
- extend str
- Extended information in JSON format.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
no_ boolexpired - Whether the instance never expires.
- isolate_
at str - Isolation time.
- networks
Sequence[Vdb
Instance Network] - Network information.
- nodes
Sequence[Vdb
Instance Node] - Instance node list.
- product str
- Product.
- region str
- Region.
- float
- Shard number.
- status str
- Instance status.
- task_
status float - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- wan_
address str - Public network address.
- zone str
- Availability zone.
- api
Version String - API version.
- created
At String - Creation time.
- engine
Name String - Engine name.
- engine
Version String - Engine version.
- expired
At String - Expiration time.
- extend String
- Extended information in JSON format.
- id String
- The provider-assigned unique ID for this managed resource.
- is
No BooleanExpired - Whether the instance never expires.
- isolate
At String - Isolation time.
- networks List<Property Map>
- Network information.
- nodes List<Property Map>
- Instance node list.
- product String
- Product.
- region String
- Region.
- Number
- Shard number.
- status String
- Instance status.
- task
Status Number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- wan
Address String - Public network address.
- zone String
- Availability zone.
Look up Existing VdbInstance Resource
Get an existing VdbInstance 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?: VdbInstanceState, opts?: CustomResourceOptions): VdbInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_version: Optional[str] = None,
auto_renew: Optional[float] = None,
cpu: Optional[float] = None,
created_at: Optional[str] = None,
disk_size: Optional[float] = None,
engine_name: Optional[str] = None,
engine_version: Optional[str] = None,
expired_at: Optional[str] = None,
extend: Optional[str] = None,
force_delete: Optional[bool] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
is_no_expired: Optional[bool] = None,
isolate_at: Optional[str] = None,
memory: Optional[float] = None,
mode: Optional[str] = None,
networks: Optional[Sequence[VdbInstanceNetworkArgs]] = None,
node_type: Optional[str] = None,
nodes: Optional[Sequence[VdbInstanceNodeArgs]] = None,
params: Optional[str] = None,
pay_mode: Optional[float] = None,
pay_period: Optional[float] = None,
product: Optional[str] = None,
product_type: Optional[float] = None,
region: Optional[str] = None,
resource_tags: Optional[Sequence[VdbInstanceResourceTagArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
shard_num: Optional[float] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
task_status: Optional[float] = None,
timeouts: Optional[VdbInstanceTimeoutsArgs] = None,
vdb_instance_id: Optional[str] = None,
vpc_id: Optional[str] = None,
wan_address: Optional[str] = None,
worker_node_num: Optional[float] = None,
zone: Optional[str] = None) -> VdbInstancefunc GetVdbInstance(ctx *Context, name string, id IDInput, state *VdbInstanceState, opts ...ResourceOption) (*VdbInstance, error)public static VdbInstance Get(string name, Input<string> id, VdbInstanceState? state, CustomResourceOptions? opts = null)public static VdbInstance get(String name, Output<String> id, VdbInstanceState state, CustomResourceOptions options)resources: _: type: tencentcloud:VdbInstance get: id: ${id}import {
to = tencentcloud_vdbinstance.example
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.
- Api
Version string - API version.
- Auto
Renew double - Auto-renew flag. 0: disabled, 1: enabled.
- Cpu double
- CPU cores.
- Created
At string - Creation time.
- Disk
Size double - Disk size in GB.
- Engine
Name string - Engine name.
- Engine
Version string - Engine version.
- Expired
At string - Expiration time.
- Extend string
- Extended information in JSON format.
- Force
Delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- Instance
Name string - Instance name. Supports up to 60 characters.
- Instance
Type string - Instance type. Valid values: base, single, cluster.
- Is
No boolExpired - Whether the instance never expires.
- Isolate
At string - Isolation time.
- Memory double
- Memory size in GB.
- Mode string
- Availability zone mode for cluster type. Valid values: two, three.
- Networks
List<Vdb
Instance Network> - Network information.
- Node
Type string - Node type. Valid values: compute, normal, store.
- Nodes
List<Vdb
Instance Node> - Instance node list.
- Params string
- Instance extra parameters, submitted via JSON.
- Pay
Mode double - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- Pay
Period double - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- Product string
- Product.
- Product
Type double - Product version. 0: standard, 1: capacity-enhanced.
- Region string
- Region.
-
List<Vdb
Instance Resource Tag> - Tag list.
- Security
Group List<string>Ids - Security group IDs.
- Shard
Num double - Shard number.
- Status string
- Instance status.
- Subnet
Id string - Subnet ID.
- Task
Status double - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- Timeouts
Vdb
Instance Timeouts - Vdb
Instance stringId - ID of the resource.
- Vpc
Id string - VPC ID.
- Wan
Address string - Public network address.
- Worker
Node doubleNum - Number of worker nodes.
- Zone string
- Availability zone.
- Api
Version string - API version.
- Auto
Renew float64 - Auto-renew flag. 0: disabled, 1: enabled.
- Cpu float64
- CPU cores.
- Created
At string - Creation time.
- Disk
Size float64 - Disk size in GB.
- Engine
Name string - Engine name.
- Engine
Version string - Engine version.
- Expired
At string - Expiration time.
- Extend string
- Extended information in JSON format.
- Force
Delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- Instance
Name string - Instance name. Supports up to 60 characters.
- Instance
Type string - Instance type. Valid values: base, single, cluster.
- Is
No boolExpired - Whether the instance never expires.
- Isolate
At string - Isolation time.
- Memory float64
- Memory size in GB.
- Mode string
- Availability zone mode for cluster type. Valid values: two, three.
- Networks
[]Vdb
Instance Network Args - Network information.
- Node
Type string - Node type. Valid values: compute, normal, store.
- Nodes
[]Vdb
Instance Node Args - Instance node list.
- Params string
- Instance extra parameters, submitted via JSON.
- Pay
Mode float64 - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- Pay
Period float64 - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- Product string
- Product.
- Product
Type float64 - Product version. 0: standard, 1: capacity-enhanced.
- Region string
- Region.
-
[]Vdb
Instance Resource Tag Args - Tag list.
- Security
Group []stringIds - Security group IDs.
- Shard
Num float64 - Shard number.
- Status string
- Instance status.
- Subnet
Id string - Subnet ID.
- Task
Status float64 - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- Timeouts
Vdb
Instance Timeouts Args - Vdb
Instance stringId - ID of the resource.
- Vpc
Id string - VPC ID.
- Wan
Address string - Public network address.
- Worker
Node float64Num - Number of worker nodes.
- Zone string
- Availability zone.
- api_
version string - API version.
- auto_
renew number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu number
- CPU cores.
- created_
at string - Creation time.
- disk_
size number - Disk size in GB.
- engine_
name string - Engine name.
- engine_
version string - Engine version.
- expired_
at string - Expiration time.
- extend string
- Extended information in JSON format.
- force_
delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance_
name string - Instance name. Supports up to 60 characters.
- instance_
type string - Instance type. Valid values: base, single, cluster.
- is_
no_ boolexpired - Whether the instance never expires.
- isolate_
at string - Isolation time.
- memory number
- Memory size in GB.
- mode string
- Availability zone mode for cluster type. Valid values: two, three.
- networks list(object)
- Network information.
- node_
type string - Node type. Valid values: compute, normal, store.
- nodes list(object)
- Instance node list.
- params string
- Instance extra parameters, submitted via JSON.
- pay_
mode number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- pay_
period number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product string
- Product.
- product_
type number - Product version. 0: standard, 1: capacity-enhanced.
- region string
- Region.
- list(object)
- Tag list.
- security_
group_ list(string)ids - Security group IDs.
- shard_
num number - Shard number.
- status string
- Instance status.
- subnet_
id string - Subnet ID.
- task_
status number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- timeouts object
- vdb_
instance_ stringid - ID of the resource.
- vpc_
id string - VPC ID.
- wan_
address string - Public network address.
- worker_
node_ numbernum - Number of worker nodes.
- zone string
- Availability zone.
- api
Version String - API version.
- auto
Renew Double - Auto-renew flag. 0: disabled, 1: enabled.
- cpu Double
- CPU cores.
- created
At String - Creation time.
- disk
Size Double - Disk size in GB.
- engine
Name String - Engine name.
- engine
Version String - Engine version.
- expired
At String - Expiration time.
- extend String
- Extended information in JSON format.
- force
Delete Boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name String - Instance name. Supports up to 60 characters.
- instance
Type String - Instance type. Valid values: base, single, cluster.
- is
No BooleanExpired - Whether the instance never expires.
- isolate
At String - Isolation time.
- memory Double
- Memory size in GB.
- mode String
- Availability zone mode for cluster type. Valid values: two, three.
- networks
List<Vdb
Instance Network> - Network information.
- node
Type String - Node type. Valid values: compute, normal, store.
- nodes
List<Vdb
Instance Node> - Instance node list.
- params String
- Instance extra parameters, submitted via JSON.
- pay
Mode Double - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- pay
Period Double - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product String
- Product.
- product
Type Double - Product version. 0: standard, 1: capacity-enhanced.
- region String
- Region.
-
List<Vdb
Instance Resource Tag> - Tag list.
- security
Group List<String>Ids - Security group IDs.
- shard
Num Double - Shard number.
- status String
- Instance status.
- subnet
Id String - Subnet ID.
- task
Status Double - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- timeouts
Vdb
Instance Timeouts - vdb
Instance StringId - ID of the resource.
- vpc
Id String - VPC ID.
- wan
Address String - Public network address.
- worker
Node DoubleNum - Number of worker nodes.
- zone String
- Availability zone.
- api
Version string - API version.
- auto
Renew number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu number
- CPU cores.
- created
At string - Creation time.
- disk
Size number - Disk size in GB.
- engine
Name string - Engine name.
- engine
Version string - Engine version.
- expired
At string - Expiration time.
- extend string
- Extended information in JSON format.
- force
Delete boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name string - Instance name. Supports up to 60 characters.
- instance
Type string - Instance type. Valid values: base, single, cluster.
- is
No booleanExpired - Whether the instance never expires.
- isolate
At string - Isolation time.
- memory number
- Memory size in GB.
- mode string
- Availability zone mode for cluster type. Valid values: two, three.
- networks
Vdb
Instance Network[] - Network information.
- node
Type string - Node type. Valid values: compute, normal, store.
- nodes
Vdb
Instance Node[] - Instance node list.
- params string
- Instance extra parameters, submitted via JSON.
- pay
Mode number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- pay
Period number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product string
- Product.
- product
Type number - Product version. 0: standard, 1: capacity-enhanced.
- region string
- Region.
-
Vdb
Instance Resource Tag[] - Tag list.
- security
Group string[]Ids - Security group IDs.
- shard
Num number - Shard number.
- status string
- Instance status.
- subnet
Id string - Subnet ID.
- task
Status number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- timeouts
Vdb
Instance Timeouts - vdb
Instance stringId - ID of the resource.
- vpc
Id string - VPC ID.
- wan
Address string - Public network address.
- worker
Node numberNum - Number of worker nodes.
- zone string
- Availability zone.
- api_
version str - API version.
- auto_
renew float - Auto-renew flag. 0: disabled, 1: enabled.
- cpu float
- CPU cores.
- created_
at str - Creation time.
- disk_
size float - Disk size in GB.
- engine_
name str - Engine name.
- engine_
version str - Engine version.
- expired_
at str - Expiration time.
- extend str
- Extended information in JSON format.
- force_
delete bool - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance_
name str - Instance name. Supports up to 60 characters.
- instance_
type str - Instance type. Valid values: base, single, cluster.
- is_
no_ boolexpired - Whether the instance never expires.
- isolate_
at str - Isolation time.
- memory float
- Memory size in GB.
- mode str
- Availability zone mode for cluster type. Valid values: two, three.
- networks
Sequence[Vdb
Instance Network Args] - Network information.
- node_
type str - Node type. Valid values: compute, normal, store.
- nodes
Sequence[Vdb
Instance Node Args] - Instance node list.
- params str
- Instance extra parameters, submitted via JSON.
- pay_
mode float - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- pay_
period float - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product str
- Product.
- product_
type float - Product version. 0: standard, 1: capacity-enhanced.
- region str
- Region.
-
Sequence[Vdb
Instance Resource Tag Args] - Tag list.
- security_
group_ Sequence[str]ids - Security group IDs.
- shard_
num float - Shard number.
- status str
- Instance status.
- subnet_
id str - Subnet ID.
- task_
status float - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- timeouts
Vdb
Instance Timeouts Args - vdb_
instance_ strid - ID of the resource.
- vpc_
id str - VPC ID.
- wan_
address str - Public network address.
- worker_
node_ floatnum - Number of worker nodes.
- zone str
- Availability zone.
- api
Version String - API version.
- auto
Renew Number - Auto-renew flag. 0: disabled, 1: enabled.
- cpu Number
- CPU cores.
- created
At String - Creation time.
- disk
Size Number - Disk size in GB.
- engine
Name String - Engine name.
- engine
Version String - Engine version.
- expired
At String - Expiration time.
- extend String
- Extended information in JSON format.
- force
Delete Boolean - Whether to force delete (destroy) the instance. If false, only isolate to recycle bin. If true, isolate then destroy. Default is false.
- instance
Name String - Instance name. Supports up to 60 characters.
- instance
Type String - Instance type. Valid values: base, single, cluster.
- is
No BooleanExpired - Whether the instance never expires.
- isolate
At String - Isolation time.
- memory Number
- Memory size in GB.
- mode String
- Availability zone mode for cluster type. Valid values: two, three.
- networks List<Property Map>
- Network information.
- node
Type String - Node type. Valid values: compute, normal, store.
- nodes List<Property Map>
- Instance node list.
- params String
- Instance extra parameters, submitted via JSON.
- pay
Mode Number - Billing mode. 0: pay-as-you-go, 1: monthly subscription.
- pay
Period Number - Monthly subscription period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. Default is 1.
- product String
- Product.
- product
Type Number - Product version. 0: standard, 1: capacity-enhanced.
- region String
- Region.
- List<Property Map>
- Tag list.
- security
Group List<String>Ids - Security group IDs.
- shard
Num Number - Shard number.
- status String
- Instance status.
- subnet
Id String - Subnet ID.
- task
Status Number - Task status. 0: no task, 1: pending, 2-11: various operations in progress.
- timeouts Property Map
- vdb
Instance StringId - ID of the resource.
- vpc
Id String - VPC ID.
- wan
Address String - Public network address.
- worker
Node NumberNum - Number of worker nodes.
- zone String
- Availability zone.
Supporting Types
VdbInstanceNetwork, VdbInstanceNetworkArgs
- Expire
Time string - Old IP expiration time.
- Port double
- Internal port.
- Preserve
Duration double - Old IP preservation duration in days.
- Subnet
Id string - Subnet ID.
- Vip string
- Internal IP.
- Vpc
Id string - VPC ID.
- Expire
Time string - Old IP expiration time.
- Port float64
- Internal port.
- Preserve
Duration float64 - Old IP preservation duration in days.
- Subnet
Id string - Subnet ID.
- Vip string
- Internal IP.
- Vpc
Id string - VPC ID.
- expire_
time string - Old IP expiration time.
- port number
- Internal port.
- preserve_
duration number - Old IP preservation duration in days.
- subnet_
id string - Subnet ID.
- vip string
- Internal IP.
- vpc_
id string - VPC ID.
- expire
Time String - Old IP expiration time.
- port Double
- Internal port.
- preserve
Duration Double - Old IP preservation duration in days.
- subnet
Id String - Subnet ID.
- vip String
- Internal IP.
- vpc
Id String - VPC ID.
- expire
Time string - Old IP expiration time.
- port number
- Internal port.
- preserve
Duration number - Old IP preservation duration in days.
- subnet
Id string - Subnet ID.
- vip string
- Internal IP.
- vpc
Id string - VPC ID.
- expire_
time str - Old IP expiration time.
- port float
- Internal port.
- preserve_
duration float - Old IP preservation duration in days.
- subnet_
id str - Subnet ID.
- vip str
- Internal IP.
- vpc_
id str - VPC ID.
- expire
Time String - Old IP expiration time.
- port Number
- Internal port.
- preserve
Duration Number - Old IP preservation duration in days.
- subnet
Id String - Subnet ID.
- vip String
- Internal IP.
- vpc
Id String - VPC ID.
VdbInstanceNode, VdbInstanceNodeArgs
VdbInstanceResourceTag, VdbInstanceResourceTagArgs
VdbInstanceTimeouts, VdbInstanceTimeoutsArgs
Import
VDB instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/vdbInstance:VdbInstance example vdb-xxxxxxxx
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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
