1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getSqlserverflexInstance
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 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?: InvokeOutputOptions): Output<GetSqlserverflexInstanceResult>
    def get_sqlserverflex_instance(instance_id: Optional[str] = None,
                                   network: Optional[GetSqlserverflexInstanceNetwork] = None,
                                   project_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetSqlserverflexInstanceResult
    def get_sqlserverflex_instance_output(instance_id: pulumi.Input[Optional[str]] = None,
                                   network: pulumi.Input[Optional[GetSqlserverflexInstanceNetworkArgs]] = None,
                                   project_id: pulumi.Input[Optional[str]] = None,
                                   region: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = 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 Output<GetSqlserverflexInstanceResult> Invoke(GetSqlserverflexInstanceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSqlserverflexInstanceResult> getSqlserverflexInstance(GetSqlserverflexInstanceArgs args, InvokeOptions options)
    public static Output<GetSqlserverflexInstanceResult> getSqlserverflexInstance(GetSqlserverflexInstanceArgs args, InvokeOptions options)
    public static Output<GetSqlserverflexInstanceResult> getSqlserverflexInstance(GetSqlserverflexInstanceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getSqlserverflexInstance:getSqlserverflexInstance
      arguments:
        # arguments dictionary
    data "stackit_get_sqlserverflex_instance" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    ID of the SQLServer Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.
    Network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    Region string
    The resource region. If not defined, the provider region is used.
    instance_id string
    ID of the SQLServer Flex instance.
    project_id string
    STACKIT project ID to which the instance is associated.
    network object
    The network configuration of the instance.
    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.
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.
    network Property Map
    The network configuration of the instance.
    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.

    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 * * *").
    Edition string
    Edition of the MSSQL server instance.
    Encryption GetSqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    Flavor GetSqlserverflexInstanceFlavor

    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.
    Id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.

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

    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int
    RetentionDays int
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    Storage GetSqlserverflexInstanceStorage
    Version string
    Network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.

    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 * * *").
    Edition string
    Edition of the MSSQL server instance.
    Encryption GetSqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    Flavor GetSqlserverflexInstanceFlavor

    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.
    Id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    InstanceId string
    ID of the SQLServer Flex instance.
    Name string
    Instance name.
    Options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.

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

    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int
    RetentionDays int
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    Storage GetSqlserverflexInstanceStorage
    Version string
    Network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.

    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 * * *").
    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.
    id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instance_id string
    ID of the SQLServer Flex instance.
    name string
    Instance name.
    options object
    Custom parameters for the SQLServer Flex instance.

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

    project_id string
    STACKIT project ID to which the instance is associated.
    replicas number
    retention_days number
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    storage object
    version string
    network object
    The network configuration of the instance.
    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.

    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 * * *").
    edition String
    Edition of the MSSQL server instance.
    encryption GetSqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor GetSqlserverflexInstanceFlavor

    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.
    id String
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.

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

    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Integer
    retentionDays Integer
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    storage GetSqlserverflexInstanceStorage
    version String
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.

    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 * * *").
    edition string
    Edition of the MSSQL server instance.
    encryption GetSqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor GetSqlserverflexInstanceFlavor

    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.
    id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId string
    ID of the SQLServer Flex instance.
    name string
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.

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

    projectId string
    STACKIT project ID to which the instance is associated.
    replicas number
    retentionDays number
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    storage GetSqlserverflexInstanceStorage
    version string
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.

    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 * * *").
    edition str
    Edition of the MSSQL server instance.
    encryption GetSqlserverflexInstanceEncryption
    Parameter to define which key to use for storage encryption.
    flavor GetSqlserverflexInstanceFlavor

    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.
    id str
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instance_id str
    ID of the SQLServer Flex instance.
    name str
    Instance name.
    options GetSqlserverflexInstanceOptions
    Custom parameters for the SQLServer Flex instance.

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

    project_id str
    STACKIT project ID to which the instance is associated.
    replicas int
    retention_days int
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    storage GetSqlserverflexInstanceStorage
    version str
    network GetSqlserverflexInstanceNetwork
    The network configuration of the instance.
    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.

    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 * * *").
    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.
    id String
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId String
    ID of the SQLServer Flex instance.
    name String
    Instance name.
    options Property Map
    Custom parameters for the SQLServer Flex instance.

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

    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Number
    retentionDays Number
    The days (30 to 90) for how long the backup files should be stored before cleaned up.
    storage Property Map
    version String
    network Property Map
    The network configuration of the instance.
    region String
    The resource region. If not defined, the provider region is used.

    Supporting Types

    GetSqlserverflexInstanceEncryption

    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.

    GetSqlserverflexInstanceFlavor

    Cpu int
    Description string
    Id string
    Ram int
    Cpu int
    Description string
    Id string
    Ram int
    cpu number
    description string
    id string
    ram number
    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

    GetSqlserverflexInstanceNetwork

    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.
    Acls []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.
    acls list(string)
    List of IPV4 cidr.
    instance_address string
    Address of this instance.
    router_address 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.
    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.
    acls 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.
    acls Sequence[str]
    List of IPV4 cidr.
    instance_address str
    Address of this instance.
    router_address str
    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.
    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.

    GetSqlserverflexInstanceOptions

    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.

    GetSqlserverflexInstanceStorage

    Class string
    Size int
    Class string
    Size int
    class string
    size number
    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.7
    published on Monday, Aug 17, 2026 by stackitcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial