published on Monday, Aug 17, 2026 by stackitcloud
published on Monday, Aug 17, 2026 by stackitcloud
SQLServer Flex instance resource schema. Must have a region specified in the provider configuration.
Example Usage
resource "stackit_sqlserverflex_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
flavor_id = "4.16-Single"
backup_schedule = "0 0 * * *"
network = {
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
}
storage = {
class = "premium-perf2-stackit"
size = 5
}
retention_days = 32
version = "2022"
}
Create SqlserverflexInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlserverflexInstance(name: string, args: SqlserverflexInstanceArgs, opts?: CustomResourceOptions);@overload
def SqlserverflexInstance(resource_name: str,
args: SqlserverflexInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlserverflexInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
network: Optional[SqlserverflexInstanceNetworkArgs] = None,
encryption: Optional[SqlserverflexInstanceEncryptionArgs] = None,
flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
flavor_id: Optional[str] = None,
name: Optional[str] = None,
acls: Optional[Sequence[str]] = None,
options: Optional[SqlserverflexInstanceOptionsArgs] = None,
backup_schedule: Optional[str] = None,
region: Optional[str] = None,
retention_days: Optional[int] = None,
storage: Optional[SqlserverflexInstanceStorageArgs] = None,
version: Optional[str] = None)func NewSqlserverflexInstance(ctx *Context, name string, args SqlserverflexInstanceArgs, opts ...ResourceOption) (*SqlserverflexInstance, error)public SqlserverflexInstance(string name, SqlserverflexInstanceArgs args, CustomResourceOptions? opts = null)
public SqlserverflexInstance(String name, SqlserverflexInstanceArgs args)
public SqlserverflexInstance(String name, SqlserverflexInstanceArgs args, CustomResourceOptions options)
type: stackit:SqlserverflexInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "stackit_sqlserverflex_instance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- 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 SqlserverflexInstanceArgs
- 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 SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlserverflexInstanceArgs
- 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 sqlserverflexInstanceResource = new Stackit.SqlserverflexInstance("sqlserverflexInstanceResource", new()
{
ProjectId = "string",
Network = new Stackit.Inputs.SqlserverflexInstanceNetworkArgs
{
AccessScope = "string",
Acls = new[]
{
"string",
},
InstanceAddress = "string",
RouterAddress = "string",
},
Encryption = new Stackit.Inputs.SqlserverflexInstanceEncryptionArgs
{
KekKeyId = "string",
KekKeyVersion = "string",
KekKeyringId = "string",
ServiceAccount = "string",
},
FlavorId = "string",
Name = "string",
BackupSchedule = "string",
Region = "string",
RetentionDays = 0,
Storage = new Stackit.Inputs.SqlserverflexInstanceStorageArgs
{
Class = "string",
Size = 0,
},
Version = "string",
});
example, err := stackit.NewSqlserverflexInstance(ctx, "sqlserverflexInstanceResource", &stackit.SqlserverflexInstanceArgs{
ProjectId: pulumi.String("string"),
Network: &stackit.SqlserverflexInstanceNetworkArgs{
AccessScope: pulumi.String("string"),
Acls: pulumi.StringArray{
pulumi.String("string"),
},
InstanceAddress: pulumi.String("string"),
RouterAddress: pulumi.String("string"),
},
Encryption: &stackit.SqlserverflexInstanceEncryptionArgs{
KekKeyId: pulumi.String("string"),
KekKeyVersion: pulumi.String("string"),
KekKeyringId: pulumi.String("string"),
ServiceAccount: pulumi.String("string"),
},
FlavorId: pulumi.String("string"),
Name: pulumi.String("string"),
BackupSchedule: pulumi.String("string"),
Region: pulumi.String("string"),
RetentionDays: pulumi.Int(0),
Storage: &stackit.SqlserverflexInstanceStorageArgs{
Class: pulumi.String("string"),
Size: pulumi.Int(0),
},
Version: pulumi.String("string"),
})
resource "stackit_sqlserverflex_instance" "sqlserverflexInstanceResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
network = {
access_scope = "string"
acls = ["string"]
instance_address = "string"
router_address = "string"
}
encryption = {
kek_key_id = "string"
kek_key_version = "string"
kek_keyring_id = "string"
service_account = "string"
}
flavor_id = "string"
name = "string"
backup_schedule = "string"
region = "string"
retention_days = 0
storage = {
class = "string"
size = 0
}
version = "string"
}
var sqlserverflexInstanceResource = new SqlserverflexInstance("sqlserverflexInstanceResource", SqlserverflexInstanceArgs.builder()
.projectId("string")
.network(SqlserverflexInstanceNetworkArgs.builder()
.accessScope("string")
.acls("string")
.instanceAddress("string")
.routerAddress("string")
.build())
.encryption(SqlserverflexInstanceEncryptionArgs.builder()
.kekKeyId("string")
.kekKeyVersion("string")
.kekKeyringId("string")
.serviceAccount("string")
.build())
.flavorId("string")
.name("string")
.backupSchedule("string")
.region("string")
.retentionDays(0)
.storage(SqlserverflexInstanceStorageArgs.builder()
.class_("string")
.size(0)
.build())
.version("string")
.build());
sqlserverflex_instance_resource = stackit.SqlserverflexInstance("sqlserverflexInstanceResource",
project_id="string",
network={
"access_scope": "string",
"acls": ["string"],
"instance_address": "string",
"router_address": "string",
},
encryption={
"kek_key_id": "string",
"kek_key_version": "string",
"kek_keyring_id": "string",
"service_account": "string",
},
flavor_id="string",
name="string",
backup_schedule="string",
region="string",
retention_days=0,
storage={
"class_": "string",
"size": 0,
},
version="string")
const sqlserverflexInstanceResource = new stackit.SqlserverflexInstance("sqlserverflexInstanceResource", {
projectId: "string",
network: {
accessScope: "string",
acls: ["string"],
instanceAddress: "string",
routerAddress: "string",
},
encryption: {
kekKeyId: "string",
kekKeyVersion: "string",
kekKeyringId: "string",
serviceAccount: "string",
},
flavorId: "string",
name: "string",
backupSchedule: "string",
region: "string",
retentionDays: 0,
storage: {
"class": "string",
size: 0,
},
version: "string",
});
type: stackit:SqlserverflexInstance
properties:
backupSchedule: string
encryption:
kekKeyId: string
kekKeyVersion: string
kekKeyringId: string
serviceAccount: string
flavorId: string
name: string
network:
accessScope: string
acls:
- string
instanceAddress: string
routerAddress: string
projectId: string
region: string
retentionDays: 0
storage:
class: string
size: 0
version: string
SqlserverflexInstance 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 SqlserverflexInstance resource accepts the following input properties:
- Project
Id string - STACKIT project ID to which the instance is associated.
- Acls List<string>
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- Encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- Flavor
Sqlserverflex
Instance Flavor - Flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - Name string
- Instance name.
- Network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- Options
Sqlserverflex
Instance Options - Region string
- The resource region. If not defined, the provider region is used.
- Retention
Days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- Storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- Version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- Project
Id string - STACKIT project ID to which the instance is associated.
- Acls []string
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- Encryption
Sqlserverflex
Instance Encryption Args - Parameter to define which key to use for storage encryption.
- Flavor
Sqlserverflex
Instance Flavor Args - Flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - Name string
- Instance name.
- Network
Sqlserverflex
Instance Network Args - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- Options
Sqlserverflex
Instance Options Args - Region string
- The resource region. If not defined, the provider region is used.
- Retention
Days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- Storage
Sqlserverflex
Instance Storage Args - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- Version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- project_
id string - STACKIT project ID to which the instance is associated.
- acls list(string)
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- encryption object
- Parameter to define which key to use for storage encryption.
- flavor object
- flavor_
id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - name string
- Instance name.
- network object
- The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options object
- region string
- The resource region. If not defined, the provider region is used.
- retention_
days number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage object
- The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- project
Id String - STACKIT project ID to which the instance is associated.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor - flavor
Id String - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - name String
- Instance name.
- network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options - region String
- The resource region. If not defined, the provider region is used.
- retention
Days Integer - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version String
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- project
Id string - STACKIT project ID to which the instance is associated.
- acls string[]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor - flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - name string
- Instance name.
- network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options - region string
- The resource region. If not defined, the provider region is used.
- retention
Days number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- project_
id str - STACKIT project ID to which the instance is associated.
- acls Sequence[str]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule str - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- encryption
Sqlserverflex
Instance Encryption Args - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor Args - flavor_
id str - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - name str
- Instance name.
- network
Sqlserverflex
Instance Network Args - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options Args - region str
- The resource region. If not defined, the provider region is used.
- retention_
days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage Args - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version str
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- project
Id String - STACKIT project ID to which the instance is associated.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- encryption Property Map
- Parameter to define which key to use for storage encryption.
- flavor Property Map
- flavor
Id String - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - name String
- Instance name.
- network Property Map
- The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options Property Map
- region String
- The resource region. If not defined, the provider region is used.
- retention
Days Number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage Property Map
- The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version String
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverflexInstance resource produces the following output properties:
- Edition string
- Edition of the MSSQL server instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the SQLServer Flex instance.
- Replicas int
- Edition string
- Edition of the MSSQL server instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - ID of the SQLServer Flex instance.
- Replicas int
- edition string
- Edition of the MSSQL server instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
id string - ID of the SQLServer Flex instance.
- replicas number
- edition String
- Edition of the MSSQL server instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the SQLServer Flex instance.
- replicas Integer
- edition string
- Edition of the MSSQL server instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - ID of the SQLServer Flex instance.
- replicas number
- edition str
- Edition of the MSSQL server instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - ID of the SQLServer Flex instance.
- replicas int
- edition String
- Edition of the MSSQL server instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - ID of the SQLServer Flex instance.
- replicas Number
Look up Existing SqlserverflexInstance Resource
Get an existing SqlserverflexInstance 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?: SqlserverflexInstanceState, opts?: CustomResourceOptions): SqlserverflexInstance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acls: Optional[Sequence[str]] = None,
backup_schedule: Optional[str] = None,
edition: Optional[str] = None,
encryption: Optional[SqlserverflexInstanceEncryptionArgs] = None,
flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
flavor_id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
network: Optional[SqlserverflexInstanceNetworkArgs] = None,
options: Optional[SqlserverflexInstanceOptionsArgs] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
replicas: Optional[int] = None,
retention_days: Optional[int] = None,
storage: Optional[SqlserverflexInstanceStorageArgs] = None,
version: Optional[str] = None) -> SqlserverflexInstancefunc GetSqlserverflexInstance(ctx *Context, name string, id IDInput, state *SqlserverflexInstanceState, opts ...ResourceOption) (*SqlserverflexInstance, error)public static SqlserverflexInstance Get(string name, Input<string> id, SqlserverflexInstanceState? state, CustomResourceOptions? opts = null)public static SqlserverflexInstance get(String name, Output<String> id, SqlserverflexInstanceState state, CustomResourceOptions options)resources: _: type: stackit:SqlserverflexInstance get: id: ${id}import {
to = stackit_sqlserverflex_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.
- Acls List<string>
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- Edition string
- Edition of the MSSQL server instance.
- Encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- Flavor
Sqlserverflex
Instance Flavor - Flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - Instance
Id string - ID of the SQLServer Flex instance.
- Name string
- Instance name.
- Network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- Options
Sqlserverflex
Instance Options - Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- Retention
Days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- Storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- Version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- Acls []string
- The Access Control List (ACL) for the SQLServer Flex instance.
- Backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- Edition string
- Edition of the MSSQL server instance.
- Encryption
Sqlserverflex
Instance Encryption Args - Parameter to define which key to use for storage encryption.
- Flavor
Sqlserverflex
Instance Flavor Args - Flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - Instance
Id string - ID of the SQLServer Flex instance.
- Name string
- Instance name.
- Network
Sqlserverflex
Instance Network Args - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- Options
Sqlserverflex
Instance Options Args - Project
Id string - STACKIT project ID to which the instance is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Replicas int
- Retention
Days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- Storage
Sqlserverflex
Instance Storage Args - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- Version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- acls list(string)
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- edition string
- Edition of the MSSQL server instance.
- encryption object
- Parameter to define which key to use for storage encryption.
- flavor object
- flavor_
id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - instance_
id string - ID of the SQLServer Flex instance.
- name string
- Instance name.
- network object
- The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options object
- project_
id string - STACKIT project ID to which the instance is associated.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- retention_
days number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage object
- The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- edition String
- Edition of the MSSQL server instance.
- encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor - flavor
Id String - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - instance
Id String - ID of the SQLServer Flex instance.
- name String
- Instance name.
- network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options - project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Integer
- retention
Days Integer - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version String
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- acls string[]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule string - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- edition string
- Edition of the MSSQL server instance.
- encryption
Sqlserverflex
Instance Encryption - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor - flavor
Id string - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - instance
Id string - ID of the SQLServer Flex instance.
- name string
- Instance name.
- network
Sqlserverflex
Instance Network - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options - project
Id string - STACKIT project ID to which the instance is associated.
- region string
- The resource region. If not defined, the provider region is used.
- replicas number
- retention
Days number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version string
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- acls Sequence[str]
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup_
schedule str - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- edition str
- Edition of the MSSQL server instance.
- encryption
Sqlserverflex
Instance Encryption Args - Parameter to define which key to use for storage encryption.
- flavor
Sqlserverflex
Instance Flavor Args - flavor_
id str - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - instance_
id str - ID of the SQLServer Flex instance.
- name str
- Instance name.
- network
Sqlserverflex
Instance Network Args - The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options
Sqlserverflex
Instance Options Args - project_
id str - STACKIT project ID to which the instance is associated.
- region str
- The resource region. If not defined, the provider region is used.
- replicas int
- retention_
days int - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage
Sqlserverflex
Instance Storage Args - The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version str
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
- acls List<String>
- The Access Control List (ACL) for the SQLServer Flex instance.
- backup
Schedule String - The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *") Will be required in the future. Set a value to prevent breaking changes.
- edition String
- Edition of the MSSQL server instance.
- encryption Property Map
- Parameter to define which key to use for storage encryption.
- flavor Property Map
- flavor
Id String - The flavor ID of the SQLServer Flex instance. Can only be set when
flavorandreplicasare not set. You can list available flavors using the datasourcestackit.getSqlserverflexFlavors. - instance
Id String - ID of the SQLServer Flex instance.
- name String
- Instance name.
- network Property Map
- The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
- options Property Map
- project
Id String - STACKIT project ID to which the instance is associated.
- region String
- The resource region. If not defined, the provider region is used.
- replicas Number
- retention
Days Number - The days (30 to 90) for how long the backup files should be stored before cleaned up. Will be required in the future. Set a value to prevent breaking changes.
- storage Property Map
- The object containing information about the storage size and class. Will be required in the future. Set a value to prevent breaking changes.
- version String
- The sqlserver version used for the instance. Possible values are:
2022. Will be required in the future. Set a value to prevent breaking changes.
Supporting Types
SqlserverflexInstanceEncryption, SqlserverflexInstanceEncryptionArgs
- Kek
Key stringId - UUID of the key within the STACKIT-KMS to use for the encryption.
- Kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- Kek
Keyring stringId - UUID of the keyring where the key is located within the STACKTI-KMS.
- Service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- Kek
Key stringId - UUID of the key within the STACKIT-KMS to use for the encryption.
- Kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- Kek
Keyring stringId - UUID of the keyring where the key is located within the STACKTI-KMS.
- Service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek_
key_ stringid - UUID of the key within the STACKIT-KMS to use for the encryption.
- kek_
key_ stringversion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek_
keyring_ stringid - UUID of the keyring where the key is located within the STACKTI-KMS.
- service_
account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key StringId - UUID of the key within the STACKIT-KMS to use for the encryption.
- kek
Key StringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring StringId - UUID of the keyring where the key is located within the STACKTI-KMS.
- service
Account String - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key stringId - UUID of the key within the STACKIT-KMS to use for the encryption.
- kek
Key stringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring stringId - UUID of the keyring where the key is located within the STACKTI-KMS.
- service
Account string - Service-Account linked to the Key within the STACKIT-KMS.
- kek_
key_ strid - UUID of the key within the STACKIT-KMS to use for the encryption.
- kek_
key_ strversion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek_
keyring_ strid - UUID of the keyring where the key is located within the STACKTI-KMS.
- service_
account str - Service-Account linked to the Key within the STACKIT-KMS.
- kek
Key StringId - UUID of the key within the STACKIT-KMS to use for the encryption.
- kek
Key StringVersion - Version of the key within the STACKIT-KMS to use for the encryption.
- kek
Keyring StringId - UUID of the keyring where the key is located within the STACKTI-KMS.
- service
Account String - Service-Account linked to the Key within the STACKIT-KMS.
SqlserverflexInstanceFlavor, SqlserverflexInstanceFlavorArgs
- Cpu int
- Ram int
- Description string
- Id string
- Cpu int
- Ram int
- Description string
- Id string
- cpu number
- ram number
- description string
- id string
- cpu Integer
- ram Integer
- description String
- id String
- cpu number
- ram number
- description string
- id string
- cpu int
- ram int
- description str
- id str
- cpu Number
- ram Number
- description String
- id String
SqlserverflexInstanceNetwork, SqlserverflexInstanceNetworkArgs
- Access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - Acls List<string>
- List of IPV4 cidr.
- Instance
Address string - Address of this instance.
- Router
Address string - Address of the router.
- Access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - Acls []string
- List of IPV4 cidr.
- Instance
Address string - Address of this instance.
- Router
Address string - Address of the router.
- access_
scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls list(string)
- List of IPV4 cidr.
- instance_
address string - Address of this instance.
- router_
address string - Address of the router.
- access
Scope String - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls List<String>
- List of IPV4 cidr.
- instance
Address String - Address of this instance.
- router
Address String - Address of the router.
- access
Scope string - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls string[]
- List of IPV4 cidr.
- instance
Address string - Address of this instance.
- router
Address string - Address of the router.
- access_
scope str - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls Sequence[str]
- List of IPV4 cidr.
- instance_
address str - Address of this instance.
- router_
address str - Address of the router.
- access
Scope String - The network access scope of the instance. This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. Possible values are:
PUBLIC,SNA. - acls List<String>
- List of IPV4 cidr.
- instance
Address String - Address of this instance.
- router
Address String - Address of the router.
SqlserverflexInstanceOptions, SqlserverflexInstanceOptionsArgs
- Edition string
- Retention
Days int
- Edition string
- Retention
Days int
- edition string
- retention_
days number
- edition String
- retention
Days Integer
- edition string
- retention
Days number
- edition str
- retention_
days int
- edition String
- retention
Days Number
SqlserverflexInstanceStorage, SqlserverflexInstanceStorageArgs
- Class string
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - Size int
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- Class string
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - Size int
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- class string
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - size number
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- class_ String
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - size Integer
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- class string
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - size number
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- class_ str
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - size int
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
- class String
- The storage class. You can list available storage classes for a the according flavors using the datasource
stackit.getSqlserverflexFlavors. Will be required in the future. Set a value to prevent breaking changes. - size Number
- The storage size in Gigabytes. Will be required in the future. Set a value to prevent breaking changes.
Import
In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:
# Only use the import statement, if you want to import an existing sqlserverflex instance
import {
to = stackit_sqlserverflex_instance.import-example
id = "${var.project_id},${var.region},${var.sql_instance_id}"
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Monday, Aug 17, 2026 by stackitcloud