1. Packages
  2. stackit
  3. API Docs
  4. SqlserverflexInstance
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 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"
      acl             = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
      backup_schedule = "00 00 * * *"
      flavor = {
        cpu = 4
        ram = 16
      }
      storage = {
        class = "class"
        size  = 5
      }
      version = 2022
    }
    
    # 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}"
    }
    

    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,
                              flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
                              project_id: Optional[str] = None,
                              acls: Optional[Sequence[str]] = None,
                              backup_schedule: Optional[str] = None,
                              name: Optional[str] = None,
                              options: Optional[SqlserverflexInstanceOptionsArgs] = None,
                              region: Optional[str] = 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.
    
    

    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()
    {
        Flavor = new Stackit.Inputs.SqlserverflexInstanceFlavorArgs
        {
            Cpu = 0,
            Ram = 0,
            Description = "string",
            Id = "string",
        },
        ProjectId = "string",
        Acls = new[]
        {
            "string",
        },
        BackupSchedule = "string",
        Name = "string",
        Options = new Stackit.Inputs.SqlserverflexInstanceOptionsArgs
        {
            Edition = "string",
            RetentionDays = 0,
        },
        Region = "string",
        Storage = new Stackit.Inputs.SqlserverflexInstanceStorageArgs
        {
            Class = "string",
            Size = 0,
        },
        Version = "string",
    });
    
    example, err := stackit.NewSqlserverflexInstance(ctx, "sqlserverflexInstanceResource", &stackit.SqlserverflexInstanceArgs{
    	Flavor: &stackit.SqlserverflexInstanceFlavorArgs{
    		Cpu:         pulumi.Int(0),
    		Ram:         pulumi.Int(0),
    		Description: pulumi.String("string"),
    		Id:          pulumi.String("string"),
    	},
    	ProjectId: pulumi.String("string"),
    	Acls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BackupSchedule: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Options: &stackit.SqlserverflexInstanceOptionsArgs{
    		Edition:       pulumi.String("string"),
    		RetentionDays: pulumi.Int(0),
    	},
    	Region: pulumi.String("string"),
    	Storage: &stackit.SqlserverflexInstanceStorageArgs{
    		Class: pulumi.String("string"),
    		Size:  pulumi.Int(0),
    	},
    	Version: pulumi.String("string"),
    })
    
    var sqlserverflexInstanceResource = new SqlserverflexInstance("sqlserverflexInstanceResource", SqlserverflexInstanceArgs.builder()
        .flavor(SqlserverflexInstanceFlavorArgs.builder()
            .cpu(0)
            .ram(0)
            .description("string")
            .id("string")
            .build())
        .projectId("string")
        .acls("string")
        .backupSchedule("string")
        .name("string")
        .options(SqlserverflexInstanceOptionsArgs.builder()
            .edition("string")
            .retentionDays(0)
            .build())
        .region("string")
        .storage(SqlserverflexInstanceStorageArgs.builder()
            .class_("string")
            .size(0)
            .build())
        .version("string")
        .build());
    
    sqlserverflex_instance_resource = stackit.SqlserverflexInstance("sqlserverflexInstanceResource",
        flavor={
            "cpu": 0,
            "ram": 0,
            "description": "string",
            "id": "string",
        },
        project_id="string",
        acls=["string"],
        backup_schedule="string",
        name="string",
        options={
            "edition": "string",
            "retention_days": 0,
        },
        region="string",
        storage={
            "class_": "string",
            "size": 0,
        },
        version="string")
    
    const sqlserverflexInstanceResource = new stackit.SqlserverflexInstance("sqlserverflexInstanceResource", {
        flavor: {
            cpu: 0,
            ram: 0,
            description: "string",
            id: "string",
        },
        projectId: "string",
        acls: ["string"],
        backupSchedule: "string",
        name: "string",
        options: {
            edition: "string",
            retentionDays: 0,
        },
        region: "string",
        storage: {
            "class": "string",
            size: 0,
        },
        version: "string",
    });
    
    type: stackit:SqlserverflexInstance
    properties:
        acls:
            - string
        backupSchedule: string
        flavor:
            cpu: 0
            description: string
            id: string
            ram: 0
        name: string
        options:
            edition: string
            retentionDays: 0
        projectId: string
        region: string
        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:

    Flavor SqlserverflexInstanceFlavor
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls List<string>
    The Access Control List (ACL) for the SQLServer Flex instance.
    BackupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    Name string
    Instance name.
    Options SqlserverflexInstanceOptions
    Region string
    The resource region. If not defined, the provider region is used.
    Storage SqlserverflexInstanceStorage
    Version string
    Flavor SqlserverflexInstanceFlavorArgs
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Acls []string
    The Access Control List (ACL) for the SQLServer Flex instance.
    BackupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    Name string
    Instance name.
    Options SqlserverflexInstanceOptionsArgs
    Region string
    The resource region. If not defined, the provider region is used.
    Storage SqlserverflexInstanceStorageArgs
    Version string
    flavor SqlserverflexInstanceFlavor
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule String
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    name String
    Instance name.
    options SqlserverflexInstanceOptions
    region String
    The resource region. If not defined, the provider region is used.
    storage SqlserverflexInstanceStorage
    version String
    flavor SqlserverflexInstanceFlavor
    projectId string
    STACKIT project ID to which the instance is associated.
    acls string[]
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    name string
    Instance name.
    options SqlserverflexInstanceOptions
    region string
    The resource region. If not defined, the provider region is used.
    storage SqlserverflexInstanceStorage
    version string
    flavor SqlserverflexInstanceFlavorArgs
    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 * * *")
    name str
    Instance name.
    options SqlserverflexInstanceOptionsArgs
    region str
    The resource region. If not defined, the provider region is used.
    storage SqlserverflexInstanceStorageArgs
    version str
    flavor Property Map
    projectId String
    STACKIT project ID to which the instance is associated.
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule String
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    name String
    Instance name.
    options Property Map
    region String
    The resource region. If not defined, the provider region is used.
    storage Property Map
    version String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID of the SQLServer Flex instance.
    Replicas int
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    ID of the SQLServer Flex instance.
    Replicas int
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    ID of the SQLServer Flex instance.
    replicas Integer
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    ID of the SQLServer Flex instance.
    replicas number
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    ID of the SQLServer Flex instance.
    replicas int
    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,
            flavor: Optional[SqlserverflexInstanceFlavorArgs] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            options: Optional[SqlserverflexInstanceOptionsArgs] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            replicas: 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}
    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.
    BackupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    Flavor SqlserverflexInstanceFlavor
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options SqlserverflexInstanceOptions
    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
    Storage SqlserverflexInstanceStorage
    Version string
    Acls []string
    The Access Control List (ACL) for the SQLServer Flex instance.
    BackupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    Flavor SqlserverflexInstanceFlavorArgs
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options SqlserverflexInstanceOptionsArgs
    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
    Storage SqlserverflexInstanceStorageArgs
    Version string
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule String
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    flavor SqlserverflexInstanceFlavor
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options SqlserverflexInstanceOptions
    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
    storage SqlserverflexInstanceStorage
    version String
    acls string[]
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule string
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    flavor SqlserverflexInstanceFlavor
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Instance name.
    options SqlserverflexInstanceOptions
    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
    storage SqlserverflexInstanceStorage
    version string
    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 * * *")
    flavor SqlserverflexInstanceFlavorArgs
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Instance name.
    options SqlserverflexInstanceOptionsArgs
    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
    storage SqlserverflexInstanceStorageArgs
    version str
    acls List<String>
    The Access Control List (ACL) for the SQLServer Flex instance.
    backupSchedule String
    The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *")
    flavor Property Map
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options Property Map
    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
    storage Property Map
    version String

    Supporting Types

    SqlserverflexInstanceFlavor, SqlserverflexInstanceFlavorArgs

    Cpu int
    Ram int
    Description string
    Id string
    Cpu int
    Ram int
    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

    SqlserverflexInstanceOptions, SqlserverflexInstanceOptionsArgs

    edition String
    retentionDays Integer
    edition string
    retentionDays number
    edition String
    retentionDays Number

    SqlserverflexInstanceStorage, SqlserverflexInstanceStorageArgs

    Class string
    Size int
    Class string
    Size int
    class_ String
    size Integer
    class string
    size number
    class_ str
    size int
    class String
    size Number

    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.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.