published on Tuesday, Oct 27, 2026 by ucloud
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:
- 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 double
- The number of CPU cores.
- Disk
Space double - The allocated storage size in gigabytes (GB), range from 20 to 32000.
- Memory double
- 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 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). - Sqlserver
Instance stringId - 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
Sqlserver
Instance Timeouts - Vpc
Id 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 float64
- The number of CPU cores.
- Disk
Space float64 - The allocated storage size in gigabytes (GB), range from 20 to 32000.
- Memory float64
- 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 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). - Sqlserver
Instance stringId - 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
Sqlserver
Instance Timeouts Args - Vpc
Id 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_ stringid - 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.
- 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 Double
- The number of CPU cores.
- disk
Space Double - The allocated storage size in gigabytes (GB), range from 20 to 32000.
- memory Double
- 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 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). - sqlserver
Instance StringId - 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
Sqlserver
Instance Timeouts - vpc
Id 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 stringId - 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
Sqlserver
Instance Timeouts - vpc
Id 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_ strid - 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
Sqlserver
Instance Timeouts Args - vpc_
id str - 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 StringId - 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 Property Map
- vpc
Id 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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> SqlserverInstancefunc 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.
- 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 double
- 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 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). - Expire
Time string - The expiration time of the instance.
- Memory double
- The size of memory in megabytes (MB).
- Modify
Time string - The last modified time of the instance.
- Name string
- Password string
- Port double
- The port on which the database accepts connections. (Default:
1433). - Private
Ip string - The private IP address assigned to the instance.
- Sqlserver
Instance stringId - 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
Sqlserver
Instance Timeouts - Vpc
Id 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 float64
- 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 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). - Expire
Time string - The expiration time of the instance.
- Memory float64
- The size of memory in megabytes (MB).
- Modify
Time string - The last modified time of the instance.
- Name string
- Password string
- Port float64
- The port on which the database accepts connections. (Default:
1433). - Private
Ip string - The private IP address assigned to the instance.
- Sqlserver
Instance stringId - 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
Sqlserver
Instance Timeouts Args - Vpc
Id 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_ stringid - 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.
- 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 Double
- 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 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). - expire
Time String - The expiration time of the instance.
- memory Double
- The size of memory in megabytes (MB).
- modify
Time String - The last modified time of the instance.
- name String
- password String
- port Double
- The port on which the database accepts connections. (Default:
1433). - private
Ip String - The private IP address assigned to the instance.
- sqlserver
Instance StringId - 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
Sqlserver
Instance Timeouts - vpc
Id 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 stringId - 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
Sqlserver
Instance Timeouts - vpc
Id 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_ strid - 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
Sqlserver
Instance Timeouts Args - vpc_
id str - 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 StringId - 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 Property Map
- vpc
Id String - The ID of the VPC linked to the instance.
Supporting Types
SqlserverInstanceTimeouts, SqlserverInstanceTimeoutsArgs
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
ucloudTerraform Provider.
published on Tuesday, Oct 27, 2026 by ucloud