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

tencentcloud.SqlserverGeneralCloudRoInstance

Explore with Pulumi AI

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

    Provides a resource to create a sqlserver general_cloud_ro_instance

    Example Usage

    If read_only_group_type value is 1 - Ship according to one instance and one read-only group:

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getAvailabilityZonesByProduct({
        product: "sqlserver",
    });
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: zones.then(zones => zones.zones?.[4]?.name),
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.0.0/16",
        isMulticast: false,
    });
    const securityGroup = new tencentcloud.SecurityGroup("securityGroup", {description: "desc."});
    const exampleSqlserverGeneralCloudInstance = new tencentcloud.SqlserverGeneralCloudInstance("exampleSqlserverGeneralCloudInstance", {
        zone: zones.then(zones => zones.zones?.[4]?.name),
        memory: 4,
        storage: 100,
        cpu: 2,
        machineType: "CLOUD_HSSD",
        instanceChargeType: "POSTPAID",
        projectId: 0,
        subnetId: subnet.subnetId,
        vpcId: vpc.vpcId,
        dbVersion: "2008R2",
        securityGroupLists: [securityGroup.securityGroupId],
        weeklies: [
            1,
            2,
            3,
            5,
            6,
            7,
        ],
        startTime: "00:00",
        span: 6,
        resourceTags: [{
            tagKey: "test",
            tagValue: "test",
        }],
        collation: "Chinese_PRC_CI_AS",
        timeZone: "China Standard Time",
    });
    const exampleSqlserverGeneralCloudRoInstance = new tencentcloud.SqlserverGeneralCloudRoInstance("exampleSqlserverGeneralCloudRoInstance", {
        instanceId: exampleSqlserverGeneralCloudInstance.sqlserverGeneralCloudInstanceId,
        zone: zones.then(zones => zones.zones?.[4]?.name),
        readOnlyGroupType: 1,
        memory: 4,
        storage: 100,
        cpu: 2,
        machineType: "CLOUD_BSSD",
        instanceChargeType: "POSTPAID",
        subnetId: subnet.subnetId,
        vpcId: vpc.vpcId,
        securityGroupLists: [securityGroup.securityGroupId],
        collation: "Chinese_PRC_CI_AS",
        timeZone: "China Standard Time",
        resourceTags: {
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_availability_zones_by_product(product="sqlserver")
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=zones.zones[4].name,
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.0.0/16",
        is_multicast=False)
    security_group = tencentcloud.SecurityGroup("securityGroup", description="desc.")
    example_sqlserver_general_cloud_instance = tencentcloud.SqlserverGeneralCloudInstance("exampleSqlserverGeneralCloudInstance",
        zone=zones.zones[4].name,
        memory=4,
        storage=100,
        cpu=2,
        machine_type="CLOUD_HSSD",
        instance_charge_type="POSTPAID",
        project_id=0,
        subnet_id=subnet.subnet_id,
        vpc_id=vpc.vpc_id,
        db_version="2008R2",
        security_group_lists=[security_group.security_group_id],
        weeklies=[
            1,
            2,
            3,
            5,
            6,
            7,
        ],
        start_time="00:00",
        span=6,
        resource_tags=[{
            "tag_key": "test",
            "tag_value": "test",
        }],
        collation="Chinese_PRC_CI_AS",
        time_zone="China Standard Time")
    example_sqlserver_general_cloud_ro_instance = tencentcloud.SqlserverGeneralCloudRoInstance("exampleSqlserverGeneralCloudRoInstance",
        instance_id=example_sqlserver_general_cloud_instance.sqlserver_general_cloud_instance_id,
        zone=zones.zones[4].name,
        read_only_group_type=1,
        memory=4,
        storage=100,
        cpu=2,
        machine_type="CLOUD_BSSD",
        instance_charge_type="POSTPAID",
        subnet_id=subnet.subnet_id,
        vpc_id=vpc.vpc_id,
        security_group_lists=[security_group.security_group_id],
        collation="Chinese_PRC_CI_AS",
        time_zone="China Standard Time",
        resource_tags={
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        })
    
    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 {
    		zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
    			Product: "sqlserver",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(zones.Zones[4].Name),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		securityGroup, err := tencentcloud.NewSecurityGroup(ctx, "securityGroup", &tencentcloud.SecurityGroupArgs{
    			Description: pulumi.String("desc."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSqlserverGeneralCloudInstance, err := tencentcloud.NewSqlserverGeneralCloudInstance(ctx, "exampleSqlserverGeneralCloudInstance", &tencentcloud.SqlserverGeneralCloudInstanceArgs{
    			Zone:               pulumi.String(zones.Zones[4].Name),
    			Memory:             pulumi.Float64(4),
    			Storage:            pulumi.Float64(100),
    			Cpu:                pulumi.Float64(2),
    			MachineType:        pulumi.String("CLOUD_HSSD"),
    			InstanceChargeType: pulumi.String("POSTPAID"),
    			ProjectId:          pulumi.Float64(0),
    			SubnetId:           subnet.SubnetId,
    			VpcId:              vpc.VpcId,
    			DbVersion:          pulumi.String("2008R2"),
    			SecurityGroupLists: pulumi.StringArray{
    				securityGroup.SecurityGroupId,
    			},
    			Weeklies: pulumi.Float64Array{
    				pulumi.Float64(1),
    				pulumi.Float64(2),
    				pulumi.Float64(3),
    				pulumi.Float64(5),
    				pulumi.Float64(6),
    				pulumi.Float64(7),
    			},
    			StartTime: pulumi.String("00:00"),
    			Span:      pulumi.Float64(6),
    			ResourceTags: tencentcloud.SqlserverGeneralCloudInstanceResourceTagArray{
    				&tencentcloud.SqlserverGeneralCloudInstanceResourceTagArgs{
    					TagKey:   pulumi.String("test"),
    					TagValue: pulumi.String("test"),
    				},
    			},
    			Collation: pulumi.String("Chinese_PRC_CI_AS"),
    			TimeZone:  pulumi.String("China Standard Time"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewSqlserverGeneralCloudRoInstance(ctx, "exampleSqlserverGeneralCloudRoInstance", &tencentcloud.SqlserverGeneralCloudRoInstanceArgs{
    			InstanceId:         exampleSqlserverGeneralCloudInstance.SqlserverGeneralCloudInstanceId,
    			Zone:               pulumi.String(zones.Zones[4].Name),
    			ReadOnlyGroupType:  pulumi.Float64(1),
    			Memory:             pulumi.Float64(4),
    			Storage:            pulumi.Float64(100),
    			Cpu:                pulumi.Float64(2),
    			MachineType:        pulumi.String("CLOUD_BSSD"),
    			InstanceChargeType: pulumi.String("POSTPAID"),
    			SubnetId:           subnet.SubnetId,
    			VpcId:              vpc.VpcId,
    			SecurityGroupLists: pulumi.StringArray{
    				securityGroup.SecurityGroupId,
    			},
    			Collation: pulumi.String("Chinese_PRC_CI_AS"),
    			TimeZone:  pulumi.String("China Standard Time"),
    			ResourceTags: pulumi.StringMap{
    				"test-key1": pulumi.String("test-value1"),
    				"test-key2": pulumi.String("test-value2"),
    			},
    		})
    		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 zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
        {
            Product = "sqlserver",
        });
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[4]?.Name),
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.0.0/16",
            IsMulticast = false,
        });
    
        var securityGroup = new Tencentcloud.SecurityGroup("securityGroup", new()
        {
            Description = "desc.",
        });
    
        var exampleSqlserverGeneralCloudInstance = new Tencentcloud.SqlserverGeneralCloudInstance("exampleSqlserverGeneralCloudInstance", new()
        {
            Zone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[4]?.Name),
            Memory = 4,
            Storage = 100,
            Cpu = 2,
            MachineType = "CLOUD_HSSD",
            InstanceChargeType = "POSTPAID",
            ProjectId = 0,
            SubnetId = subnet.SubnetId,
            VpcId = vpc.VpcId,
            DbVersion = "2008R2",
            SecurityGroupLists = new[]
            {
                securityGroup.SecurityGroupId,
            },
            Weeklies = new[]
            {
                1,
                2,
                3,
                5,
                6,
                7,
            },
            StartTime = "00:00",
            Span = 6,
            ResourceTags = new[]
            {
                new Tencentcloud.Inputs.SqlserverGeneralCloudInstanceResourceTagArgs
                {
                    TagKey = "test",
                    TagValue = "test",
                },
            },
            Collation = "Chinese_PRC_CI_AS",
            TimeZone = "China Standard Time",
        });
    
        var exampleSqlserverGeneralCloudRoInstance = new Tencentcloud.SqlserverGeneralCloudRoInstance("exampleSqlserverGeneralCloudRoInstance", new()
        {
            InstanceId = exampleSqlserverGeneralCloudInstance.SqlserverGeneralCloudInstanceId,
            Zone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[4]?.Name),
            ReadOnlyGroupType = 1,
            Memory = 4,
            Storage = 100,
            Cpu = 2,
            MachineType = "CLOUD_BSSD",
            InstanceChargeType = "POSTPAID",
            SubnetId = subnet.SubnetId,
            VpcId = vpc.VpcId,
            SecurityGroupLists = new[]
            {
                securityGroup.SecurityGroupId,
            },
            Collation = "Chinese_PRC_CI_AS",
            TimeZone = "China Standard Time",
            ResourceTags = 
            {
                { "test-key1", "test-value1" },
                { "test-key2", "test-value2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.SecurityGroup;
    import com.pulumi.tencentcloud.SecurityGroupArgs;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudInstance;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudInstanceArgs;
    import com.pulumi.tencentcloud.inputs.SqlserverGeneralCloudInstanceResourceTagArgs;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstance;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstanceArgs;
    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 zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
                .product("sqlserver")
                .build());
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[4].name()))
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.0.0/16")
                .isMulticast(false)
                .build());
    
            var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
                .description("desc.")
                .build());
    
            var exampleSqlserverGeneralCloudInstance = new SqlserverGeneralCloudInstance("exampleSqlserverGeneralCloudInstance", SqlserverGeneralCloudInstanceArgs.builder()
                .zone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[4].name()))
                .memory(4)
                .storage(100)
                .cpu(2)
                .machineType("CLOUD_HSSD")
                .instanceChargeType("POSTPAID")
                .projectId(0)
                .subnetId(subnet.subnetId())
                .vpcId(vpc.vpcId())
                .dbVersion("2008R2")
                .securityGroupLists(securityGroup.securityGroupId())
                .weeklies(            
                    1,
                    2,
                    3,
                    5,
                    6,
                    7)
                .startTime("00:00")
                .span(6)
                .resourceTags(SqlserverGeneralCloudInstanceResourceTagArgs.builder()
                    .tagKey("test")
                    .tagValue("test")
                    .build())
                .collation("Chinese_PRC_CI_AS")
                .timeZone("China Standard Time")
                .build());
    
            var exampleSqlserverGeneralCloudRoInstance = new SqlserverGeneralCloudRoInstance("exampleSqlserverGeneralCloudRoInstance", SqlserverGeneralCloudRoInstanceArgs.builder()
                .instanceId(exampleSqlserverGeneralCloudInstance.sqlserverGeneralCloudInstanceId())
                .zone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[4].name()))
                .readOnlyGroupType(1)
                .memory(4)
                .storage(100)
                .cpu(2)
                .machineType("CLOUD_BSSD")
                .instanceChargeType("POSTPAID")
                .subnetId(subnet.subnetId())
                .vpcId(vpc.vpcId())
                .securityGroupLists(securityGroup.securityGroupId())
                .collation("Chinese_PRC_CI_AS")
                .timeZone("China Standard Time")
                .resourceTags(Map.ofEntries(
                    Map.entry("test-key1", "test-value1"),
                    Map.entry("test-key2", "test-value2")
                ))
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${zones.zones[4].name}
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.0.0/16
          isMulticast: false
      securityGroup:
        type: tencentcloud:SecurityGroup
        properties:
          description: desc.
      exampleSqlserverGeneralCloudInstance:
        type: tencentcloud:SqlserverGeneralCloudInstance
        properties:
          zone: ${zones.zones[4].name}
          memory: 4
          storage: 100
          cpu: 2
          machineType: CLOUD_HSSD
          instanceChargeType: POSTPAID
          projectId: 0
          subnetId: ${subnet.subnetId}
          vpcId: ${vpc.vpcId}
          dbVersion: 2008R2
          securityGroupLists:
            - ${securityGroup.securityGroupId}
          weeklies:
            - 1
            - 2
            - 3
            - 5
            - 6
            - 7
          startTime: 00:00
          span: 6
          resourceTags:
            - tagKey: test
              tagValue: test
          collation: Chinese_PRC_CI_AS
          timeZone: China Standard Time
      exampleSqlserverGeneralCloudRoInstance:
        type: tencentcloud:SqlserverGeneralCloudRoInstance
        properties:
          instanceId: ${exampleSqlserverGeneralCloudInstance.sqlserverGeneralCloudInstanceId}
          zone: ${zones.zones[4].name}
          readOnlyGroupType: 1
          memory: 4
          storage: 100
          cpu: 2
          machineType: CLOUD_BSSD
          instanceChargeType: POSTPAID
          subnetId: ${subnet.subnetId}
          vpcId: ${vpc.vpcId}
          securityGroupLists:
            - ${securityGroup.securityGroupId}
          collation: Chinese_PRC_CI_AS
          timeZone: China Standard Time
          resourceTags:
            test-key1: test-value1
            test-key2: test-value2
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getAvailabilityZonesByProduct
          arguments:
            product: sqlserver
    

    If read_only_group_type value is 2 - Ship after creating a read-only group, all instances are under this read-only group:

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.SqlserverGeneralCloudRoInstance("example", {
        instanceId: tencentcloud_sqlserver_general_cloud_instance.example.id,
        zone: data.tencentcloud_availability_zones_by_product.zones.zones[4].name,
        readOnlyGroupType: 2,
        readOnlyGroupName: "test-ro-group",
        readOnlyGroupIsOfflineDelay: 1,
        readOnlyGroupMaxDelayTime: 10,
        readOnlyGroupMinInGroup: 1,
        memory: 4,
        storage: 100,
        cpu: 2,
        machineType: "CLOUD_BSSD",
        instanceChargeType: "POSTPAID",
        subnetId: tencentcloud_subnet.subnet.id,
        vpcId: tencentcloud_vpc.vpc.id,
        securityGroupLists: [tencentcloud_security_group.security_group.id],
        collation: "Chinese_PRC_CI_AS",
        timeZone: "China Standard Time",
        resourceTags: {
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.SqlserverGeneralCloudRoInstance("example",
        instance_id=tencentcloud_sqlserver_general_cloud_instance["example"]["id"],
        zone=data["tencentcloud_availability_zones_by_product"]["zones"]["zones"][4]["name"],
        read_only_group_type=2,
        read_only_group_name="test-ro-group",
        read_only_group_is_offline_delay=1,
        read_only_group_max_delay_time=10,
        read_only_group_min_in_group=1,
        memory=4,
        storage=100,
        cpu=2,
        machine_type="CLOUD_BSSD",
        instance_charge_type="POSTPAID",
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        security_group_lists=[tencentcloud_security_group["security_group"]["id"]],
        collation="Chinese_PRC_CI_AS",
        time_zone="China Standard Time",
        resource_tags={
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        })
    
    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.NewSqlserverGeneralCloudRoInstance(ctx, "example", &tencentcloud.SqlserverGeneralCloudRoInstanceArgs{
    			InstanceId:                  pulumi.Any(tencentcloud_sqlserver_general_cloud_instance.Example.Id),
    			Zone:                        pulumi.Any(data.Tencentcloud_availability_zones_by_product.Zones.Zones[4].Name),
    			ReadOnlyGroupType:           pulumi.Float64(2),
    			ReadOnlyGroupName:           pulumi.String("test-ro-group"),
    			ReadOnlyGroupIsOfflineDelay: pulumi.Float64(1),
    			ReadOnlyGroupMaxDelayTime:   pulumi.Float64(10),
    			ReadOnlyGroupMinInGroup:     pulumi.Float64(1),
    			Memory:                      pulumi.Float64(4),
    			Storage:                     pulumi.Float64(100),
    			Cpu:                         pulumi.Float64(2),
    			MachineType:                 pulumi.String("CLOUD_BSSD"),
    			InstanceChargeType:          pulumi.String("POSTPAID"),
    			SubnetId:                    pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			VpcId:                       pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SecurityGroupLists: pulumi.StringArray{
    				tencentcloud_security_group.Security_group.Id,
    			},
    			Collation: pulumi.String("Chinese_PRC_CI_AS"),
    			TimeZone:  pulumi.String("China Standard Time"),
    			ResourceTags: pulumi.StringMap{
    				"test-key1": pulumi.String("test-value1"),
    				"test-key2": pulumi.String("test-value2"),
    			},
    		})
    		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.SqlserverGeneralCloudRoInstance("example", new()
        {
            InstanceId = tencentcloud_sqlserver_general_cloud_instance.Example.Id,
            Zone = data.Tencentcloud_availability_zones_by_product.Zones.Zones[4].Name,
            ReadOnlyGroupType = 2,
            ReadOnlyGroupName = "test-ro-group",
            ReadOnlyGroupIsOfflineDelay = 1,
            ReadOnlyGroupMaxDelayTime = 10,
            ReadOnlyGroupMinInGroup = 1,
            Memory = 4,
            Storage = 100,
            Cpu = 2,
            MachineType = "CLOUD_BSSD",
            InstanceChargeType = "POSTPAID",
            SubnetId = tencentcloud_subnet.Subnet.Id,
            VpcId = tencentcloud_vpc.Vpc.Id,
            SecurityGroupLists = new[]
            {
                tencentcloud_security_group.Security_group.Id,
            },
            Collation = "Chinese_PRC_CI_AS",
            TimeZone = "China Standard Time",
            ResourceTags = 
            {
                { "test-key1", "test-value1" },
                { "test-key2", "test-value2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstance;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstanceArgs;
    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 SqlserverGeneralCloudRoInstance("example", SqlserverGeneralCloudRoInstanceArgs.builder()
                .instanceId(tencentcloud_sqlserver_general_cloud_instance.example().id())
                .zone(data.tencentcloud_availability_zones_by_product().zones().zones()[4].name())
                .readOnlyGroupType(2)
                .readOnlyGroupName("test-ro-group")
                .readOnlyGroupIsOfflineDelay(1)
                .readOnlyGroupMaxDelayTime(10)
                .readOnlyGroupMinInGroup(1)
                .memory(4)
                .storage(100)
                .cpu(2)
                .machineType("CLOUD_BSSD")
                .instanceChargeType("POSTPAID")
                .subnetId(tencentcloud_subnet.subnet().id())
                .vpcId(tencentcloud_vpc.vpc().id())
                .securityGroupLists(tencentcloud_security_group.security_group().id())
                .collation("Chinese_PRC_CI_AS")
                .timeZone("China Standard Time")
                .resourceTags(Map.ofEntries(
                    Map.entry("test-key1", "test-value1"),
                    Map.entry("test-key2", "test-value2")
                ))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:SqlserverGeneralCloudRoInstance
        properties:
          instanceId: ${tencentcloud_sqlserver_general_cloud_instance.example.id}
          zone: ${data.tencentcloud_availability_zones_by_product.zones.zones[4].name}
          readOnlyGroupType: 2
          readOnlyGroupName: test-ro-group
          readOnlyGroupIsOfflineDelay: 1
          readOnlyGroupMaxDelayTime: 10
          readOnlyGroupMinInGroup: 1
          memory: 4
          storage: 100
          cpu: 2
          machineType: CLOUD_BSSD
          instanceChargeType: POSTPAID
          subnetId: ${tencentcloud_subnet.subnet.id}
          vpcId: ${tencentcloud_vpc.vpc.id}
          securityGroupLists:
            - ${tencentcloud_security_group.security_group.id}
          collation: Chinese_PRC_CI_AS
          timeZone: China Standard Time
          resourceTags:
            test-key1: test-value1
            test-key2: test-value2
    

    If read_only_group_type value is 3 - All instances shipped are in the existing Some read-only groups below:

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.SqlserverGeneralCloudRoInstance("example", {
        instanceId: tencentcloud_sqlserver_general_cloud_instance.example.id,
        zone: data.tencentcloud_availability_zones_by_product.zones.zones[4].name,
        readOnlyGroupType: 3,
        memory: 4,
        storage: 100,
        cpu: 2,
        machineType: "CLOUD_BSSD",
        readOnlyGroupId: "mssqlrg-clboghrj",
        instanceChargeType: "POSTPAID",
        subnetId: tencentcloud_subnet.subnet.id,
        vpcId: tencentcloud_vpc.vpc.id,
        securityGroupLists: [tencentcloud_security_group.security_group.id],
        collation: "Chinese_PRC_CI_AS",
        timeZone: "China Standard Time",
        resourceTags: {
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.SqlserverGeneralCloudRoInstance("example",
        instance_id=tencentcloud_sqlserver_general_cloud_instance["example"]["id"],
        zone=data["tencentcloud_availability_zones_by_product"]["zones"]["zones"][4]["name"],
        read_only_group_type=3,
        memory=4,
        storage=100,
        cpu=2,
        machine_type="CLOUD_BSSD",
        read_only_group_id="mssqlrg-clboghrj",
        instance_charge_type="POSTPAID",
        subnet_id=tencentcloud_subnet["subnet"]["id"],
        vpc_id=tencentcloud_vpc["vpc"]["id"],
        security_group_lists=[tencentcloud_security_group["security_group"]["id"]],
        collation="Chinese_PRC_CI_AS",
        time_zone="China Standard Time",
        resource_tags={
            "test-key1": "test-value1",
            "test-key2": "test-value2",
        })
    
    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.NewSqlserverGeneralCloudRoInstance(ctx, "example", &tencentcloud.SqlserverGeneralCloudRoInstanceArgs{
    			InstanceId:         pulumi.Any(tencentcloud_sqlserver_general_cloud_instance.Example.Id),
    			Zone:               pulumi.Any(data.Tencentcloud_availability_zones_by_product.Zones.Zones[4].Name),
    			ReadOnlyGroupType:  pulumi.Float64(3),
    			Memory:             pulumi.Float64(4),
    			Storage:            pulumi.Float64(100),
    			Cpu:                pulumi.Float64(2),
    			MachineType:        pulumi.String("CLOUD_BSSD"),
    			ReadOnlyGroupId:    pulumi.String("mssqlrg-clboghrj"),
    			InstanceChargeType: pulumi.String("POSTPAID"),
    			SubnetId:           pulumi.Any(tencentcloud_subnet.Subnet.Id),
    			VpcId:              pulumi.Any(tencentcloud_vpc.Vpc.Id),
    			SecurityGroupLists: pulumi.StringArray{
    				tencentcloud_security_group.Security_group.Id,
    			},
    			Collation: pulumi.String("Chinese_PRC_CI_AS"),
    			TimeZone:  pulumi.String("China Standard Time"),
    			ResourceTags: pulumi.StringMap{
    				"test-key1": pulumi.String("test-value1"),
    				"test-key2": pulumi.String("test-value2"),
    			},
    		})
    		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.SqlserverGeneralCloudRoInstance("example", new()
        {
            InstanceId = tencentcloud_sqlserver_general_cloud_instance.Example.Id,
            Zone = data.Tencentcloud_availability_zones_by_product.Zones.Zones[4].Name,
            ReadOnlyGroupType = 3,
            Memory = 4,
            Storage = 100,
            Cpu = 2,
            MachineType = "CLOUD_BSSD",
            ReadOnlyGroupId = "mssqlrg-clboghrj",
            InstanceChargeType = "POSTPAID",
            SubnetId = tencentcloud_subnet.Subnet.Id,
            VpcId = tencentcloud_vpc.Vpc.Id,
            SecurityGroupLists = new[]
            {
                tencentcloud_security_group.Security_group.Id,
            },
            Collation = "Chinese_PRC_CI_AS",
            TimeZone = "China Standard Time",
            ResourceTags = 
            {
                { "test-key1", "test-value1" },
                { "test-key2", "test-value2" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstance;
    import com.pulumi.tencentcloud.SqlserverGeneralCloudRoInstanceArgs;
    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 SqlserverGeneralCloudRoInstance("example", SqlserverGeneralCloudRoInstanceArgs.builder()
                .instanceId(tencentcloud_sqlserver_general_cloud_instance.example().id())
                .zone(data.tencentcloud_availability_zones_by_product().zones().zones()[4].name())
                .readOnlyGroupType(3)
                .memory(4)
                .storage(100)
                .cpu(2)
                .machineType("CLOUD_BSSD")
                .readOnlyGroupId("mssqlrg-clboghrj")
                .instanceChargeType("POSTPAID")
                .subnetId(tencentcloud_subnet.subnet().id())
                .vpcId(tencentcloud_vpc.vpc().id())
                .securityGroupLists(tencentcloud_security_group.security_group().id())
                .collation("Chinese_PRC_CI_AS")
                .timeZone("China Standard Time")
                .resourceTags(Map.ofEntries(
                    Map.entry("test-key1", "test-value1"),
                    Map.entry("test-key2", "test-value2")
                ))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:SqlserverGeneralCloudRoInstance
        properties:
          instanceId: ${tencentcloud_sqlserver_general_cloud_instance.example.id}
          zone: ${data.tencentcloud_availability_zones_by_product.zones.zones[4].name}
          readOnlyGroupType: 3
          memory: 4
          storage: 100
          cpu: 2
          machineType: CLOUD_BSSD
          readOnlyGroupId: mssqlrg-clboghrj
          instanceChargeType: POSTPAID
          subnetId: ${tencentcloud_subnet.subnet.id}
          vpcId: ${tencentcloud_vpc.vpc.id}
          securityGroupLists:
            - ${tencentcloud_security_group.security_group.id}
          collation: Chinese_PRC_CI_AS
          timeZone: China Standard Time
          resourceTags:
            test-key1: test-value1
            test-key2: test-value2
    

    Create SqlserverGeneralCloudRoInstance Resource

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

    Constructor syntax

    new SqlserverGeneralCloudRoInstance(name: string, args: SqlserverGeneralCloudRoInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def SqlserverGeneralCloudRoInstance(resource_name: str,
                                        args: SqlserverGeneralCloudRoInstanceArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlserverGeneralCloudRoInstance(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        read_only_group_type: Optional[float] = None,
                                        cpu: Optional[float] = None,
                                        zone: Optional[str] = None,
                                        instance_id: Optional[str] = None,
                                        machine_type: Optional[str] = None,
                                        memory: Optional[float] = None,
                                        storage: Optional[float] = None,
                                        read_only_group_min_in_group: Optional[float] = None,
                                        security_group_lists: Optional[Sequence[str]] = None,
                                        read_only_group_max_delay_time: Optional[float] = None,
                                        collation: Optional[str] = None,
                                        read_only_group_name: Optional[str] = None,
                                        read_only_group_id: Optional[str] = None,
                                        resource_tags: Optional[Mapping[str, str]] = None,
                                        read_only_group_is_offline_delay: Optional[float] = None,
                                        sqlserver_general_cloud_ro_instance_id: Optional[str] = None,
                                        period: Optional[float] = None,
                                        subnet_id: Optional[str] = None,
                                        time_zone: Optional[str] = None,
                                        timeouts: Optional[SqlserverGeneralCloudRoInstanceTimeoutsArgs] = None,
                                        vpc_id: Optional[str] = None,
                                        instance_charge_type: Optional[str] = None)
    func NewSqlserverGeneralCloudRoInstance(ctx *Context, name string, args SqlserverGeneralCloudRoInstanceArgs, opts ...ResourceOption) (*SqlserverGeneralCloudRoInstance, error)
    public SqlserverGeneralCloudRoInstance(string name, SqlserverGeneralCloudRoInstanceArgs args, CustomResourceOptions? opts = null)
    public SqlserverGeneralCloudRoInstance(String name, SqlserverGeneralCloudRoInstanceArgs args)
    public SqlserverGeneralCloudRoInstance(String name, SqlserverGeneralCloudRoInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SqlserverGeneralCloudRoInstance
    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 SqlserverGeneralCloudRoInstanceArgs
    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 SqlserverGeneralCloudRoInstanceArgs
    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 SqlserverGeneralCloudRoInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlserverGeneralCloudRoInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlserverGeneralCloudRoInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Cpu double
    Number of instance cores.
    InstanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    MachineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    Memory double
    Instance memory size, in GB.
    ReadOnlyGroupType double
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    Storage double
    Instance disk size, in GB.
    Zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    Collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    InstanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    Period double
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    ReadOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    ReadOnlyGroupIsOfflineDelay double
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    ReadOnlyGroupMaxDelayTime double
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    ReadOnlyGroupMinInGroup double
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    ReadOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    ResourceTags Dictionary<string, string>
    Tag description list.
    SecurityGroupLists List<string>
    Security group list, fill in the security group ID in the form of sg-xxx.
    SqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    SubnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    TimeZone string
    System time zone, default: China Standard Time.
    Timeouts SqlserverGeneralCloudRoInstanceTimeouts
    VpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    Cpu float64
    Number of instance cores.
    InstanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    MachineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    Memory float64
    Instance memory size, in GB.
    ReadOnlyGroupType float64
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    Storage float64
    Instance disk size, in GB.
    Zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    Collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    InstanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    Period float64
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    ReadOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    ReadOnlyGroupIsOfflineDelay float64
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    ReadOnlyGroupMaxDelayTime float64
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    ReadOnlyGroupMinInGroup float64
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    ReadOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    ResourceTags map[string]string
    Tag description list.
    SecurityGroupLists []string
    Security group list, fill in the security group ID in the form of sg-xxx.
    SqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    SubnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    TimeZone string
    System time zone, default: China Standard Time.
    Timeouts SqlserverGeneralCloudRoInstanceTimeoutsArgs
    VpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    cpu Double
    Number of instance cores.
    instanceId String
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType String
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory Double
    Instance memory size, in GB.
    readOnlyGroupType Double
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    storage Double
    Instance disk size, in GB.
    zone String
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation String
    System character set collation, default: Chinese_PRC_CI_AS.
    instanceChargeType String
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    period Double
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId String
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay Double
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime Double
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup Double
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName String
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    resourceTags Map<String,String>
    Tag description list.
    securityGroupLists List<String>
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId String
    ID of the resource.
    subnetId String
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone String
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeouts
    vpcId String
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    cpu number
    Number of instance cores.
    instanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory number
    Instance memory size, in GB.
    readOnlyGroupType number
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    storage number
    Instance disk size, in GB.
    zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    instanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    period number
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay number
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime number
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup number
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    resourceTags {[key: string]: string}
    Tag description list.
    securityGroupLists string[]
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    subnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone string
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeouts
    vpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    cpu float
    Number of instance cores.
    instance_id str
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machine_type str
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory float
    Instance memory size, in GB.
    read_only_group_type float
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    storage float
    Instance disk size, in GB.
    zone str
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation str
    System character set collation, default: Chinese_PRC_CI_AS.
    instance_charge_type str
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    period float
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    read_only_group_id str
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    read_only_group_is_offline_delay float
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    read_only_group_max_delay_time float
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    read_only_group_min_in_group float
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    read_only_group_name str
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    resource_tags Mapping[str, str]
    Tag description list.
    security_group_lists Sequence[str]
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserver_general_cloud_ro_instance_id str
    ID of the resource.
    subnet_id str
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    time_zone str
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeoutsArgs
    vpc_id str
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    cpu Number
    Number of instance cores.
    instanceId String
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType String
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory Number
    Instance memory size, in GB.
    readOnlyGroupType Number
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    storage Number
    Instance disk size, in GB.
    zone String
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation String
    System character set collation, default: Chinese_PRC_CI_AS.
    instanceChargeType String
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    period Number
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId String
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay Number
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime Number
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup Number
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName String
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    resourceTags Map<String>
    Tag description list.
    securityGroupLists List<String>
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId String
    ID of the resource.
    subnetId String
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone String
    System time zone, default: China Standard Time.
    timeouts Property Map
    vpcId String
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RoInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    id String
    The provider-assigned unique ID for this managed resource.
    roInstanceId String
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    id string
    The provider-assigned unique ID for this managed resource.
    roInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    id str
    The provider-assigned unique ID for this managed resource.
    ro_instance_id str
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    id String
    The provider-assigned unique ID for this managed resource.
    roInstanceId String
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.

    Look up Existing SqlserverGeneralCloudRoInstance Resource

    Get an existing SqlserverGeneralCloudRoInstance 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?: SqlserverGeneralCloudRoInstanceState, opts?: CustomResourceOptions): SqlserverGeneralCloudRoInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            collation: Optional[str] = None,
            cpu: Optional[float] = None,
            instance_charge_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            machine_type: Optional[str] = None,
            memory: Optional[float] = None,
            period: Optional[float] = None,
            read_only_group_id: Optional[str] = None,
            read_only_group_is_offline_delay: Optional[float] = None,
            read_only_group_max_delay_time: Optional[float] = None,
            read_only_group_min_in_group: Optional[float] = None,
            read_only_group_name: Optional[str] = None,
            read_only_group_type: Optional[float] = None,
            resource_tags: Optional[Mapping[str, str]] = None,
            ro_instance_id: Optional[str] = None,
            security_group_lists: Optional[Sequence[str]] = None,
            sqlserver_general_cloud_ro_instance_id: Optional[str] = None,
            storage: Optional[float] = None,
            subnet_id: Optional[str] = None,
            time_zone: Optional[str] = None,
            timeouts: Optional[SqlserverGeneralCloudRoInstanceTimeoutsArgs] = None,
            vpc_id: Optional[str] = None,
            zone: Optional[str] = None) -> SqlserverGeneralCloudRoInstance
    func GetSqlserverGeneralCloudRoInstance(ctx *Context, name string, id IDInput, state *SqlserverGeneralCloudRoInstanceState, opts ...ResourceOption) (*SqlserverGeneralCloudRoInstance, error)
    public static SqlserverGeneralCloudRoInstance Get(string name, Input<string> id, SqlserverGeneralCloudRoInstanceState? state, CustomResourceOptions? opts = null)
    public static SqlserverGeneralCloudRoInstance get(String name, Output<String> id, SqlserverGeneralCloudRoInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SqlserverGeneralCloudRoInstance    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:
    Collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    Cpu double
    Number of instance cores.
    InstanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    InstanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    MachineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    Memory double
    Instance memory size, in GB.
    Period double
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    ReadOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    ReadOnlyGroupIsOfflineDelay double
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    ReadOnlyGroupMaxDelayTime double
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    ReadOnlyGroupMinInGroup double
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    ReadOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    ReadOnlyGroupType double
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    ResourceTags Dictionary<string, string>
    Tag description list.
    RoInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    SecurityGroupLists List<string>
    Security group list, fill in the security group ID in the form of sg-xxx.
    SqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    Storage double
    Instance disk size, in GB.
    SubnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    TimeZone string
    System time zone, default: China Standard Time.
    Timeouts SqlserverGeneralCloudRoInstanceTimeouts
    VpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    Zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    Collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    Cpu float64
    Number of instance cores.
    InstanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    InstanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    MachineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    Memory float64
    Instance memory size, in GB.
    Period float64
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    ReadOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    ReadOnlyGroupIsOfflineDelay float64
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    ReadOnlyGroupMaxDelayTime float64
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    ReadOnlyGroupMinInGroup float64
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    ReadOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    ReadOnlyGroupType float64
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    ResourceTags map[string]string
    Tag description list.
    RoInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    SecurityGroupLists []string
    Security group list, fill in the security group ID in the form of sg-xxx.
    SqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    Storage float64
    Instance disk size, in GB.
    SubnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    TimeZone string
    System time zone, default: China Standard Time.
    Timeouts SqlserverGeneralCloudRoInstanceTimeoutsArgs
    VpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    Zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation String
    System character set collation, default: Chinese_PRC_CI_AS.
    cpu Double
    Number of instance cores.
    instanceChargeType String
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    instanceId String
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType String
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory Double
    Instance memory size, in GB.
    period Double
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId String
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay Double
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime Double
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup Double
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName String
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    readOnlyGroupType Double
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    resourceTags Map<String,String>
    Tag description list.
    roInstanceId String
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    securityGroupLists List<String>
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId String
    ID of the resource.
    storage Double
    Instance disk size, in GB.
    subnetId String
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone String
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeouts
    vpcId String
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    zone String
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation string
    System character set collation, default: Chinese_PRC_CI_AS.
    cpu number
    Number of instance cores.
    instanceChargeType string
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    instanceId string
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType string
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory number
    Instance memory size, in GB.
    period number
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId string
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay number
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime number
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup number
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName string
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    readOnlyGroupType number
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    resourceTags {[key: string]: string}
    Tag description list.
    roInstanceId string
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    securityGroupLists string[]
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId string
    ID of the resource.
    storage number
    Instance disk size, in GB.
    subnetId string
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone string
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeouts
    vpcId string
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    zone string
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation str
    System character set collation, default: Chinese_PRC_CI_AS.
    cpu float
    Number of instance cores.
    instance_charge_type str
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    instance_id str
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machine_type str
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory float
    Instance memory size, in GB.
    period float
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    read_only_group_id str
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    read_only_group_is_offline_delay float
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    read_only_group_max_delay_time float
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    read_only_group_min_in_group float
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    read_only_group_name str
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    read_only_group_type float
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    resource_tags Mapping[str, str]
    Tag description list.
    ro_instance_id str
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    security_group_lists Sequence[str]
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserver_general_cloud_ro_instance_id str
    ID of the resource.
    storage float
    Instance disk size, in GB.
    subnet_id str
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    time_zone str
    System time zone, default: China Standard Time.
    timeouts SqlserverGeneralCloudRoInstanceTimeoutsArgs
    vpc_id str
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    zone str
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.
    collation String
    System character set collation, default: Chinese_PRC_CI_AS.
    cpu Number
    Number of instance cores.
    instanceChargeType String
    Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
    instanceId String
    Primary instance ID, in the format: mssql-3l3fgqn7.
    machineType String
    The host disk type of the purchased instance, CLOUD_HSSD-enhanced SSD cloud disk for virtual machines, CLOUD_TSSD-extremely fast SSD cloud disk for virtual machines, CLOUD_BSSD-universal SSD cloud disk for virtual machines.
    memory Number
    Instance memory size, in GB.
    period Number
    Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48.
    readOnlyGroupId String
    Required when ReadOnlyGroupType=3, existing read-only group ID.
    readOnlyGroupIsOfflineDelay Number
    Required when ReadOnlyGroupType=2, whether to enable the delayed elimination function for the newly created read-only group, 1-on, 0-off. When the delay between the read-only replica and the primary instance is greater than the threshold, it will be automatically removed.
    readOnlyGroupMaxDelayTime Number
    Mandatory when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the threshold for delay culling of newly created read-only groups.
    readOnlyGroupMinInGroup Number
    Required when ReadOnlyGroupType=2 and ReadOnlyGroupIsOfflineDelay=1, the newly created read-only group retains at least the number of read-only replicas after delay elimination.
    readOnlyGroupName String
    Required when ReadOnlyGroupType=2, the name of the newly created read-only group.
    readOnlyGroupType Number
    Read-only group type option, 1- Ship according to one instance and one read-only group, 2 - Ship after creating a read-only group, all instances are under this read-only group, 3 - All instances shipped are in the existing Some read-only groups below.
    resourceTags Map<String>
    Tag description list.
    roInstanceId String
    Primary read only instance ID, in the format: mssqlro-lbljc5qd.
    securityGroupLists List<String>
    Security group list, fill in the security group ID in the form of sg-xxx.
    sqlserverGeneralCloudRoInstanceId String
    ID of the resource.
    storage Number
    Instance disk size, in GB.
    subnetId String
    VPC subnet ID, in the form of subnet-bdoe83fa; SubnetId and VpcId need to be set at the same time or not set at the same time.
    timeZone String
    System time zone, default: China Standard Time.
    timeouts Property Map
    vpcId String
    VPC network ID, in the form of vpc-dsp338hz; SubnetId and VpcId need to be set at the same time or not set at the same time.
    zone String
    Instance Availability Zone, similar to ap-guangzhou-1 (Guangzhou District 1); the instance sales area can be obtained through the interface DescribeZones.

    Supporting Types

    SqlserverGeneralCloudRoInstanceTimeouts, SqlserverGeneralCloudRoInstanceTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    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