volcengine.rds_mssql.Instance
Explore with Pulumi AI
Provides a resource to manage rds mssql instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
    subnetName: "acc-test-subnet",
    cidrBlock: "172.16.0.0/24",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    vpcId: fooVpc.id,
});
const fooInstance = new volcengine.rds_mssql.Instance("fooInstance", {
    dbEngineVersion: "SQLServer_2019_Std",
    instanceType: "HA",
    nodeSpec: "rds.mssql.se.ha.d2.2c4g",
    storageSpace: 20,
    subnetIds: [fooSubnet.id],
    superAccountPassword: "Tftest110",
    instanceName: "acc-test-mssql",
    projectName: "default",
    chargeInfo: {
        chargeType: "PostPaid",
    },
    tags: [{
        key: "k1",
        value: "v1",
    }],
    backupTime: "18:00Z-19:00Z",
    fullBackupPeriods: [
        "Monday",
        "Tuesday",
    ],
    backupRetentionPeriod: 14,
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
    subnet_name="acc-test-subnet",
    cidr_block="172.16.0.0/24",
    zone_id=foo_zones.zones[0].id,
    vpc_id=foo_vpc.id)
foo_instance = volcengine.rds_mssql.Instance("fooInstance",
    db_engine_version="SQLServer_2019_Std",
    instance_type="HA",
    node_spec="rds.mssql.se.ha.d2.2c4g",
    storage_space=20,
    subnet_ids=[foo_subnet.id],
    super_account_password="Tftest110",
    instance_name="acc-test-mssql",
    project_name="default",
    charge_info=volcengine.rds_mssql.InstanceChargeInfoArgs(
        charge_type="PostPaid",
    ),
    tags=[volcengine.rds_mssql.InstanceTagArgs(
        key="k1",
        value="v1",
    )],
    backup_time="18:00Z-19:00Z",
    full_backup_periods=[
        "Monday",
        "Tuesday",
    ],
    backup_retention_period=14)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_mssql"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		_, err = rds_mssql.NewInstance(ctx, "fooInstance", &rds_mssql.InstanceArgs{
			DbEngineVersion: pulumi.String("SQLServer_2019_Std"),
			InstanceType:    pulumi.String("HA"),
			NodeSpec:        pulumi.String("rds.mssql.se.ha.d2.2c4g"),
			StorageSpace:    pulumi.Int(20),
			SubnetIds: pulumi.StringArray{
				fooSubnet.ID(),
			},
			SuperAccountPassword: pulumi.String("Tftest110"),
			InstanceName:         pulumi.String("acc-test-mssql"),
			ProjectName:          pulumi.String("default"),
			ChargeInfo: &rds_mssql.InstanceChargeInfoArgs{
				ChargeType: pulumi.String("PostPaid"),
			},
			Tags: rds_mssql.InstanceTagArray{
				&rds_mssql.InstanceTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
			BackupTime: pulumi.String("18:00Z-19:00Z"),
			FullBackupPeriods: pulumi.StringArray{
				pulumi.String("Monday"),
				pulumi.String("Tuesday"),
			},
			BackupRetentionPeriod: pulumi.Int(14),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Ecs.Zones.Invoke();
    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });
    var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
    {
        SubnetName = "acc-test-subnet",
        CidrBlock = "172.16.0.0/24",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        VpcId = fooVpc.Id,
    });
    var fooInstance = new Volcengine.Rds_mssql.Instance("fooInstance", new()
    {
        DbEngineVersion = "SQLServer_2019_Std",
        InstanceType = "HA",
        NodeSpec = "rds.mssql.se.ha.d2.2c4g",
        StorageSpace = 20,
        SubnetIds = new[]
        {
            fooSubnet.Id,
        },
        SuperAccountPassword = "Tftest110",
        InstanceName = "acc-test-mssql",
        ProjectName = "default",
        ChargeInfo = new Volcengine.Rds_mssql.Inputs.InstanceChargeInfoArgs
        {
            ChargeType = "PostPaid",
        },
        Tags = new[]
        {
            new Volcengine.Rds_mssql.Inputs.InstanceTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
        BackupTime = "18:00Z-19:00Z",
        FullBackupPeriods = new[]
        {
            "Monday",
            "Tuesday",
        },
        BackupRetentionPeriod = 14,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.rds_mssql.Instance;
import com.pulumi.volcengine.rds_mssql.InstanceArgs;
import com.pulumi.volcengine.rds_mssql.inputs.InstanceChargeInfoArgs;
import com.pulumi.volcengine.rds_mssql.inputs.InstanceTagArgs;
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 fooZones = EcsFunctions.Zones();
        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());
        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
            .subnetName("acc-test-subnet")
            .cidrBlock("172.16.0.0/24")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .vpcId(fooVpc.id())
            .build());
        var fooInstance = new Instance("fooInstance", InstanceArgs.builder()        
            .dbEngineVersion("SQLServer_2019_Std")
            .instanceType("HA")
            .nodeSpec("rds.mssql.se.ha.d2.2c4g")
            .storageSpace(20)
            .subnetIds(fooSubnet.id())
            .superAccountPassword("Tftest110")
            .instanceName("acc-test-mssql")
            .projectName("default")
            .chargeInfo(InstanceChargeInfoArgs.builder()
                .chargeType("PostPaid")
                .build())
            .tags(InstanceTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .backupTime("18:00Z-19:00Z")
            .fullBackupPeriods(            
                "Monday",
                "Tuesday")
            .backupRetentionPeriod(14)
            .build());
    }
}
resources:
  fooVpc:
    type: volcengine:vpc:Vpc
    properties:
      vpcName: acc-test-vpc
      cidrBlock: 172.16.0.0/16
  fooSubnet:
    type: volcengine:vpc:Subnet
    properties:
      subnetName: acc-test-subnet
      cidrBlock: 172.16.0.0/24
      zoneId: ${fooZones.zones[0].id}
      vpcId: ${fooVpc.id}
  fooInstance:
    type: volcengine:rds_mssql:Instance
    properties:
      dbEngineVersion: SQLServer_2019_Std
      instanceType: HA
      nodeSpec: rds.mssql.se.ha.d2.2c4g
      storageSpace: 20
      subnetIds:
        - ${fooSubnet.id}
      superAccountPassword: Tftest110
      instanceName: acc-test-mssql
      projectName: default
      chargeInfo:
        chargeType: PostPaid
      tags:
        - key: k1
          value: v1
      backupTime: 18:00Z-19:00Z
      fullBackupPeriods:
        - Monday
        - Tuesday
      backupRetentionPeriod: 14
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:ecs:Zones
      Arguments: {}
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             instance_type: Optional[str] = None,
             charge_info: Optional[InstanceChargeInfoArgs] = None,
             db_engine_version: Optional[str] = None,
             node_spec: Optional[str] = None,
             storage_space: Optional[int] = None,
             subnet_ids: Optional[Sequence[str]] = None,
             super_account_password: Optional[str] = None,
             backup_time: Optional[str] = None,
             full_backup_periods: Optional[Sequence[str]] = None,
             instance_name: Optional[str] = None,
             backup_retention_period: Optional[int] = None,
             project_name: Optional[str] = None,
             tags: Optional[Sequence[InstanceTagArgs]] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: volcengine:rds_mssql:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromRds_mssqlinstance = new Volcengine.Rds_mssql.Instance("exampleinstanceResourceResourceFromRds_mssqlinstance", new()
{
    InstanceType = "string",
    ChargeInfo = new Volcengine.Rds_mssql.Inputs.InstanceChargeInfoArgs
    {
        ChargeType = "string",
        AutoRenew = false,
        ChargeEndTime = "string",
        ChargeStartTime = "string",
        ChargeStatus = "string",
        OverdueReclaimTime = "string",
        OverdueTime = "string",
        Period = 0,
    },
    DbEngineVersion = "string",
    NodeSpec = "string",
    StorageSpace = 0,
    SubnetIds = new[]
    {
        "string",
    },
    SuperAccountPassword = "string",
    BackupTime = "string",
    FullBackupPeriods = new[]
    {
        "string",
    },
    InstanceName = "string",
    BackupRetentionPeriod = 0,
    ProjectName = "string",
    Tags = new[]
    {
        new Volcengine.Rds_mssql.Inputs.InstanceTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := rds_mssql.NewInstance(ctx, "exampleinstanceResourceResourceFromRds_mssqlinstance", &rds_mssql.InstanceArgs{
	InstanceType: pulumi.String("string"),
	ChargeInfo: &rds_mssql.InstanceChargeInfoArgs{
		ChargeType:         pulumi.String("string"),
		AutoRenew:          pulumi.Bool(false),
		ChargeEndTime:      pulumi.String("string"),
		ChargeStartTime:    pulumi.String("string"),
		ChargeStatus:       pulumi.String("string"),
		OverdueReclaimTime: pulumi.String("string"),
		OverdueTime:        pulumi.String("string"),
		Period:             pulumi.Int(0),
	},
	DbEngineVersion: pulumi.String("string"),
	NodeSpec:        pulumi.String("string"),
	StorageSpace:    pulumi.Int(0),
	SubnetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	SuperAccountPassword: pulumi.String("string"),
	BackupTime:           pulumi.String("string"),
	FullBackupPeriods: pulumi.StringArray{
		pulumi.String("string"),
	},
	InstanceName:          pulumi.String("string"),
	BackupRetentionPeriod: pulumi.Int(0),
	ProjectName:           pulumi.String("string"),
	Tags: rds_mssql.InstanceTagArray{
		&rds_mssql.InstanceTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var exampleinstanceResourceResourceFromRds_mssqlinstance = new Instance("exampleinstanceResourceResourceFromRds_mssqlinstance", InstanceArgs.builder()
    .instanceType("string")
    .chargeInfo(InstanceChargeInfoArgs.builder()
        .chargeType("string")
        .autoRenew(false)
        .chargeEndTime("string")
        .chargeStartTime("string")
        .chargeStatus("string")
        .overdueReclaimTime("string")
        .overdueTime("string")
        .period(0)
        .build())
    .dbEngineVersion("string")
    .nodeSpec("string")
    .storageSpace(0)
    .subnetIds("string")
    .superAccountPassword("string")
    .backupTime("string")
    .fullBackupPeriods("string")
    .instanceName("string")
    .backupRetentionPeriod(0)
    .projectName("string")
    .tags(InstanceTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
exampleinstance_resource_resource_from_rds_mssqlinstance = volcengine.rds_mssql.Instance("exampleinstanceResourceResourceFromRds_mssqlinstance",
    instance_type="string",
    charge_info={
        "charge_type": "string",
        "auto_renew": False,
        "charge_end_time": "string",
        "charge_start_time": "string",
        "charge_status": "string",
        "overdue_reclaim_time": "string",
        "overdue_time": "string",
        "period": 0,
    },
    db_engine_version="string",
    node_spec="string",
    storage_space=0,
    subnet_ids=["string"],
    super_account_password="string",
    backup_time="string",
    full_backup_periods=["string"],
    instance_name="string",
    backup_retention_period=0,
    project_name="string",
    tags=[{
        "key": "string",
        "value": "string",
    }])
const exampleinstanceResourceResourceFromRds_mssqlinstance = new volcengine.rds_mssql.Instance("exampleinstanceResourceResourceFromRds_mssqlinstance", {
    instanceType: "string",
    chargeInfo: {
        chargeType: "string",
        autoRenew: false,
        chargeEndTime: "string",
        chargeStartTime: "string",
        chargeStatus: "string",
        overdueReclaimTime: "string",
        overdueTime: "string",
        period: 0,
    },
    dbEngineVersion: "string",
    nodeSpec: "string",
    storageSpace: 0,
    subnetIds: ["string"],
    superAccountPassword: "string",
    backupTime: "string",
    fullBackupPeriods: ["string"],
    instanceName: "string",
    backupRetentionPeriod: 0,
    projectName: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: volcengine:rds_mssql:Instance
properties:
    backupRetentionPeriod: 0
    backupTime: string
    chargeInfo:
        autoRenew: false
        chargeEndTime: string
        chargeStartTime: string
        chargeStatus: string
        chargeType: string
        overdueReclaimTime: string
        overdueTime: string
        period: 0
    dbEngineVersion: string
    fullBackupPeriods:
        - string
    instanceName: string
    instanceType: string
    nodeSpec: string
    projectName: string
    storageSpace: 0
    subnetIds:
        - string
    superAccountPassword: string
    tags:
        - key: string
          value: string
Instance 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 Instance resource accepts the following input properties:
- ChargeInfo InstanceCharge Info 
- The charge info.
- DbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- InstanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- NodeSpec string
- The node specification.
- StorageSpace int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- SubnetIds List<string>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- SuperAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- BackupRetention intPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- BackupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- FullBackup List<string>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- InstanceName string
- Name of the instance.
- ProjectName string
- The project name.
- 
List<InstanceTag> 
- Tags.
- ChargeInfo InstanceCharge Info Args 
- The charge info.
- DbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- InstanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- NodeSpec string
- The node specification.
- StorageSpace int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- SubnetIds []string
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- SuperAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- BackupRetention intPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- BackupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- FullBackup []stringPeriods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- InstanceName string
- Name of the instance.
- ProjectName string
- The project name.
- 
[]InstanceTag Args 
- Tags.
- chargeInfo InstanceCharge Info 
- The charge info.
- dbEngine StringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- instanceType String
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec String
- The node specification.
- storageSpace Integer
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds List<String>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount StringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- backupRetention IntegerPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime String
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- fullBackup List<String>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName String
- Name of the instance.
- projectName String
- The project name.
- 
List<InstanceTag> 
- Tags.
- chargeInfo InstanceCharge Info 
- The charge info.
- dbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- instanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec string
- The node specification.
- storageSpace number
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds string[]
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- backupRetention numberPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- fullBackup string[]Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName string
- Name of the instance.
- projectName string
- The project name.
- 
InstanceTag[] 
- Tags.
- charge_info InstanceCharge Info Args 
- The charge info.
- db_engine_ strversion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- instance_type str
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- node_spec str
- The node specification.
- storage_space int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnet_ids Sequence[str]
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- super_account_ strpassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- backup_retention_ intperiod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backup_time str
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- full_backup_ Sequence[str]periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instance_name str
- Name of the instance.
- project_name str
- The project name.
- 
Sequence[InstanceTag Args] 
- Tags.
- chargeInfo Property Map
- The charge info.
- dbEngine StringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- instanceType String
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec String
- The node specification.
- storageSpace Number
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds List<String>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount StringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- backupRetention NumberPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime String
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- fullBackup List<String>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName String
- Name of the instance.
- projectName String
- The project name.
- List<Property Map>
- Tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_retention_period: Optional[int] = None,
        backup_time: Optional[str] = None,
        charge_info: Optional[InstanceChargeInfoArgs] = None,
        db_engine_version: Optional[str] = None,
        full_backup_periods: Optional[Sequence[str]] = None,
        instance_name: Optional[str] = None,
        instance_type: Optional[str] = None,
        node_spec: Optional[str] = None,
        project_name: Optional[str] = None,
        storage_space: Optional[int] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        super_account_password: Optional[str] = None,
        tags: Optional[Sequence[InstanceTagArgs]] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources:  _:    type: volcengine:rds_mssql:Instance    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.
- BackupRetention intPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- BackupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- ChargeInfo InstanceCharge Info 
- The charge info.
- DbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- FullBackup List<string>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- InstanceName string
- Name of the instance.
- InstanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- NodeSpec string
- The node specification.
- ProjectName string
- The project name.
- StorageSpace int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- SubnetIds List<string>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- SuperAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<InstanceTag> 
- Tags.
- BackupRetention intPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- BackupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- ChargeInfo InstanceCharge Info Args 
- The charge info.
- DbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- FullBackup []stringPeriods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- InstanceName string
- Name of the instance.
- InstanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- NodeSpec string
- The node specification.
- ProjectName string
- The project name.
- StorageSpace int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- SubnetIds []string
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- SuperAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
[]InstanceTag Args 
- Tags.
- backupRetention IntegerPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime String
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- chargeInfo InstanceCharge Info 
- The charge info.
- dbEngine StringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- fullBackup List<String>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName String
- Name of the instance.
- instanceType String
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec String
- The node specification.
- projectName String
- The project name.
- storageSpace Integer
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds List<String>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount StringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
List<InstanceTag> 
- Tags.
- backupRetention numberPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime string
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- chargeInfo InstanceCharge Info 
- The charge info.
- dbEngine stringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- fullBackup string[]Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName string
- Name of the instance.
- instanceType string
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec string
- The node specification.
- projectName string
- The project name.
- storageSpace number
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds string[]
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount stringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
InstanceTag[] 
- Tags.
- backup_retention_ intperiod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backup_time str
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- charge_info InstanceCharge Info Args 
- The charge info.
- db_engine_ strversion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- full_backup_ Sequence[str]periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instance_name str
- Name of the instance.
- instance_type str
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- node_spec str
- The node specification.
- project_name str
- The project name.
- storage_space int
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnet_ids Sequence[str]
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- super_account_ strpassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- 
Sequence[InstanceTag Args] 
- Tags.
- backupRetention NumberPeriod 
- Data backup retention days, value range: 7~30. This field is valid and required when updating the backup plan of instance.
- backupTime String
- The time window for starting the backup task is one hour interval. This field is valid and required when updating the backup plan of instance.
- chargeInfo Property Map
- The charge info.
- dbEngine StringVersion 
- The Compatible version. Valid values: SQLServer_2019_Std,SQLServer_2019_Web,SQLServer_2019_Ent.
- fullBackup List<String>Periods 
- Full backup cycle. Multiple values separated by commas. The values are as follows: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. This field is valid and required when updating the backup plan of instance.
- instanceName String
- Name of the instance.
- instanceType String
- The Instance type. When the value of the db_engine_versionisSQLServer_2019_Std, the value of this field can beHAorBasic.When the value of thedb_engine_versionisSQLServer_2019_Ent, the value of this field can beClusterorBasic.When the value of thedb_engine_versionisSQLServer_2019_Web, the value of this field can beBasic.
- nodeSpec String
- The node specification.
- projectName String
- The project name.
- storageSpace Number
- Storage space size, measured in GiB. The range of values is 20GiB to 4000GiB, with a step size of 10GiB.
- subnetIds List<String>
- The subnet id of the instance node. When creating an instance that includes primary and backup nodes and needs to deploy primary and backup nodes across availability zones, you can specify two subnet_id. By default, the first is the primary node availability zone, and the second is the backup node availability zone.
- superAccount StringPassword 
- The super account password. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- List<Property Map>
- Tags.
Supporting Types
InstanceChargeInfo, InstanceChargeInfoArgs      
- ChargeType string
- The charge type. Valid values: PostPaid,PrePaid.
- AutoRenew bool
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- ChargeEnd stringTime 
- Charge end time.
- ChargeStart stringTime 
- Charge start time.
- ChargeStatus string
- The charge status.
- OverdueReclaim stringTime 
- Expected release time when overdue fees are shut down.
- OverdueTime string
- Time for Disconnection due to Unpaid Fees.
- Period int
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
- ChargeType string
- The charge type. Valid values: PostPaid,PrePaid.
- AutoRenew bool
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- ChargeEnd stringTime 
- Charge end time.
- ChargeStart stringTime 
- Charge start time.
- ChargeStatus string
- The charge status.
- OverdueReclaim stringTime 
- Expected release time when overdue fees are shut down.
- OverdueTime string
- Time for Disconnection due to Unpaid Fees.
- Period int
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
- chargeType String
- The charge type. Valid values: PostPaid,PrePaid.
- autoRenew Boolean
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- chargeEnd StringTime 
- Charge end time.
- chargeStart StringTime 
- Charge start time.
- chargeStatus String
- The charge status.
- overdueReclaim StringTime 
- Expected release time when overdue fees are shut down.
- overdueTime String
- Time for Disconnection due to Unpaid Fees.
- period Integer
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
- chargeType string
- The charge type. Valid values: PostPaid,PrePaid.
- autoRenew boolean
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- chargeEnd stringTime 
- Charge end time.
- chargeStart stringTime 
- Charge start time.
- chargeStatus string
- The charge status.
- overdueReclaim stringTime 
- Expected release time when overdue fees are shut down.
- overdueTime string
- Time for Disconnection due to Unpaid Fees.
- period number
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
- charge_type str
- The charge type. Valid values: PostPaid,PrePaid.
- auto_renew bool
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- charge_end_ strtime 
- Charge end time.
- charge_start_ strtime 
- Charge start time.
- charge_status str
- The charge status.
- overdue_reclaim_ strtime 
- Expected release time when overdue fees are shut down.
- overdue_time str
- Time for Disconnection due to Unpaid Fees.
- period int
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
- chargeType String
- The charge type. Valid values: PostPaid,PrePaid.
- autoRenew Boolean
- Whether to enable automatic renewal in the prepaid scenario. This parameter can be set when the ChargeType is Prepaid.
- chargeEnd StringTime 
- Charge end time.
- chargeStart StringTime 
- Charge start time.
- chargeStatus String
- The charge status.
- overdueReclaim StringTime 
- Expected release time when overdue fees are shut down.
- overdueTime String
- Time for Disconnection due to Unpaid Fees.
- period Number
- Purchase duration in a prepaid scenario. This parameter is required when the ChargeType is Prepaid.
InstanceTag, InstanceTagArgs    
Import
Rds Mssql Instance can be imported using the id, e.g.
$ pulumi import volcengine:rds_mssql/instance:Instance default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.