1. Registry
  2. Packages
  3. stackit
  4. API Docs
  5. getPostgresflexInstance
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

    Postgres Flex instance data source schema. Must have a region specified in the provider configuration.

    Example Usage

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

    Using getPostgresflexInstance

    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 getPostgresflexInstance(args: GetPostgresflexInstanceArgs, opts?: InvokeOptions): Promise<GetPostgresflexInstanceResult>
    function getPostgresflexInstanceOutput(args: GetPostgresflexInstanceOutputArgs, opts?: InvokeOutputOptions): Output<GetPostgresflexInstanceResult>
    def get_postgresflex_instance(instance_id: Optional[str] = None,
                                  project_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPostgresflexInstanceResult
    def get_postgresflex_instance_output(instance_id: pulumi.Input[Optional[str]] = None,
                                  project_id: pulumi.Input[Optional[str]] = None,
                                  region: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetPostgresflexInstanceResult]
    func LookupPostgresflexInstance(ctx *Context, args *LookupPostgresflexInstanceArgs, opts ...InvokeOption) (*LookupPostgresflexInstanceResult, error)
    func LookupPostgresflexInstanceOutput(ctx *Context, args *LookupPostgresflexInstanceOutputArgs, opts ...InvokeOption) LookupPostgresflexInstanceResultOutput

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

    public static class GetPostgresflexInstance 
    {
        public static Task<GetPostgresflexInstanceResult> InvokeAsync(GetPostgresflexInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresflexInstanceResult> Invoke(GetPostgresflexInstanceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresflexInstanceResult> Invoke(GetPostgresflexInstanceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPostgresflexInstanceResult> getPostgresflexInstance(GetPostgresflexInstanceArgs args, InvokeOptions options)
    public static Output<GetPostgresflexInstanceResult> getPostgresflexInstance(GetPostgresflexInstanceArgs args, InvokeOptions options)
    public static Output<GetPostgresflexInstanceResult> getPostgresflexInstance(GetPostgresflexInstanceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: stackit:index/getPostgresflexInstance:getPostgresflexInstance
      arguments:
        # arguments dictionary
    data "stackit_get_postgresflex_instance" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    ID of the PostgresFlex 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 PostgresFlex 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 string
    ID of the PostgresFlex instance.
    project_id 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 PostgresFlex 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 PostgresFlex 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 PostgresFlex 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 PostgresFlex 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.

    getPostgresflexInstance Result

    The following output properties are available:

    Acls List<string>
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule string
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    ConnectionInfo GetPostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    Encryption GetPostgresflexInstanceEncryption
    Flavor GetPostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors..

    FlavorId string
    Id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    Network GetPostgresflexInstanceNetwork
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays int
    Storage GetPostgresflexInstanceStorage
    Version string
    Region string
    The resource region. If not defined, the provider region is used.
    Acls []string
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    BackupSchedule string
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    ConnectionInfo GetPostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    Encryption GetPostgresflexInstanceEncryption
    Flavor GetPostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors..

    FlavorId string
    Id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    Network GetPostgresflexInstanceNetwork
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas int

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    RetentionDays int
    Storage GetPostgresflexInstanceStorage
    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 PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backup_schedule string
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    connection_info object
    The connection info for the PostgresFlex instance.
    encryption object
    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.getPostgresflexFlavors..

    flavor_id string
    id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instance_id string
    ID of the PostgresFlex instance.
    name string
    Instance name.
    network object
    project_id string
    STACKIT project ID to which the instance is associated.
    replicas number

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retention_days number
    storage object
    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 PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule String
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    connectionInfo GetPostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    encryption GetPostgresflexInstanceEncryption
    flavor GetPostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors..

    flavorId String
    id String
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId String
    ID of the PostgresFlex instance.
    name String
    Instance name.
    network GetPostgresflexInstanceNetwork
    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Integer

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays Integer
    storage GetPostgresflexInstanceStorage
    version String
    region String
    The resource region. If not defined, the provider region is used.
    acls string[]
    The Access Control List (ACL) for the PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule string
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    connectionInfo GetPostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    encryption GetPostgresflexInstanceEncryption
    flavor GetPostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors..

    flavorId string
    id string
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId string
    ID of the PostgresFlex instance.
    name string
    Instance name.
    network GetPostgresflexInstanceNetwork
    projectId string
    STACKIT project ID to which the instance is associated.
    replicas number

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays number
    storage GetPostgresflexInstanceStorage
    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 PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backup_schedule str
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    connection_info GetPostgresflexInstanceConnectionInfo
    The connection info for the PostgresFlex instance.
    encryption GetPostgresflexInstanceEncryption
    flavor GetPostgresflexInstanceFlavor

    Deprecated: flavor is deprecated and will be removed after February 2027. Use instead flavorId. You can list available flavors using the datasource stackit.getPostgresflexFlavors..

    flavor_id str
    id str
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instance_id str
    ID of the PostgresFlex instance.
    name str
    Instance name.
    network GetPostgresflexInstanceNetwork
    project_id str
    STACKIT project ID to which the instance is associated.
    replicas int

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retention_days int
    storage GetPostgresflexInstanceStorage
    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 PostgresFlex instance.

    Deprecated: acl is deprecated and will be removed after February 2027. Use instead network.acl.

    backupSchedule String
    The schedule for on what time and how often the database backup will be created. Must be a valid cron expression using numeric minute and hour values, e.g: '0 2 * * *'.
    connectionInfo Property Map
    The connection info for the PostgresFlex instance.
    encryption Property Map
    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.getPostgresflexFlavors..

    flavorId String
    id String
    Terraform's internal data source. ID. It is structured as "projectId,region,instanceId".
    instanceId String
    ID of the PostgresFlex instance.
    name String
    Instance name.
    network Property Map
    projectId String
    STACKIT project ID to which the instance is associated.
    replicas Number

    Deprecated: replicas is deprecated and will be removed after February 2027. Use instead flavorId and choose a flavor with your wanted replica configuration. You can list available flavors using the datasource stackit.getPostgresflexFlavors.

    retentionDays Number
    storage Property Map
    version String
    region String
    The resource region. If not defined, the provider region is used.

    Supporting Types

    GetPostgresflexInstanceConnectionInfo

    Write GetPostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    Write GetPostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write object
    The DNS name and port in the instance overview.
    write GetPostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write GetPostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write GetPostgresflexInstanceConnectionInfoWrite
    The DNS name and port in the instance overview.
    write Property Map
    The DNS name and port in the instance overview.

    GetPostgresflexInstanceConnectionInfoWrite

    Host string
    The host of the instance.
    Port int
    The port of the instance.
    Host string
    The host of the instance.
    Port int
    The port of the instance.
    host string
    The host of the instance.
    port number
    The port of the instance.
    host String
    The host of the instance.
    port Integer
    The port of the instance.
    host string
    The host of the instance.
    port number
    The port of the instance.
    host str
    The host of the instance.
    port int
    The port of the instance.
    host String
    The host of the instance.
    port Number
    The port of the instance.

    GetPostgresflexInstanceEncryption

    GetPostgresflexInstanceFlavor

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

    GetPostgresflexInstanceNetwork

    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. Possible values are: PUBLIC, SNA.
    Acls List<string>
    List of IPV4 cidr.
    InstanceAddress string
    RouterAddress string
    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. Possible values are: PUBLIC, SNA.
    Acls []string
    List of IPV4 cidr.
    InstanceAddress string
    RouterAddress string
    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. Possible values are: PUBLIC, SNA.
    acls list(string)
    List of IPV4 cidr.
    instance_address string
    router_address string
    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. Possible values are: PUBLIC, SNA.
    acls List<String>
    List of IPV4 cidr.
    instanceAddress String
    routerAddress String
    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. Possible values are: PUBLIC, SNA.
    acls string[]
    List of IPV4 cidr.
    instanceAddress string
    routerAddress string
    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. Possible values are: PUBLIC, SNA.
    acls Sequence[str]
    List of IPV4 cidr.
    instance_address str
    router_address str
    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. Possible values are: PUBLIC, SNA.
    acls List<String>
    List of IPV4 cidr.
    instanceAddress String
    routerAddress String

    GetPostgresflexInstanceStorage

    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