1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. SqlserverInstance
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud

    Provides a SQL Server instance resource on the nvme machine type.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = new ucloud.SqlserverInstance("example", {
        availabilityZone: "cn-bj2-05",
        name: "tf-example-sqlserver",
        dbVersion: "sqlserver-2019",
        cpu: 2,
        memory: 4000,
        diskSpace: 50,
        password: "2018_UClou",
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.SqlserverInstance("example",
        availability_zone="cn-bj2-05",
        name="tf-example-sqlserver",
        db_version="sqlserver-2019",
        cpu=2,
        memory=4000,
        disk_space=50,
        password="2018_UClou")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.NewSqlserverInstance(ctx, "example", &ucloud.SqlserverInstanceArgs{
    			AvailabilityZone: pulumi.String("cn-bj2-05"),
    			Name:             pulumi.String("tf-example-sqlserver"),
    			DbVersion:        pulumi.String("sqlserver-2019"),
    			Cpu:              pulumi.Float64(2),
    			Memory:           pulumi.Float64(4000),
    			DiskSpace:        pulumi.Float64(50),
    			Password:         pulumi.String("2018_UClou"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ucloud.SqlserverInstance("example", new()
        {
            AvailabilityZone = "cn-bj2-05",
            Name = "tf-example-sqlserver",
            DbVersion = "sqlserver-2019",
            Cpu = 2,
            Memory = 4000,
            DiskSpace = 50,
            Password = "2018_UClou",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.SqlserverInstance;
    import com.pulumi.ucloud.SqlserverInstanceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new SqlserverInstance("example", SqlserverInstanceArgs.builder()
                .availabilityZone("cn-bj2-05")
                .name("tf-example-sqlserver")
                .dbVersion("sqlserver-2019")
                .cpu(2.0)
                .memory(4000.0)
                .diskSpace(50.0)
                .password("2018_UClou")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ucloud:SqlserverInstance
        properties:
          availabilityZone: cn-bj2-05
          name: tf-example-sqlserver
          dbVersion: sqlserver-2019
          cpu: 2
          memory: 4000
          diskSpace: 50
          password: 2018_UClou
    
    Example coming soon!
    

    Create SqlserverInstance Resource

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

    Constructor syntax

    new SqlserverInstance(name: string, args: SqlserverInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def SqlserverInstance(resource_name: str,
                          args: SqlserverInstanceArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlserverInstance(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          disk_space: Optional[float] = None,
                          memory: Optional[float] = None,
                          cpu: Optional[float] = None,
                          availability_zone: Optional[str] = None,
                          db_version: Optional[str] = None,
                          duration: Optional[float] = None,
                          charge_type: Optional[str] = None,
                          name: Optional[str] = None,
                          password: Optional[str] = None,
                          port: Optional[float] = None,
                          sqlserver_instance_id: Optional[str] = None,
                          subnet_id: Optional[str] = None,
                          tag: Optional[str] = None,
                          timeouts: Optional[SqlserverInstanceTimeoutsArgs] = None,
                          vpc_id: Optional[str] = None)
    func NewSqlserverInstance(ctx *Context, name string, args SqlserverInstanceArgs, opts ...ResourceOption) (*SqlserverInstance, error)
    public SqlserverInstance(string name, SqlserverInstanceArgs args, CustomResourceOptions? opts = null)
    public SqlserverInstance(String name, SqlserverInstanceArgs args)
    public SqlserverInstance(String name, SqlserverInstanceArgs args, CustomResourceOptions options)
    
    type: ucloud:SqlserverInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ucloud_sqlserver_instance" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SqlserverInstanceArgs
    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 SqlserverInstanceArgs
    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 SqlserverInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlserverInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlserverInstanceArgs
    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 sqlserverInstanceResource = new Ucloud.SqlserverInstance("sqlserverInstanceResource", new()
    {
        DiskSpace = 0.0,
        Memory = 0.0,
        Cpu = 0.0,
        AvailabilityZone = "string",
        DbVersion = "string",
        Duration = 0.0,
        ChargeType = "string",
        Name = "string",
        Password = "string",
        Port = 0.0,
        SqlserverInstanceId = "string",
        SubnetId = "string",
        Tag = "string",
        Timeouts = new Ucloud.Inputs.SqlserverInstanceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VpcId = "string",
    });
    
    example, err := ucloud.NewSqlserverInstance(ctx, "sqlserverInstanceResource", &ucloud.SqlserverInstanceArgs{
    	DiskSpace:           pulumi.Float64(0),
    	Memory:              pulumi.Float64(0),
    	Cpu:                 pulumi.Float64(0),
    	AvailabilityZone:    pulumi.String("string"),
    	DbVersion:           pulumi.String("string"),
    	Duration:            pulumi.Float64(0),
    	ChargeType:          pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Password:            pulumi.String("string"),
    	Port:                pulumi.Float64(0),
    	SqlserverInstanceId: pulumi.String("string"),
    	SubnetId:            pulumi.String("string"),
    	Tag:                 pulumi.String("string"),
    	Timeouts: &ucloud.SqlserverInstanceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VpcId: pulumi.String("string"),
    })
    
    resource "ucloud_sqlserver_instance" "sqlserverInstanceResource" {
      lifecycle {
        create_before_destroy = true
      }
      disk_space            = 0
      memory                = 0
      cpu                   = 0
      availability_zone     = "string"
      db_version            = "string"
      duration              = 0
      charge_type           = "string"
      name                  = "string"
      password              = "string"
      port                  = 0
      sqlserver_instance_id = "string"
      subnet_id             = "string"
      tag                   = "string"
      _ {
        timeouts = {
          create = "string"
          delete = "string"
        }
      }
      vpc_id = "string"
    }
    
    var sqlserverInstanceResource = new SqlserverInstance("sqlserverInstanceResource", SqlserverInstanceArgs.builder()
        .diskSpace(0.0)
        .memory(0.0)
        .cpu(0.0)
        .availabilityZone("string")
        .dbVersion("string")
        .duration(0.0)
        .chargeType("string")
        .name("string")
        .password("string")
        .port(0.0)
        .sqlserverInstanceId("string")
        .subnetId("string")
        .tag("string")
        .timeouts(SqlserverInstanceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vpcId("string")
        .build());
    
    sqlserver_instance_resource = ucloud.SqlserverInstance("sqlserverInstanceResource",
        disk_space=float(0),
        memory=float(0),
        cpu=float(0),
        availability_zone="string",
        db_version="string",
        duration=float(0),
        charge_type="string",
        name="string",
        password="string",
        port=float(0),
        sqlserver_instance_id="string",
        subnet_id="string",
        tag="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vpc_id="string")
    
    const sqlserverInstanceResource = new ucloud.SqlserverInstance("sqlserverInstanceResource", {
        diskSpace: 0,
        memory: 0,
        cpu: 0,
        availabilityZone: "string",
        dbVersion: "string",
        duration: 0,
        chargeType: "string",
        name: "string",
        password: "string",
        port: 0,
        sqlserverInstanceId: "string",
        subnetId: "string",
        tag: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vpcId: "string",
    });
    
    type: ucloud:SqlserverInstance
    properties:
        availabilityZone: string
        chargeType: string
        cpu: 0
        dbVersion: string
        diskSpace: 0
        duration: 0
        memory: 0
        name: string
        password: string
        port: 0
        sqlserverInstanceId: string
        subnetId: string
        tag: string
        timeouts:
            create: string
            delete: string
        vpcId: string
    

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

    AvailabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    Cpu double
    The number of CPU cores.
    DiskSpace double
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    Memory double
    The size of memory in megabytes (MB).
    ChargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    DbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    Duration double
    The duration that you will buy the instance. (Default: 1).
    Name string
    Password string
    Port double
    The port on which the database accepts connections. (Default: 1433).
    SqlserverInstanceId string
    The ID of the SQL Server instance.
    SubnetId string
    The ID of the subnet linked to the instance.
    Tag string
    A tag assigned to the instance.
    Timeouts SqlserverInstanceTimeouts
    VpcId string
    The ID of the VPC linked to the instance.
    AvailabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    Cpu float64
    The number of CPU cores.
    DiskSpace float64
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    Memory float64
    The size of memory in megabytes (MB).
    ChargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    DbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    Duration float64
    The duration that you will buy the instance. (Default: 1).
    Name string
    Password string
    Port float64
    The port on which the database accepts connections. (Default: 1433).
    SqlserverInstanceId string
    The ID of the SQL Server instance.
    SubnetId string
    The ID of the subnet linked to the instance.
    Tag string
    A tag assigned to the instance.
    Timeouts SqlserverInstanceTimeoutsArgs
    VpcId string
    The ID of the VPC linked to the instance.
    availability_zone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    cpu number
    The number of CPU cores.
    disk_space number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    memory number
    The size of memory in megabytes (MB).
    charge_type string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    db_version string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    duration number
    The duration that you will buy the instance. (Default: 1).
    name string
    password string
    port number
    The port on which the database accepts connections. (Default: 1433).
    sqlserver_instance_id string
    The ID of the SQL Server instance.
    subnet_id string
    The ID of the subnet linked to the instance.
    tag string
    A tag assigned to the instance.
    timeouts object
    vpc_id string
    The ID of the VPC linked to the instance.
    availabilityZone String
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    cpu Double
    The number of CPU cores.
    diskSpace Double
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    memory Double
    The size of memory in megabytes (MB).
    chargeType String
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    dbVersion String
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    duration Double
    The duration that you will buy the instance. (Default: 1).
    name String
    password String
    port Double
    The port on which the database accepts connections. (Default: 1433).
    sqlserverInstanceId String
    The ID of the SQL Server instance.
    subnetId String
    The ID of the subnet linked to the instance.
    tag String
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeouts
    vpcId String
    The ID of the VPC linked to the instance.
    availabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    cpu number
    The number of CPU cores.
    diskSpace number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    memory number
    The size of memory in megabytes (MB).
    chargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    dbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    duration number
    The duration that you will buy the instance. (Default: 1).
    name string
    password string
    port number
    The port on which the database accepts connections. (Default: 1433).
    sqlserverInstanceId string
    The ID of the SQL Server instance.
    subnetId string
    The ID of the subnet linked to the instance.
    tag string
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeouts
    vpcId string
    The ID of the VPC linked to the instance.
    availability_zone str
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    cpu float
    The number of CPU cores.
    disk_space float
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    memory float
    The size of memory in megabytes (MB).
    charge_type str
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    db_version str
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    duration float
    The duration that you will buy the instance. (Default: 1).
    name str
    password str
    port float
    The port on which the database accepts connections. (Default: 1433).
    sqlserver_instance_id str
    The ID of the SQL Server instance.
    subnet_id str
    The ID of the subnet linked to the instance.
    tag str
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeoutsArgs
    vpc_id str
    The ID of the VPC linked to the instance.
    availabilityZone String
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    cpu Number
    The number of CPU cores.
    diskSpace Number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    memory Number
    The size of memory in megabytes (MB).
    chargeType String
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    dbVersion String
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    duration Number
    The duration that you will buy the instance. (Default: 1).
    name String
    password String
    port Number
    The port on which the database accepts connections. (Default: 1433).
    sqlserverInstanceId String
    The ID of the SQL Server instance.
    subnetId String
    The ID of the subnet linked to the instance.
    tag String
    A tag assigned to the instance.
    timeouts Property Map
    vpcId String
    The ID of the VPC linked to the instance.

    Outputs

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

    CreateTime string
    The time when the instance was created.
    ExpireTime string
    The expiration time of the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The last modified time of the instance.
    PrivateIp string
    The private IP address assigned to the instance.
    Status string
    The current status of the instance.
    CreateTime string
    The time when the instance was created.
    ExpireTime string
    The expiration time of the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    The last modified time of the instance.
    PrivateIp string
    The private IP address assigned to the instance.
    Status string
    The current status of the instance.
    create_time string
    The time when the instance was created.
    expire_time string
    The expiration time of the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    modify_time string
    The last modified time of the instance.
    private_ip string
    The private IP address assigned to the instance.
    status string
    The current status of the instance.
    createTime String
    The time when the instance was created.
    expireTime String
    The expiration time of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The last modified time of the instance.
    privateIp String
    The private IP address assigned to the instance.
    status String
    The current status of the instance.
    createTime string
    The time when the instance was created.
    expireTime string
    The expiration time of the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    modifyTime string
    The last modified time of the instance.
    privateIp string
    The private IP address assigned to the instance.
    status string
    The current status of the instance.
    create_time str
    The time when the instance was created.
    expire_time str
    The expiration time of the instance.
    id str
    The provider-assigned unique ID for this managed resource.
    modify_time str
    The last modified time of the instance.
    private_ip str
    The private IP address assigned to the instance.
    status str
    The current status of the instance.
    createTime String
    The time when the instance was created.
    expireTime String
    The expiration time of the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    The last modified time of the instance.
    privateIp String
    The private IP address assigned to the instance.
    status String
    The current status of the instance.

    Look up Existing SqlserverInstance Resource

    Get an existing SqlserverInstance 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?: SqlserverInstanceState, opts?: CustomResourceOptions): SqlserverInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            charge_type: Optional[str] = None,
            cpu: Optional[float] = None,
            create_time: Optional[str] = None,
            db_version: Optional[str] = None,
            disk_space: Optional[float] = None,
            duration: Optional[float] = None,
            expire_time: Optional[str] = None,
            memory: Optional[float] = None,
            modify_time: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            port: Optional[float] = None,
            private_ip: Optional[str] = None,
            sqlserver_instance_id: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tag: Optional[str] = None,
            timeouts: Optional[SqlserverInstanceTimeoutsArgs] = None,
            vpc_id: Optional[str] = None) -> SqlserverInstance
    func GetSqlserverInstance(ctx *Context, name string, id IDInput, state *SqlserverInstanceState, opts ...ResourceOption) (*SqlserverInstance, error)
    public static SqlserverInstance Get(string name, Input<string> id, SqlserverInstanceState? state, CustomResourceOptions? opts = null)
    public static SqlserverInstance get(String name, Output<String> id, SqlserverInstanceState state, CustomResourceOptions options)
    resources:  _:    type: ucloud:SqlserverInstance    get:      id: ${id}
    import {
      to = ucloud_sqlserver_instance.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    ChargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    Cpu double
    The number of CPU cores.
    CreateTime string
    The time when the instance was created.
    DbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    DiskSpace double
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    Duration double
    The duration that you will buy the instance. (Default: 1).
    ExpireTime string
    The expiration time of the instance.
    Memory double
    The size of memory in megabytes (MB).
    ModifyTime string
    The last modified time of the instance.
    Name string
    Password string
    Port double
    The port on which the database accepts connections. (Default: 1433).
    PrivateIp string
    The private IP address assigned to the instance.
    SqlserverInstanceId string
    The ID of the SQL Server instance.
    Status string
    The current status of the instance.
    SubnetId string
    The ID of the subnet linked to the instance.
    Tag string
    A tag assigned to the instance.
    Timeouts SqlserverInstanceTimeouts
    VpcId string
    The ID of the VPC linked to the instance.
    AvailabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    ChargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    Cpu float64
    The number of CPU cores.
    CreateTime string
    The time when the instance was created.
    DbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    DiskSpace float64
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    Duration float64
    The duration that you will buy the instance. (Default: 1).
    ExpireTime string
    The expiration time of the instance.
    Memory float64
    The size of memory in megabytes (MB).
    ModifyTime string
    The last modified time of the instance.
    Name string
    Password string
    Port float64
    The port on which the database accepts connections. (Default: 1433).
    PrivateIp string
    The private IP address assigned to the instance.
    SqlserverInstanceId string
    The ID of the SQL Server instance.
    Status string
    The current status of the instance.
    SubnetId string
    The ID of the subnet linked to the instance.
    Tag string
    A tag assigned to the instance.
    Timeouts SqlserverInstanceTimeoutsArgs
    VpcId string
    The ID of the VPC linked to the instance.
    availability_zone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    charge_type string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    cpu number
    The number of CPU cores.
    create_time string
    The time when the instance was created.
    db_version string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    disk_space number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    duration number
    The duration that you will buy the instance. (Default: 1).
    expire_time string
    The expiration time of the instance.
    memory number
    The size of memory in megabytes (MB).
    modify_time string
    The last modified time of the instance.
    name string
    password string
    port number
    The port on which the database accepts connections. (Default: 1433).
    private_ip string
    The private IP address assigned to the instance.
    sqlserver_instance_id string
    The ID of the SQL Server instance.
    status string
    The current status of the instance.
    subnet_id string
    The ID of the subnet linked to the instance.
    tag string
    A tag assigned to the instance.
    timeouts object
    vpc_id string
    The ID of the VPC linked to the instance.
    availabilityZone String
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    chargeType String
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    cpu Double
    The number of CPU cores.
    createTime String
    The time when the instance was created.
    dbVersion String
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    diskSpace Double
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    duration Double
    The duration that you will buy the instance. (Default: 1).
    expireTime String
    The expiration time of the instance.
    memory Double
    The size of memory in megabytes (MB).
    modifyTime String
    The last modified time of the instance.
    name String
    password String
    port Double
    The port on which the database accepts connections. (Default: 1433).
    privateIp String
    The private IP address assigned to the instance.
    sqlserverInstanceId String
    The ID of the SQL Server instance.
    status String
    The current status of the instance.
    subnetId String
    The ID of the subnet linked to the instance.
    tag String
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeouts
    vpcId String
    The ID of the VPC linked to the instance.
    availabilityZone string
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    chargeType string
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    cpu number
    The number of CPU cores.
    createTime string
    The time when the instance was created.
    dbVersion string
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    diskSpace number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    duration number
    The duration that you will buy the instance. (Default: 1).
    expireTime string
    The expiration time of the instance.
    memory number
    The size of memory in megabytes (MB).
    modifyTime string
    The last modified time of the instance.
    name string
    password string
    port number
    The port on which the database accepts connections. (Default: 1433).
    privateIp string
    The private IP address assigned to the instance.
    sqlserverInstanceId string
    The ID of the SQL Server instance.
    status string
    The current status of the instance.
    subnetId string
    The ID of the subnet linked to the instance.
    tag string
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeouts
    vpcId string
    The ID of the VPC linked to the instance.
    availability_zone str
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    charge_type str
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    cpu float
    The number of CPU cores.
    create_time str
    The time when the instance was created.
    db_version str
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    disk_space float
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    duration float
    The duration that you will buy the instance. (Default: 1).
    expire_time str
    The expiration time of the instance.
    memory float
    The size of memory in megabytes (MB).
    modify_time str
    The last modified time of the instance.
    name str
    password str
    port float
    The port on which the database accepts connections. (Default: 1433).
    private_ip str
    The private IP address assigned to the instance.
    sqlserver_instance_id str
    The ID of the SQL Server instance.
    status str
    The current status of the instance.
    subnet_id str
    The ID of the subnet linked to the instance.
    tag str
    A tag assigned to the instance.
    timeouts SqlserverInstanceTimeoutsArgs
    vpc_id str
    The ID of the VPC linked to the instance.
    availabilityZone String
    Availability zone where the SQL Server instance is located. Such as: "cn-bj2-05". You may refer to list of availability zone
    chargeType String
    The charge type of the instance, possible values are: Month, Year, Dynamic. (Default: Month).
    cpu Number
    The number of CPU cores.
    createTime String
    The time when the instance was created.
    dbVersion String
    The SQL Server version, possible values are: sqlserver-2017, sqlserver-2019, sqlserver-2022. (Default: sqlserver-2019).
    diskSpace Number
    The allocated storage size in gigabytes (GB), range from 20 to 32000.
    duration Number
    The duration that you will buy the instance. (Default: 1).
    expireTime String
    The expiration time of the instance.
    memory Number
    The size of memory in megabytes (MB).
    modifyTime String
    The last modified time of the instance.
    name String
    password String
    port Number
    The port on which the database accepts connections. (Default: 1433).
    privateIp String
    The private IP address assigned to the instance.
    sqlserverInstanceId String
    The ID of the SQL Server instance.
    status String
    The current status of the instance.
    subnetId String
    The ID of the subnet linked to the instance.
    tag String
    A tag assigned to the instance.
    timeouts Property Map
    vpcId String
    The ID of the VPC linked to the instance.

    Supporting Types

    SqlserverInstanceTimeouts, SqlserverInstanceTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create string
    delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    SQL Server instances can be imported using their ID:

    $ pulumi import ucloud:index/sqlserverInstance:SqlserverInstance example <instance-id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud
    Viewing docs for ucloud 1.49.0
    published on Tuesday, Oct 27, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial