1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DcdbHourdbInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DcdbHourdbInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a DCDB hourdb instance

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.DcdbHourdbInstance("example", {
        dbVersionId: "8.0",
        instanceName: "tf-example",
        resourceTags: [{
            tagKey: "tagKey",
            tagValue: "tagValue",
        }],
        securityGroupId: "sg-4z20n68d",
        shardCount: 2,
        shardMemory: 4,
        shardNodeCount: 2,
        shardStorage: 50,
        subnetId: "subnet-hhi88a58",
        vpcId: "vpc-i5yyodl9",
        zones: [
            "ap-guangzhou-6",
            "ap-guangzhou-7",
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DcdbHourdbInstance("example",
        db_version_id="8.0",
        instance_name="tf-example",
        resource_tags=[{
            "tag_key": "tagKey",
            "tag_value": "tagValue",
        }],
        security_group_id="sg-4z20n68d",
        shard_count=2,
        shard_memory=4,
        shard_node_count=2,
        shard_storage=50,
        subnet_id="subnet-hhi88a58",
        vpc_id="vpc-i5yyodl9",
        zones=[
            "ap-guangzhou-6",
            "ap-guangzhou-7",
        ])
    
    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.NewDcdbHourdbInstance(ctx, "example", &tencentcloud.DcdbHourdbInstanceArgs{
    			DbVersionId:  pulumi.String("8.0"),
    			InstanceName: pulumi.String("tf-example"),
    			ResourceTags: tencentcloud.DcdbHourdbInstanceResourceTagArray{
    				&tencentcloud.DcdbHourdbInstanceResourceTagArgs{
    					TagKey:   pulumi.String("tagKey"),
    					TagValue: pulumi.String("tagValue"),
    				},
    			},
    			SecurityGroupId: pulumi.String("sg-4z20n68d"),
    			ShardCount:      pulumi.Float64(2),
    			ShardMemory:     pulumi.Float64(4),
    			ShardNodeCount:  pulumi.Float64(2),
    			ShardStorage:    pulumi.Float64(50),
    			SubnetId:        pulumi.String("subnet-hhi88a58"),
    			VpcId:           pulumi.String("vpc-i5yyodl9"),
    			Zones: pulumi.StringArray{
    				pulumi.String("ap-guangzhou-6"),
    				pulumi.String("ap-guangzhou-7"),
    			},
    		})
    		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.DcdbHourdbInstance("example", new()
        {
            DbVersionId = "8.0",
            InstanceName = "tf-example",
            ResourceTags = new[]
            {
                new Tencentcloud.Inputs.DcdbHourdbInstanceResourceTagArgs
                {
                    TagKey = "tagKey",
                    TagValue = "tagValue",
                },
            },
            SecurityGroupId = "sg-4z20n68d",
            ShardCount = 2,
            ShardMemory = 4,
            ShardNodeCount = 2,
            ShardStorage = 50,
            SubnetId = "subnet-hhi88a58",
            VpcId = "vpc-i5yyodl9",
            Zones = new[]
            {
                "ap-guangzhou-6",
                "ap-guangzhou-7",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DcdbHourdbInstance;
    import com.pulumi.tencentcloud.DcdbHourdbInstanceArgs;
    import com.pulumi.tencentcloud.inputs.DcdbHourdbInstanceResourceTagArgs;
    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 DcdbHourdbInstance("example", DcdbHourdbInstanceArgs.builder()
                .dbVersionId("8.0")
                .instanceName("tf-example")
                .resourceTags(DcdbHourdbInstanceResourceTagArgs.builder()
                    .tagKey("tagKey")
                    .tagValue("tagValue")
                    .build())
                .securityGroupId("sg-4z20n68d")
                .shardCount("2")
                .shardMemory("4")
                .shardNodeCount("2")
                .shardStorage("50")
                .subnetId("subnet-hhi88a58")
                .vpcId("vpc-i5yyodl9")
                .zones(            
                    "ap-guangzhou-6",
                    "ap-guangzhou-7")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:DcdbHourdbInstance
        properties:
          dbVersionId: '8.0'
          instanceName: tf-example
          resourceTags:
            - tagKey: tagKey
              tagValue: tagValue
          securityGroupId: sg-4z20n68d
          shardCount: '2'
          shardMemory: '4'
          shardNodeCount: '2'
          shardStorage: '50'
          subnetId: subnet-hhi88a58
          vpcId: vpc-i5yyodl9
          zones:
            - ap-guangzhou-6
            - ap-guangzhou-7
    

    Create DcdbHourdbInstance Resource

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

    Constructor syntax

    new DcdbHourdbInstance(name: string, args: DcdbHourdbInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def DcdbHourdbInstance(resource_name: str,
                           args: DcdbHourdbInstanceArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DcdbHourdbInstance(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           shard_count: Optional[float] = None,
                           shard_storage: Optional[float] = None,
                           shard_node_count: Optional[float] = None,
                           shard_memory: Optional[float] = None,
                           extranet_access: Optional[bool] = None,
                           dcn_region: Optional[str] = None,
                           ipv6_flag: Optional[float] = None,
                           project_id: Optional[float] = None,
                           resource_tags: Optional[Sequence[DcdbHourdbInstanceResourceTagArgs]] = None,
                           security_group_id: Optional[str] = None,
                           db_version_id: Optional[str] = None,
                           instance_name: Optional[str] = None,
                           dcn_instance_id: Optional[str] = None,
                           dcdb_hourdb_instance_id: Optional[str] = None,
                           subnet_id: Optional[str] = None,
                           vip: Optional[str] = None,
                           vipv6: Optional[str] = None,
                           vpc_id: Optional[str] = None,
                           zones: Optional[Sequence[str]] = None)
    func NewDcdbHourdbInstance(ctx *Context, name string, args DcdbHourdbInstanceArgs, opts ...ResourceOption) (*DcdbHourdbInstance, error)
    public DcdbHourdbInstance(string name, DcdbHourdbInstanceArgs args, CustomResourceOptions? opts = null)
    public DcdbHourdbInstance(String name, DcdbHourdbInstanceArgs args)
    public DcdbHourdbInstance(String name, DcdbHourdbInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DcdbHourdbInstance
    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 DcdbHourdbInstanceArgs
    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 DcdbHourdbInstanceArgs
    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 DcdbHourdbInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DcdbHourdbInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DcdbHourdbInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DcdbHourdbInstance 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 DcdbHourdbInstance resource accepts the following input properties:

    ShardCount double
    instance shard count.
    ShardMemory double
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardNodeCount double
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardStorage double
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    DbVersionId string
    db engine version, default to Percona 5.7.17.
    DcdbHourdbInstanceId string
    ID of the resource.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    ExtranetAccess bool
    Whether to open the extranet access.
    InstanceName string
    name of this instance.
    Ipv6Flag double
    Whether to support IPv6.
    ProjectId double
    project id.
    ResourceTags List<DcdbHourdbInstanceResourceTag>
    resource tags.
    SecurityGroupId string
    security group id.
    SubnetId string
    subnet id, its required when vpcId is set.
    Vip string
    The field is required to specify VIP.
    Vipv6 string
    The field is required to specify VIPv6.
    VpcId string
    vpc id.
    Zones List<string>
    available zone.
    ShardCount float64
    instance shard count.
    ShardMemory float64
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardNodeCount float64
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardStorage float64
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    DbVersionId string
    db engine version, default to Percona 5.7.17.
    DcdbHourdbInstanceId string
    ID of the resource.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    ExtranetAccess bool
    Whether to open the extranet access.
    InstanceName string
    name of this instance.
    Ipv6Flag float64
    Whether to support IPv6.
    ProjectId float64
    project id.
    ResourceTags []DcdbHourdbInstanceResourceTagArgs
    resource tags.
    SecurityGroupId string
    security group id.
    SubnetId string
    subnet id, its required when vpcId is set.
    Vip string
    The field is required to specify VIP.
    Vipv6 string
    The field is required to specify VIPv6.
    VpcId string
    vpc id.
    Zones []string
    available zone.
    shardCount Double
    instance shard count.
    shardMemory Double
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount Double
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage Double
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    dbVersionId String
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId String
    ID of the resource.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    extranetAccess Boolean
    Whether to open the extranet access.
    instanceName String
    name of this instance.
    ipv6Flag Double
    Whether to support IPv6.
    projectId Double
    project id.
    resourceTags List<DcdbHourdbInstanceResourceTag>
    resource tags.
    securityGroupId String
    security group id.
    subnetId String
    subnet id, its required when vpcId is set.
    vip String
    The field is required to specify VIP.
    vipv6 String
    The field is required to specify VIPv6.
    vpcId String
    vpc id.
    zones List<String>
    available zone.
    shardCount number
    instance shard count.
    shardMemory number
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount number
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage number
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    dbVersionId string
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId string
    ID of the resource.
    dcnInstanceId string
    DCN source instance ID.
    dcnRegion string
    DCN source region.
    extranetAccess boolean
    Whether to open the extranet access.
    instanceName string
    name of this instance.
    ipv6Flag number
    Whether to support IPv6.
    projectId number
    project id.
    resourceTags DcdbHourdbInstanceResourceTag[]
    resource tags.
    securityGroupId string
    security group id.
    subnetId string
    subnet id, its required when vpcId is set.
    vip string
    The field is required to specify VIP.
    vipv6 string
    The field is required to specify VIPv6.
    vpcId string
    vpc id.
    zones string[]
    available zone.
    shard_count float
    instance shard count.
    shard_memory float
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shard_node_count float
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shard_storage float
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    db_version_id str
    db engine version, default to Percona 5.7.17.
    dcdb_hourdb_instance_id str
    ID of the resource.
    dcn_instance_id str
    DCN source instance ID.
    dcn_region str
    DCN source region.
    extranet_access bool
    Whether to open the extranet access.
    instance_name str
    name of this instance.
    ipv6_flag float
    Whether to support IPv6.
    project_id float
    project id.
    resource_tags Sequence[DcdbHourdbInstanceResourceTagArgs]
    resource tags.
    security_group_id str
    security group id.
    subnet_id str
    subnet id, its required when vpcId is set.
    vip str
    The field is required to specify VIP.
    vipv6 str
    The field is required to specify VIPv6.
    vpc_id str
    vpc id.
    zones Sequence[str]
    available zone.
    shardCount Number
    instance shard count.
    shardMemory Number
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount Number
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage Number
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    dbVersionId String
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId String
    ID of the resource.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    extranetAccess Boolean
    Whether to open the extranet access.
    instanceName String
    name of this instance.
    ipv6Flag Number
    Whether to support IPv6.
    projectId Number
    project id.
    resourceTags List<Property Map>
    resource tags.
    securityGroupId String
    security group id.
    subnetId String
    subnet id, its required when vpcId is set.
    vip String
    The field is required to specify VIP.
    vipv6 String
    The field is required to specify VIPv6.
    vpcId String
    vpc id.
    zones List<String>
    available zone.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Vport double
    Intranet port.
    Id string
    The provider-assigned unique ID for this managed resource.
    Vport float64
    Intranet port.
    id String
    The provider-assigned unique ID for this managed resource.
    vport Double
    Intranet port.
    id string
    The provider-assigned unique ID for this managed resource.
    vport number
    Intranet port.
    id str
    The provider-assigned unique ID for this managed resource.
    vport float
    Intranet port.
    id String
    The provider-assigned unique ID for this managed resource.
    vport Number
    Intranet port.

    Look up Existing DcdbHourdbInstance Resource

    Get an existing DcdbHourdbInstance 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?: DcdbHourdbInstanceState, opts?: CustomResourceOptions): DcdbHourdbInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            db_version_id: Optional[str] = None,
            dcdb_hourdb_instance_id: Optional[str] = None,
            dcn_instance_id: Optional[str] = None,
            dcn_region: Optional[str] = None,
            extranet_access: Optional[bool] = None,
            instance_name: Optional[str] = None,
            ipv6_flag: Optional[float] = None,
            project_id: Optional[float] = None,
            resource_tags: Optional[Sequence[DcdbHourdbInstanceResourceTagArgs]] = None,
            security_group_id: Optional[str] = None,
            shard_count: Optional[float] = None,
            shard_memory: Optional[float] = None,
            shard_node_count: Optional[float] = None,
            shard_storage: Optional[float] = None,
            subnet_id: Optional[str] = None,
            vip: Optional[str] = None,
            vipv6: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vport: Optional[float] = None,
            zones: Optional[Sequence[str]] = None) -> DcdbHourdbInstance
    func GetDcdbHourdbInstance(ctx *Context, name string, id IDInput, state *DcdbHourdbInstanceState, opts ...ResourceOption) (*DcdbHourdbInstance, error)
    public static DcdbHourdbInstance Get(string name, Input<string> id, DcdbHourdbInstanceState? state, CustomResourceOptions? opts = null)
    public static DcdbHourdbInstance get(String name, Output<String> id, DcdbHourdbInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DcdbHourdbInstance    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.
    The following state arguments are supported:
    DbVersionId string
    db engine version, default to Percona 5.7.17.
    DcdbHourdbInstanceId string
    ID of the resource.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    ExtranetAccess bool
    Whether to open the extranet access.
    InstanceName string
    name of this instance.
    Ipv6Flag double
    Whether to support IPv6.
    ProjectId double
    project id.
    ResourceTags List<DcdbHourdbInstanceResourceTag>
    resource tags.
    SecurityGroupId string
    security group id.
    ShardCount double
    instance shard count.
    ShardMemory double
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardNodeCount double
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardStorage double
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    SubnetId string
    subnet id, its required when vpcId is set.
    Vip string
    The field is required to specify VIP.
    Vipv6 string
    The field is required to specify VIPv6.
    VpcId string
    vpc id.
    Vport double
    Intranet port.
    Zones List<string>
    available zone.
    DbVersionId string
    db engine version, default to Percona 5.7.17.
    DcdbHourdbInstanceId string
    ID of the resource.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    ExtranetAccess bool
    Whether to open the extranet access.
    InstanceName string
    name of this instance.
    Ipv6Flag float64
    Whether to support IPv6.
    ProjectId float64
    project id.
    ResourceTags []DcdbHourdbInstanceResourceTagArgs
    resource tags.
    SecurityGroupId string
    security group id.
    ShardCount float64
    instance shard count.
    ShardMemory float64
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardNodeCount float64
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    ShardStorage float64
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    SubnetId string
    subnet id, its required when vpcId is set.
    Vip string
    The field is required to specify VIP.
    Vipv6 string
    The field is required to specify VIPv6.
    VpcId string
    vpc id.
    Vport float64
    Intranet port.
    Zones []string
    available zone.
    dbVersionId String
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId String
    ID of the resource.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    extranetAccess Boolean
    Whether to open the extranet access.
    instanceName String
    name of this instance.
    ipv6Flag Double
    Whether to support IPv6.
    projectId Double
    project id.
    resourceTags List<DcdbHourdbInstanceResourceTag>
    resource tags.
    securityGroupId String
    security group id.
    shardCount Double
    instance shard count.
    shardMemory Double
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount Double
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage Double
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    subnetId String
    subnet id, its required when vpcId is set.
    vip String
    The field is required to specify VIP.
    vipv6 String
    The field is required to specify VIPv6.
    vpcId String
    vpc id.
    vport Double
    Intranet port.
    zones List<String>
    available zone.
    dbVersionId string
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId string
    ID of the resource.
    dcnInstanceId string
    DCN source instance ID.
    dcnRegion string
    DCN source region.
    extranetAccess boolean
    Whether to open the extranet access.
    instanceName string
    name of this instance.
    ipv6Flag number
    Whether to support IPv6.
    projectId number
    project id.
    resourceTags DcdbHourdbInstanceResourceTag[]
    resource tags.
    securityGroupId string
    security group id.
    shardCount number
    instance shard count.
    shardMemory number
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount number
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage number
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    subnetId string
    subnet id, its required when vpcId is set.
    vip string
    The field is required to specify VIP.
    vipv6 string
    The field is required to specify VIPv6.
    vpcId string
    vpc id.
    vport number
    Intranet port.
    zones string[]
    available zone.
    db_version_id str
    db engine version, default to Percona 5.7.17.
    dcdb_hourdb_instance_id str
    ID of the resource.
    dcn_instance_id str
    DCN source instance ID.
    dcn_region str
    DCN source region.
    extranet_access bool
    Whether to open the extranet access.
    instance_name str
    name of this instance.
    ipv6_flag float
    Whether to support IPv6.
    project_id float
    project id.
    resource_tags Sequence[DcdbHourdbInstanceResourceTagArgs]
    resource tags.
    security_group_id str
    security group id.
    shard_count float
    instance shard count.
    shard_memory float
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shard_node_count float
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shard_storage float
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    subnet_id str
    subnet id, its required when vpcId is set.
    vip str
    The field is required to specify VIP.
    vipv6 str
    The field is required to specify VIPv6.
    vpc_id str
    vpc id.
    vport float
    Intranet port.
    zones Sequence[str]
    available zone.
    dbVersionId String
    db engine version, default to Percona 5.7.17.
    dcdbHourdbInstanceId String
    ID of the resource.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    extranetAccess Boolean
    Whether to open the extranet access.
    instanceName String
    name of this instance.
    ipv6Flag Number
    Whether to support IPv6.
    projectId Number
    project id.
    resourceTags List<Property Map>
    resource tags.
    securityGroupId String
    security group id.
    shardCount Number
    instance shard count.
    shardMemory Number
    memory(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    shardNodeCount Number
    node count for each shard. It can be obtained by querying api DescribeShardSpec.
    shardStorage Number
    storage(GB) for each shard. It can be obtained by querying api DescribeShardSpec.
    subnetId String
    subnet id, its required when vpcId is set.
    vip String
    The field is required to specify VIP.
    vipv6 String
    The field is required to specify VIPv6.
    vpcId String
    vpc id.
    vport Number
    Intranet port.
    zones List<String>
    available zone.

    Supporting Types

    DcdbHourdbInstanceResourceTag, DcdbHourdbInstanceResourceTagArgs

    TagKey string
    tag key.
    TagValue string
    tag value.
    TagKey string
    tag key.
    TagValue string
    tag value.
    tagKey String
    tag key.
    tagValue String
    tag value.
    tagKey string
    tag key.
    tagValue string
    tag value.
    tag_key str
    tag key.
    tag_value str
    tag value.
    tagKey String
    tag key.
    tagValue String
    tag value.

    Import

    DCDB hourdb instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dcdbHourdbInstance:DcdbHourdbInstance example tdsqlshard-nr6j5sed
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack