1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. SqlserverflexDatabase
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 database resource schema.

    Example Usage

    resource "stackit_sqlserverflex_database" "example" {
      project_id    = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id   = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name          = "example-database"
      owner         = "example-user"
      collation     = "SQL_Latin1_General_CP1_CI_AS"
      compatibility = 160
    }
    

    Create SqlserverflexDatabase Resource

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

    Constructor syntax

    new SqlserverflexDatabase(name: string, args: SqlserverflexDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def SqlserverflexDatabase(resource_name: str,
                              args: SqlserverflexDatabaseArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlserverflexDatabase(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              instance_id: Optional[str] = None,
                              owner: Optional[str] = None,
                              project_id: Optional[str] = None,
                              collation: Optional[str] = None,
                              compatibility: Optional[int] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              timeouts: Optional[SqlserverflexDatabaseTimeoutsArgs] = None)
    func NewSqlserverflexDatabase(ctx *Context, name string, args SqlserverflexDatabaseArgs, opts ...ResourceOption) (*SqlserverflexDatabase, error)
    public SqlserverflexDatabase(string name, SqlserverflexDatabaseArgs args, CustomResourceOptions? opts = null)
    public SqlserverflexDatabase(String name, SqlserverflexDatabaseArgs args)
    public SqlserverflexDatabase(String name, SqlserverflexDatabaseArgs args, CustomResourceOptions options)
    
    type: stackit:SqlserverflexDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "stackit_sqlserverflex_database" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SqlserverflexDatabaseArgs
    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 SqlserverflexDatabaseArgs
    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 SqlserverflexDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlserverflexDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlserverflexDatabaseArgs
    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 sqlserverflexDatabaseResource = new Stackit.SqlserverflexDatabase("sqlserverflexDatabaseResource", new()
    {
        InstanceId = "string",
        Owner = "string",
        ProjectId = "string",
        Collation = "string",
        Compatibility = 0,
        Name = "string",
        Region = "string",
        Timeouts = new Stackit.Inputs.SqlserverflexDatabaseTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := stackit.NewSqlserverflexDatabase(ctx, "sqlserverflexDatabaseResource", &stackit.SqlserverflexDatabaseArgs{
    	InstanceId:    pulumi.String("string"),
    	Owner:         pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Collation:     pulumi.String("string"),
    	Compatibility: pulumi.Int(0),
    	Name:          pulumi.String("string"),
    	Region:        pulumi.String("string"),
    	Timeouts: &stackit.SqlserverflexDatabaseTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "stackit_sqlserverflex_database" "sqlserverflexDatabaseResource" {
      lifecycle {
        create_before_destroy = true
      }
      instance_id   = "string"
      owner         = "string"
      project_id    = "string"
      collation     = "string"
      compatibility = 0
      name          = "string"
      region        = "string"
      timeouts = {
        create = "string"
        delete = "string"
        read   = "string"
        update = "string"
      }
    }
    
    var sqlserverflexDatabaseResource = new SqlserverflexDatabase("sqlserverflexDatabaseResource", SqlserverflexDatabaseArgs.builder()
        .instanceId("string")
        .owner("string")
        .projectId("string")
        .collation("string")
        .compatibility(0)
        .name("string")
        .region("string")
        .timeouts(SqlserverflexDatabaseTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    sqlserverflex_database_resource = stackit.SqlserverflexDatabase("sqlserverflexDatabaseResource",
        instance_id="string",
        owner="string",
        project_id="string",
        collation="string",
        compatibility=0,
        name="string",
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const sqlserverflexDatabaseResource = new stackit.SqlserverflexDatabase("sqlserverflexDatabaseResource", {
        instanceId: "string",
        owner: "string",
        projectId: "string",
        collation: "string",
        compatibility: 0,
        name: "string",
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: stackit:SqlserverflexDatabase
    properties:
        collation: string
        compatibility: 0
        instanceId: string
        name: string
        owner: string
        projectId: string
        region: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

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

    InstanceId string
    ID of the SQLServer Flex instance.
    Owner string
    The owner of the database.
    ProjectId string
    STACKIT project ID.
    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    Name string
    Name of the database.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts SqlserverflexDatabaseTimeouts
    InstanceId string
    ID of the SQLServer Flex instance.
    Owner string
    The owner of the database.
    ProjectId string
    STACKIT project ID.
    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    Name string
    Name of the database.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts SqlserverflexDatabaseTimeoutsArgs
    instance_id string
    ID of the SQLServer Flex instance.
    owner string
    The owner of the database.
    project_id string
    STACKIT project ID.
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    name string
    Name of the database.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts object
    instanceId String
    ID of the SQLServer Flex instance.
    owner String
    The owner of the database.
    projectId String
    STACKIT project ID.
    collation String
    The collation of the database.
    compatibility Integer
    Compatibility level of the database.
    name String
    Name of the database.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeouts
    instanceId string
    ID of the SQLServer Flex instance.
    owner string
    The owner of the database.
    projectId string
    STACKIT project ID.
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    name string
    Name of the database.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeouts
    instance_id str
    ID of the SQLServer Flex instance.
    owner str
    The owner of the database.
    project_id str
    STACKIT project ID.
    collation str
    The collation of the database.
    compatibility int
    Compatibility level of the database.
    name str
    Name of the database.
    region str
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeoutsArgs
    instanceId String
    ID of the SQLServer Flex instance.
    owner String
    The owner of the database.
    projectId String
    STACKIT project ID.
    collation String
    The collation of the database.
    compatibility Number
    Compatibility level of the database.
    name String
    Name of the database.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts Property Map

    Outputs

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

    DatabaseId int
    The id of the database.
    Id string
    The provider-assigned unique ID for this managed resource.
    DatabaseId int
    The id of the database.
    Id string
    The provider-assigned unique ID for this managed resource.
    database_id number
    The id of the database.
    id string
    The provider-assigned unique ID for this managed resource.
    databaseId Integer
    The id of the database.
    id String
    The provider-assigned unique ID for this managed resource.
    databaseId number
    The id of the database.
    id string
    The provider-assigned unique ID for this managed resource.
    database_id int
    The id of the database.
    id str
    The provider-assigned unique ID for this managed resource.
    databaseId Number
    The id of the database.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SqlserverflexDatabase Resource

    Get an existing SqlserverflexDatabase 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?: SqlserverflexDatabaseState, opts?: CustomResourceOptions): SqlserverflexDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            collation: Optional[str] = None,
            compatibility: Optional[int] = None,
            database_id: Optional[int] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            timeouts: Optional[SqlserverflexDatabaseTimeoutsArgs] = None) -> SqlserverflexDatabase
    func GetSqlserverflexDatabase(ctx *Context, name string, id IDInput, state *SqlserverflexDatabaseState, opts ...ResourceOption) (*SqlserverflexDatabase, error)
    public static SqlserverflexDatabase Get(string name, Input<string> id, SqlserverflexDatabaseState? state, CustomResourceOptions? opts = null)
    public static SqlserverflexDatabase get(String name, Output<String> id, SqlserverflexDatabaseState state, CustomResourceOptions options)
    resources:  _:    type: stackit:SqlserverflexDatabase    get:      id: ${id}
    import {
      to = stackit_sqlserverflex_database.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:
    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    DatabaseId int
    The id of the database.
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Name of the database.
    Owner string
    The owner of the database.
    ProjectId string
    STACKIT project ID.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts SqlserverflexDatabaseTimeouts
    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    DatabaseId int
    The id of the database.
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Name of the database.
    Owner string
    The owner of the database.
    ProjectId string
    STACKIT project ID.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts SqlserverflexDatabaseTimeoutsArgs
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    database_id number
    The id of the database.
    instance_id string
    ID of the SQLServer Flex instance.
    name string
    Name of the database.
    owner string
    The owner of the database.
    project_id string
    STACKIT project ID.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts object
    collation String
    The collation of the database.
    compatibility Integer
    Compatibility level of the database.
    databaseId Integer
    The id of the database.
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Name of the database.
    owner String
    The owner of the database.
    projectId String
    STACKIT project ID.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeouts
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    databaseId number
    The id of the database.
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Name of the database.
    owner string
    The owner of the database.
    projectId string
    STACKIT project ID.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeouts
    collation str
    The collation of the database.
    compatibility int
    Compatibility level of the database.
    database_id int
    The id of the database.
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Name of the database.
    owner str
    The owner of the database.
    project_id str
    STACKIT project ID.
    region str
    The resource region. If not defined, the provider region is used.
    timeouts SqlserverflexDatabaseTimeoutsArgs
    collation String
    The collation of the database.
    compatibility Number
    Compatibility level of the database.
    databaseId Number
    The id of the database.
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Name of the database.
    owner String
    The owner of the database.
    projectId String
    STACKIT project ID.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts Property Map

    Supporting Types

    SqlserverflexDatabaseTimeouts, SqlserverflexDatabaseTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    In Terraform v1.5.0 and later, the + "" + import + “" + block can be used with the + "” + id + “" + attribute, for example:

    # Terraform import
    import {
      to = stackit_sqlserverflex_database.example
      id = "project_id,region,instance_id,name"
    }
    

    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