1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getSqlserverflexDatabase
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 data source schema.

    Example Usage

    data "stackit_sqlserverflex_database" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name        = "example-database"
    }
    

    Using getSqlserverflexDatabase

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSqlserverflexDatabase(args: GetSqlserverflexDatabaseArgs, opts?: InvokeOptions): Promise<GetSqlserverflexDatabaseResult>
    function getSqlserverflexDatabaseOutput(args: GetSqlserverflexDatabaseOutputArgs, opts?: InvokeOutputOptions): Output<GetSqlserverflexDatabaseResult>
    def get_sqlserverflex_database(instance_id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   project_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   timeouts: Optional[GetSqlserverflexDatabaseTimeouts] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSqlserverflexDatabaseResult
    def get_sqlserverflex_database_output(instance_id: pulumi.Input[Optional[str]] = None,
                                   name: pulumi.Input[Optional[str]] = None,
                                   project_id: pulumi.Input[Optional[str]] = None,
                                   region: pulumi.Input[Optional[str]] = None,
                                   timeouts: pulumi.Input[Optional[GetSqlserverflexDatabaseTimeoutsArgs]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetSqlserverflexDatabaseResult]
    func LookupSqlserverflexDatabase(ctx *Context, args *LookupSqlserverflexDatabaseArgs, opts ...InvokeOption) (*LookupSqlserverflexDatabaseResult, error)
    func LookupSqlserverflexDatabaseOutput(ctx *Context, args *LookupSqlserverflexDatabaseOutputArgs, opts ...InvokeOption) LookupSqlserverflexDatabaseResultOutput

    > Note: This function is named LookupSqlserverflexDatabase in the Go SDK.

    public static class GetSqlserverflexDatabase 
    {
        public static Task<GetSqlserverflexDatabaseResult> InvokeAsync(GetSqlserverflexDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverflexDatabaseResult> Invoke(GetSqlserverflexDatabaseInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverflexDatabaseResult> Invoke(GetSqlserverflexDatabaseInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSqlserverflexDatabaseResult> getSqlserverflexDatabase(GetSqlserverflexDatabaseArgs args, InvokeOptions options)
    public static Output<GetSqlserverflexDatabaseResult> getSqlserverflexDatabase(GetSqlserverflexDatabaseArgs args, InvokeOptions options)
    public static Output<GetSqlserverflexDatabaseResult> getSqlserverflexDatabase(GetSqlserverflexDatabaseArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getSqlserverflexDatabase:getSqlserverflexDatabase
      arguments:
        # arguments dictionary
    data "stackit_get_sqlserverflex_database" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Name of the database.
    ProjectId string
    STACKIT project ID.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetSqlserverflexDatabaseTimeouts
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Name of the database.
    ProjectId string
    STACKIT project ID.
    Region string
    The resource region. If not defined, the provider region is used.
    Timeouts GetSqlserverflexDatabaseTimeouts
    instance_id string
    ID of the SQLServer Flex instance.
    name string
    Name of the database.
    project_id string
    STACKIT project ID.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts object
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Name of the database.
    projectId String
    STACKIT project ID.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts GetSqlserverflexDatabaseTimeouts
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Name of the database.
    projectId string
    STACKIT project ID.
    region string
    The resource region. If not defined, the provider region is used.
    timeouts GetSqlserverflexDatabaseTimeouts
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Name of the database.
    project_id str
    STACKIT project ID.
    region str
    The resource region. If not defined, the provider region is used.
    timeouts GetSqlserverflexDatabaseTimeouts
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Name of the database.
    projectId String
    STACKIT project ID.
    region String
    The resource region. If not defined, the provider region is used.
    timeouts Property Map

    getSqlserverflexDatabase Result

    The following output properties are available:

    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    DatabaseId int
    The id of the database.
    Id string
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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 GetSqlserverflexDatabaseTimeouts
    Collation string
    The collation of the database.
    Compatibility int
    Compatibility level of the database.
    DatabaseId int
    The id of the database.
    Id string
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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 GetSqlserverflexDatabaseTimeouts
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    database_id number
    The id of the database.
    id string
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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.
    id String
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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 GetSqlserverflexDatabaseTimeouts
    collation string
    The collation of the database.
    compatibility number
    Compatibility level of the database.
    databaseId number
    The id of the database.
    id string
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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 GetSqlserverflexDatabaseTimeouts
    collation str
    The collation of the database.
    compatibility int
    Compatibility level of the database.
    database_id int
    The id of the database.
    id str
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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 GetSqlserverflexDatabaseTimeouts
    collation String
    The collation of the database.
    compatibility Number
    Compatibility level of the database.
    databaseId Number
    The id of the database.
    id String
    Terraform internal ID, structured as "projectId,region,instanceId,name"
    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

    GetSqlserverflexDatabaseTimeouts

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

    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