1. Packages
  2. stackit
  3. API Docs
  4. getSqlserverflexInstance
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 data source schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_sqlserverflex_instance" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getSqlserverflexInstance

    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 getSqlserverflexInstance(args: GetSqlserverflexInstanceArgs, opts?: InvokeOptions): Promise<GetSqlserverflexInstanceResult>
    function getSqlserverflexInstanceOutput(args: GetSqlserverflexInstanceOutputArgs, opts?: InvokeOptions): Output<GetSqlserverflexInstanceResult>
    def get_sqlserverflex_instance(instance_id: Optional[str] = None,
                                   project_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSqlserverflexInstanceResult
    def get_sqlserverflex_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
                                   project_id: Optional[pulumi.Input[str]] = None,
                                   region: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetSqlserverflexInstanceResult]
    func LookupSqlserverflexInstance(ctx *Context, args *LookupSqlserverflexInstanceArgs, opts ...InvokeOption) (*LookupSqlserverflexInstanceResult, error)
    func LookupSqlserverflexInstanceOutput(ctx *Context, args *LookupSqlserverflexInstanceOutputArgs, opts ...InvokeOption) LookupSqlserverflexInstanceResultOutput

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

    public static class GetSqlserverflexInstance 
    {
        public static Task<GetSqlserverflexInstanceResult> InvokeAsync(GetSqlserverflexInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlserverflexInstanceResult> Invoke(GetSqlserverflexInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSqlserverflexInstanceResult> getSqlserverflexInstance(GetSqlserverflexInstanceArgs args, InvokeOptions options)
    public static Output<GetSqlserverflexInstanceResult> getSqlserverflexInstance(GetSqlserverflexInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getSqlserverflexInstance:getSqlserverflexInstance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    ID of the SQLServer Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    InstanceId string
    ID of the SQLServer Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    instanceId String
    ID of the SQLServer Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    instanceId string
    ID of the SQLServer Flex instance.
    projectId string
    STACKIT project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    instance_id str
    ID of the SQLServer Flex instance.
    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.
    instanceId String
    ID of the SQLServer Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.

    getSqlserverflexInstance Result

    The following output properties are available:

    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 GetSqlserverflexInstanceFlavor
    Id string
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int
    Storage GetSqlserverflexInstanceStorage
    Version string
    Region string
    The resource region. If not defined, the provider region is used.
    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 GetSqlserverflexInstanceFlavor
    Id string
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int
    Storage GetSqlserverflexInstanceStorage
    Version string
    Region string
    The resource region. If not defined, the provider region is used.
    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 GetSqlserverflexInstanceFlavor
    id String
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Integer
    storage GetSqlserverflexInstanceStorage
    version String
    region String
    The resource region. If not defined, the provider region is used.
    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 GetSqlserverflexInstanceFlavor
    id string
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.
    projectId string
    STACKIT project ID to which the instance is associated.
    replicas number
    storage GetSqlserverflexInstanceStorage
    version string
    region string
    The resource region. If not defined, the provider region is used.
    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 GetSqlserverflexInstanceFlavor
    id str
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.
    project_id str
    STACKIT project ID to which the instance is associated.
    replicas int
    storage GetSqlserverflexInstanceStorage
    version str
    region str
    The resource region. If not defined, the provider region is used.
    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
    id String
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options Property Map
    Custom parameters for the SQLServer Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Number
    storage Property Map
    version String
    region String
    The resource region. If not defined, the provider region is used.

    Supporting Types

    GetSqlserverflexInstanceFlavor

    Cpu int
    Description string
    Id string
    Ram int
    Cpu int
    Description string
    Id string
    Ram int
    cpu Integer
    description String
    id String
    ram Integer
    cpu number
    description string
    id string
    ram number
    cpu int
    description str
    id str
    ram int
    cpu Number
    description String
    id String
    ram Number

    GetSqlserverflexInstanceOptions

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

    GetSqlserverflexInstanceStorage

    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.