tencentcloud.SqlserverGeneralCloudInstance
Explore with Pulumi AI
Provides a resource to create a sqlserver general_cloud_instance
Example Usage
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 example = new tencentcloud.SqlserverGeneralCloudInstance("example", {
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",
});
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 = tencentcloud.SqlserverGeneralCloudInstance("example",
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")
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
}
_, err = tencentcloud.NewSqlserverGeneralCloudInstance(ctx, "example", &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
}
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 example = new Tencentcloud.SqlserverGeneralCloudInstance("example", 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",
});
});
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 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 example = new SqlserverGeneralCloudInstance("example", 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());
}
}
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.
example:
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
variables:
zones:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: sqlserver
Create SqlserverGeneralCloudInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlserverGeneralCloudInstance(name: string, args: SqlserverGeneralCloudInstanceArgs, opts?: CustomResourceOptions);
@overload
def SqlserverGeneralCloudInstance(resource_name: str,
args: SqlserverGeneralCloudInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlserverGeneralCloudInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
machine_type: Optional[str] = None,
zone: Optional[str] = None,
cpu: Optional[float] = None,
storage: Optional[float] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
security_group_lists: Optional[Sequence[str]] = None,
instance_charge_type: Optional[str] = None,
dr_zones: Optional[Sequence[str]] = None,
disk_encrypt_flag: Optional[float] = None,
multi_nodes: Optional[bool] = None,
multi_zones: Optional[bool] = None,
auto_renew_flag: Optional[float] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
resource_tags: Optional[Sequence[SqlserverGeneralCloudInstanceResourceTagArgs]] = None,
ha_type: Optional[str] = None,
span: Optional[float] = None,
sqlserver_general_cloud_instance_id: Optional[str] = None,
start_time: Optional[str] = None,
db_version: Optional[str] = None,
subnet_id: Optional[str] = None,
time_zone: Optional[str] = None,
vpc_id: Optional[str] = None,
weeklies: Optional[Sequence[float]] = None,
collation: Optional[str] = None)
func NewSqlserverGeneralCloudInstance(ctx *Context, name string, args SqlserverGeneralCloudInstanceArgs, opts ...ResourceOption) (*SqlserverGeneralCloudInstance, error)
public SqlserverGeneralCloudInstance(string name, SqlserverGeneralCloudInstanceArgs args, CustomResourceOptions? opts = null)
public SqlserverGeneralCloudInstance(String name, SqlserverGeneralCloudInstanceArgs args)
public SqlserverGeneralCloudInstance(String name, SqlserverGeneralCloudInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:SqlserverGeneralCloudInstance
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 SqlserverGeneralCloudInstanceArgs
- 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 SqlserverGeneralCloudInstanceArgs
- 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 SqlserverGeneralCloudInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverGeneralCloudInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlserverGeneralCloudInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SqlserverGeneralCloudInstance 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 SqlserverGeneralCloudInstance resource accepts the following input properties:
- Cpu double
- Cpu, unit: CORE.
- Machine
Type 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
- Memory, unit: GB.
- Storage double
- instance disk storage, unit: GB.
- Zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- Auto
Renew doubleFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- Db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- Disk
Encrypt doubleFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- Dr
Zones List<string> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- Ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- Instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- Multi
Nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- Multi
Zones bool - Whether to deploy across availability zones, the default value is false.
- Name string
- Name of the SQL Server instance.
- Period double
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Project
Id double - project ID.
- List<Sqlserver
General Cloud Instance Resource Tag> - A collection of tags bound to the new instance.
- Security
Group List<string>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- Span double
- Maintainable time window configuration, duration, unit: hour.
- Sqlserver
General stringCloud Instance Id - ID of the resource.
- Start
Time string - Maintainable time window configuration, daily maintainable start time.
- Subnet
Id 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.
- Time
Zone string - System time zone, default: China Standard Time.
- Vpc
Id 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.
- Weeklies List<double>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- Cpu float64
- Cpu, unit: CORE.
- Machine
Type 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
- Memory, unit: GB.
- Storage float64
- instance disk storage, unit: GB.
- Zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- Auto
Renew float64Flag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- Db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- Disk
Encrypt float64Flag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- Dr
Zones []string - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- Ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- Instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- Multi
Nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- Multi
Zones bool - Whether to deploy across availability zones, the default value is false.
- Name string
- Name of the SQL Server instance.
- Period float64
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Project
Id float64 - project ID.
- []Sqlserver
General Cloud Instance Resource Tag Args - A collection of tags bound to the new instance.
- Security
Group []stringLists - Security group list, fill in the security group ID in the form of sg-xxx.
- Span float64
- Maintainable time window configuration, duration, unit: hour.
- Sqlserver
General stringCloud Instance Id - ID of the resource.
- Start
Time string - Maintainable time window configuration, daily maintainable start time.
- Subnet
Id 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.
- Time
Zone string - System time zone, default: China Standard Time.
- Vpc
Id 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.
- Weeklies []float64
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- cpu Double
- Cpu, unit: CORE.
- machine
Type 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
- Memory, unit: GB.
- storage Double
- instance disk storage, unit: GB.
- zone String
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew DoubleFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation String
- System character set collation, default: Chinese_PRC_CI_AS.
- db
Version String - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt DoubleFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dr
Zones List<String> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type String - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge StringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- multi
Nodes Boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones Boolean - Whether to deploy across availability zones, the default value is false.
- name String
- Name of the SQL Server instance.
- period Double
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id Double - project ID.
- List<Sqlserver
General Cloud Instance Resource Tag> - A collection of tags bound to the new instance.
- security
Group List<String>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span Double
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General StringCloud Instance Id - ID of the resource.
- start
Time String - Maintainable time window configuration, daily maintainable start time.
- subnet
Id 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.
- time
Zone String - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies List<Double>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- cpu number
- Cpu, unit: CORE.
- machine
Type 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
- Memory, unit: GB.
- storage number
- instance disk storage, unit: GB.
- zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew numberFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt numberFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dr
Zones string[] - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- multi
Nodes boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones boolean - Whether to deploy across availability zones, the default value is false.
- name string
- Name of the SQL Server instance.
- period number
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id number - project ID.
- Sqlserver
General Cloud Instance Resource Tag[] - A collection of tags bound to the new instance.
- security
Group string[]Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span number
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General stringCloud Instance Id - ID of the resource.
- start
Time string - Maintainable time window configuration, daily maintainable start time.
- subnet
Id 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.
- time
Zone string - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies number[]
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- cpu float
- Cpu, unit: CORE.
- 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
- Memory, unit: GB.
- storage float
- instance disk storage, unit: GB.
- zone str
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto_
renew_ floatflag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation str
- System character set collation, default: Chinese_PRC_CI_AS.
- db_
version str - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk_
encrypt_ floatflag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dr_
zones Sequence[str] - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha_
type str - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance_
charge_ strtype - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- multi_
nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi_
zones bool - Whether to deploy across availability zones, the default value is false.
- name str
- Name of the SQL Server instance.
- period float
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project_
id float - project ID.
- Sequence[Sqlserver
General Cloud Instance Resource Tag Args] - A collection of tags bound to the new instance.
- security_
group_ Sequence[str]lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span float
- Maintainable time window configuration, duration, unit: hour.
- sqlserver_
general_ strcloud_ instance_ id - ID of the resource.
- start_
time str - Maintainable time window configuration, daily maintainable start time.
- 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.
- 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.
- weeklies Sequence[float]
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- cpu Number
- Cpu, unit: CORE.
- machine
Type 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
- Memory, unit: GB.
- storage Number
- instance disk storage, unit: GB.
- zone String
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew NumberFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation String
- System character set collation, default: Chinese_PRC_CI_AS.
- db
Version String - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt NumberFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dr
Zones List<String> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type String - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge StringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- multi
Nodes Boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones Boolean - Whether to deploy across availability zones, the default value is false.
- name String
- Name of the SQL Server instance.
- period Number
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id Number - project ID.
- List<Property Map>
- A collection of tags bound to the new instance.
- security
Group List<String>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span Number
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General StringCloud Instance Id - ID of the resource.
- start
Time String - Maintainable time window configuration, daily maintainable start time.
- subnet
Id 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.
- time
Zone String - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies List<Number>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverGeneralCloudInstance resource produces the following output properties:
- Dns
Pod stringDomain - Internet address domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tgw
Wan doubleVport - External port number.
- Dns
Pod stringDomain - Internet address domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tgw
Wan float64Vport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- tgw
Wan DoubleVport - External port number.
- dns
Pod stringDomain - Internet address domain name.
- id string
- The provider-assigned unique ID for this managed resource.
- tgw
Wan numberVport - External port number.
- dns_
pod_ strdomain - Internet address domain name.
- id str
- The provider-assigned unique ID for this managed resource.
- tgw_
wan_ floatvport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- tgw
Wan NumberVport - External port number.
Look up Existing SqlserverGeneralCloudInstance Resource
Get an existing SqlserverGeneralCloudInstance 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?: SqlserverGeneralCloudInstanceState, opts?: CustomResourceOptions): SqlserverGeneralCloudInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_flag: Optional[float] = None,
collation: Optional[str] = None,
cpu: Optional[float] = None,
db_version: Optional[str] = None,
disk_encrypt_flag: Optional[float] = None,
dns_pod_domain: Optional[str] = None,
dr_zones: Optional[Sequence[str]] = None,
ha_type: Optional[str] = None,
instance_charge_type: Optional[str] = None,
machine_type: Optional[str] = None,
memory: Optional[float] = None,
multi_nodes: Optional[bool] = None,
multi_zones: Optional[bool] = None,
name: Optional[str] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
resource_tags: Optional[Sequence[SqlserverGeneralCloudInstanceResourceTagArgs]] = None,
security_group_lists: Optional[Sequence[str]] = None,
span: Optional[float] = None,
sqlserver_general_cloud_instance_id: Optional[str] = None,
start_time: Optional[str] = None,
storage: Optional[float] = None,
subnet_id: Optional[str] = None,
tgw_wan_vport: Optional[float] = None,
time_zone: Optional[str] = None,
vpc_id: Optional[str] = None,
weeklies: Optional[Sequence[float]] = None,
zone: Optional[str] = None) -> SqlserverGeneralCloudInstance
func GetSqlserverGeneralCloudInstance(ctx *Context, name string, id IDInput, state *SqlserverGeneralCloudInstanceState, opts ...ResourceOption) (*SqlserverGeneralCloudInstance, error)
public static SqlserverGeneralCloudInstance Get(string name, Input<string> id, SqlserverGeneralCloudInstanceState? state, CustomResourceOptions? opts = null)
public static SqlserverGeneralCloudInstance get(String name, Output<String> id, SqlserverGeneralCloudInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:SqlserverGeneralCloudInstance 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.
- Auto
Renew doubleFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- Cpu double
- Cpu, unit: CORE.
- Db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- Disk
Encrypt doubleFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- Dns
Pod stringDomain - Internet address domain name.
- Dr
Zones List<string> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- Ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- Instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- Machine
Type 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
- Memory, unit: GB.
- Multi
Nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- Multi
Zones bool - Whether to deploy across availability zones, the default value is false.
- Name string
- Name of the SQL Server instance.
- Period double
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Project
Id double - project ID.
- List<Sqlserver
General Cloud Instance Resource Tag> - A collection of tags bound to the new instance.
- Security
Group List<string>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- Span double
- Maintainable time window configuration, duration, unit: hour.
- Sqlserver
General stringCloud Instance Id - ID of the resource.
- Start
Time string - Maintainable time window configuration, daily maintainable start time.
- Storage double
- instance disk storage, unit: GB.
- Subnet
Id 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.
- Tgw
Wan doubleVport - External port number.
- Time
Zone string - System time zone, default: China Standard Time.
- Vpc
Id 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.
- Weeklies List<double>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- Zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- Auto
Renew float64Flag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- Cpu float64
- Cpu, unit: CORE.
- Db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- Disk
Encrypt float64Flag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- Dns
Pod stringDomain - Internet address domain name.
- Dr
Zones []string - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- Ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- Instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- Machine
Type 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
- Memory, unit: GB.
- Multi
Nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- Multi
Zones bool - Whether to deploy across availability zones, the default value is false.
- Name string
- Name of the SQL Server instance.
- Period float64
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- Project
Id float64 - project ID.
- []Sqlserver
General Cloud Instance Resource Tag Args - A collection of tags bound to the new instance.
- Security
Group []stringLists - Security group list, fill in the security group ID in the form of sg-xxx.
- Span float64
- Maintainable time window configuration, duration, unit: hour.
- Sqlserver
General stringCloud Instance Id - ID of the resource.
- Start
Time string - Maintainable time window configuration, daily maintainable start time.
- Storage float64
- instance disk storage, unit: GB.
- Subnet
Id 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.
- Tgw
Wan float64Vport - External port number.
- Time
Zone string - System time zone, default: China Standard Time.
- Vpc
Id 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.
- Weeklies []float64
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- Zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew DoubleFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation String
- System character set collation, default: Chinese_PRC_CI_AS.
- cpu Double
- Cpu, unit: CORE.
- db
Version String - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt DoubleFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dns
Pod StringDomain - Internet address domain name.
- dr
Zones List<String> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type String - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge StringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- machine
Type 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
- Memory, unit: GB.
- multi
Nodes Boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones Boolean - Whether to deploy across availability zones, the default value is false.
- name String
- Name of the SQL Server instance.
- period Double
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id Double - project ID.
- List<Sqlserver
General Cloud Instance Resource Tag> - A collection of tags bound to the new instance.
- security
Group List<String>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span Double
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General StringCloud Instance Id - ID of the resource.
- start
Time String - Maintainable time window configuration, daily maintainable start time.
- storage Double
- instance disk storage, unit: GB.
- subnet
Id 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.
- tgw
Wan DoubleVport - External port number.
- time
Zone String - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies List<Double>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- zone String
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew numberFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation string
- System character set collation, default: Chinese_PRC_CI_AS.
- cpu number
- Cpu, unit: CORE.
- db
Version string - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt numberFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dns
Pod stringDomain - Internet address domain name.
- dr
Zones string[] - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type string - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge stringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- machine
Type 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
- Memory, unit: GB.
- multi
Nodes boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones boolean - Whether to deploy across availability zones, the default value is false.
- name string
- Name of the SQL Server instance.
- period number
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id number - project ID.
- Sqlserver
General Cloud Instance Resource Tag[] - A collection of tags bound to the new instance.
- security
Group string[]Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span number
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General stringCloud Instance Id - ID of the resource.
- start
Time string - Maintainable time window configuration, daily maintainable start time.
- storage number
- instance disk storage, unit: GB.
- subnet
Id 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.
- tgw
Wan numberVport - External port number.
- time
Zone string - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies number[]
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- zone string
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto_
renew_ floatflag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation str
- System character set collation, default: Chinese_PRC_CI_AS.
- cpu float
- Cpu, unit: CORE.
- db_
version str - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk_
encrypt_ floatflag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dns_
pod_ strdomain - Internet address domain name.
- dr_
zones Sequence[str] - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha_
type str - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance_
charge_ strtype - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- 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
- Memory, unit: GB.
- multi_
nodes bool - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi_
zones bool - Whether to deploy across availability zones, the default value is false.
- name str
- Name of the SQL Server instance.
- period float
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project_
id float - project ID.
- Sequence[Sqlserver
General Cloud Instance Resource Tag Args] - A collection of tags bound to the new instance.
- security_
group_ Sequence[str]lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span float
- Maintainable time window configuration, duration, unit: hour.
- sqlserver_
general_ strcloud_ instance_ id - ID of the resource.
- start_
time str - Maintainable time window configuration, daily maintainable start time.
- storage float
- instance disk storage, unit: 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.
- tgw_
wan_ floatvport - External port number.
- time_
zone str - System time zone, default: China Standard Time.
- 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.
- weeklies Sequence[float]
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- zone str
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
- auto
Renew NumberFlag - Automatic renewal flag: 0-normal renewal 1-automatic renewal, the default is 1 automatic renewal. Valid only when purchasing a prepaid instance. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- collation String
- System character set collation, default: Chinese_PRC_CI_AS.
- cpu Number
- Cpu, unit: CORE.
- db
Version String - sqlserver version, currently all supported versions are: 2008R2 (SQL Server 2008 R2 Enterprise), 2012SP3 (SQL Server 2012 Enterprise), 201202 (SQL Server 2012 Standard), 2014SP2 (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), 2016SP1 (SQL Server 2016 Enterprise), 201602 (SQL Server 2016 Standard), 2017 (SQL Server 2017 Enterprise), 201702 (SQL Server 2017 Standard), 2019 (SQL Server 2019 Enterprise), 201902 (SQL Server 2019 Standard). Each region supports different versions for sale, and the version information that can be sold in each region can be pulled through the DescribeProductConfig interface. If left blank, the default version is 2008R2.
- disk
Encrypt NumberFlag - Disk encryption identification, 0-not encrypted, 1-encrypted.
- dns
Pod StringDomain - Internet address domain name.
- dr
Zones List<String> - The standby node availability area is empty by default. When MultiNodes = true, the primary node and standby node availability areas cannot all be the same. The minimum number of standby availability areas set is 2, and the maximum number is no more than 5.
- ha
Type String - It has been deprecated from version 1.81.2. Upgrade the high-availability architecture of sqlserver, upgrade from mirror disaster recovery to always on cluster disaster recovery, only support 2017 and above and support always on high-availability instances, do not support downgrading to mirror disaster recovery, CLUSTER-upgrade to always on capacity Disaster, if not filled, the high-availability architecture will not be modified.
- instance
Charge StringType - Payment mode, the value supports PREPAID (prepaid), POSTPAID (postpaid).
- machine
Type 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
- Memory, unit: GB.
- multi
Nodes Boolean - Whether it is a multi-node architecture instance, the default value is false. When MultiNodes = true, the parameter MultiZones must be true.
- multi
Zones Boolean - Whether to deploy across availability zones, the default value is false.
- name String
- Name of the SQL Server instance.
- period Number
- Purchase instance period, the default value is 1, which means one month. The value cannot exceed 48. Valid only when the 'instance_charge_type' parameter value is 'PREPAID'.
- project
Id Number - project ID.
- List<Property Map>
- A collection of tags bound to the new instance.
- security
Group List<String>Lists - Security group list, fill in the security group ID in the form of sg-xxx.
- span Number
- Maintainable time window configuration, duration, unit: hour.
- sqlserver
General StringCloud Instance Id - ID of the resource.
- start
Time String - Maintainable time window configuration, daily maintainable start time.
- storage Number
- instance disk storage, unit: GB.
- subnet
Id 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.
- tgw
Wan NumberVport - External port number.
- time
Zone String - System time zone, default: China Standard Time.
- vpc
Id 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.
- weeklies List<Number>
- Maintainable time window configuration, in weeks, indicates the days of the week that allow maintenance, 1-7 represent Monday to weekend respectively.
- zone String
- Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the DescribeZones API.
Supporting Types
SqlserverGeneralCloudInstanceResourceTag, SqlserverGeneralCloudInstanceResourceTagArgs
Import
sqlserver general_cloud_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/sqlserverGeneralCloudInstance:SqlserverGeneralCloudInstance example mssql-i9ma6oy7
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.