1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. SqlserverflexInstance
Viewing docs for stackit v0.0.7
published on Monday, Aug 17, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.7
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:

    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls List<string>
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    Flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    FlavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    Name string
    Instance name.
    Network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    Options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    Region string
    The resource region. If not defined, the provider region is used.
    RetentionDays 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 SqlserverflexInstanceStorage
    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.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls []string
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 SqlserverflexInstanceEncryptionArgs
    Parameter to define which key to use for storage encryption.
    Flavor SqlserverflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    FlavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    Name string
    Instance name.
    Network SqlserverflexInstanceNetworkArgs
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    Options SqlserverflexInstanceOptionsArgs

    Deprecated: option is deprecated and will be removed after February 2027.

    Region string
    The resource region. If not defined, the provider region is used.
    RetentionDays 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 SqlserverflexInstanceStorageArgs
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavor_id string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: option is deprecated and will be removed after February 2027.

    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.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId String
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    name String
    Instance name.
    network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    region String
    The resource region. If not defined, the provider region is used.
    retentionDays 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 SqlserverflexInstanceStorage
    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.
    projectId string
    STACKIT project ID to which the instance is associated.
    acls string[]
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    name string
    Instance name.
    network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    region string
    The resource region. If not defined, the provider region is used.
    retentionDays 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 SqlserverflexInstanceStorage
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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 SqlserverflexInstanceEncryptionArgs
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavor_id str
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    name str
    Instance name.
    network SqlserverflexInstanceNetworkArgs
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptionsArgs

    Deprecated: option is deprecated and will be removed after February 2027.

    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 SqlserverflexInstanceStorageArgs
    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.
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId String
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: option is deprecated and will be removed after February 2027.

    region String
    The resource region. If not defined, the provider region is used.
    retentionDays 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.
    InstanceId 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.
    InstanceId 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.
    instanceId 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.
    instanceId 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.
    instanceId 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) -> SqlserverflexInstance
    func 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.
    The following state arguments are supported:
    Acls List<string>
    The Access Control List (ACL) for the SQLServer Flex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    Flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    FlavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    Options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    ProjectId 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
    RetentionDays 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 SqlserverflexInstanceStorage
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule 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 SqlserverflexInstanceEncryptionArgs
    Parameter to define which key to use for storage encryption.
    Flavor SqlserverflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    FlavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Network SqlserverflexInstanceNetworkArgs
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    Options SqlserverflexInstanceOptionsArgs

    Deprecated: option is deprecated and will be removed after February 2027.

    ProjectId 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
    RetentionDays 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 SqlserverflexInstanceStorageArgs
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavor_id string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.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

    Deprecated: option is deprecated and will be removed after February 2027.

    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId String
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    projectId 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
    retentionDays 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 SqlserverflexInstanceStorage
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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 SqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId string
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Instance name.
    network SqlserverflexInstanceNetwork
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptions

    Deprecated: option is deprecated and will be removed after February 2027.

    projectId 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
    retentionDays 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 SqlserverflexInstanceStorage
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    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 SqlserverflexInstanceEncryptionArgs
    Parameter to define which key to use for storage encryption.
    flavor SqlserverflexInstanceFlavorArgs

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavor_id str
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Instance name.
    network SqlserverflexInstanceNetworkArgs
    The network configuration of the instance. Will be required in the future. Set a value to prevent breaking changes.
    options SqlserverflexInstanceOptionsArgs

    Deprecated: option is deprecated and will be removed after February 2027.

    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 SqlserverflexInstanceStorageArgs
    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.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule 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

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.

    flavorId String
    The flavor ID of the SQLServer Flex instance. Can only be set when flavor and replicas are not set. You can list available flavors using the datasource stackit.getSqlserverflexFlavors.
    instanceId 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

    Deprecated: option is deprecated and will be removed after February 2027.

    projectId 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
    retentionDays 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

    KekKeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KekKeyVersion string
    Version of the key within the STACKIT-KMS to use for the encryption.
    KekKeyringId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    ServiceAccount string
    Service-Account linked to the Key within the STACKIT-KMS.
    KekKeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    KekKeyVersion string
    Version of the key within the STACKIT-KMS to use for the encryption.
    KekKeyringId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    ServiceAccount string
    Service-Account linked to the Key within the STACKIT-KMS.
    kek_key_id string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    kek_key_version string
    Version of the key within the STACKIT-KMS to use for the encryption.
    kek_keyring_id string
    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.
    kekKeyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    kekKeyVersion String
    Version of the key within the STACKIT-KMS to use for the encryption.
    kekKeyringId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    serviceAccount String
    Service-Account linked to the Key within the STACKIT-KMS.
    kekKeyId string
    UUID of the key within the STACKIT-KMS to use for the encryption.
    kekKeyVersion string
    Version of the key within the STACKIT-KMS to use for the encryption.
    kekKeyringId string
    UUID of the keyring where the key is located within the STACKTI-KMS.
    serviceAccount string
    Service-Account linked to the Key within the STACKIT-KMS.
    kek_key_id str
    UUID of the key within the STACKIT-KMS to use for the encryption.
    kek_key_version str
    Version of the key within the STACKIT-KMS to use for the encryption.
    kek_keyring_id str
    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.
    kekKeyId String
    UUID of the key within the STACKIT-KMS to use for the encryption.
    kekKeyVersion String
    Version of the key within the STACKIT-KMS to use for the encryption.
    kekKeyringId String
    UUID of the keyring where the key is located within the STACKTI-KMS.
    serviceAccount 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

    AccessScope 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.
    InstanceAddress string
    Address of this instance.
    RouterAddress string
    Address of the router.
    AccessScope 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.
    InstanceAddress string
    Address of this instance.
    RouterAddress 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.
    accessScope 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.
    instanceAddress String
    Address of this instance.
    routerAddress String
    Address of the router.
    accessScope 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.
    instanceAddress string
    Address of this instance.
    routerAddress 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.
    accessScope 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.
    instanceAddress String
    Address of this instance.
    routerAddress String
    Address of the router.

    SqlserverflexInstanceOptions, SqlserverflexInstanceOptionsArgs

    Edition string

    Deprecated: edition is deprecated and will be removed after February 2027.

    RetentionDays int

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    Edition string

    Deprecated: edition is deprecated and will be removed after February 2027.

    RetentionDays int

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    edition string

    Deprecated: edition is deprecated and will be removed after February 2027.

    retention_days number

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    edition String

    Deprecated: edition is deprecated and will be removed after February 2027.

    retentionDays Integer

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    edition string

    Deprecated: edition is deprecated and will be removed after February 2027.

    retentionDays number

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    edition str

    Deprecated: edition is deprecated and will be removed after February 2027.

    retention_days int

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    edition String

    Deprecated: edition is deprecated and will be removed after February 2027.

    retentionDays Number

    Deprecated: retention_days is deprecated and will be removed after February 2027. Use instead retentionDays from root.

    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 stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial