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

    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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
                                  project_id: Optional[pulumi.Input[str]] = None,
                                  region: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = 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 CompletableFuture<GetPostgresflexInstanceResult> getPostgresflexInstance(GetPostgresflexInstanceArgs args, InvokeOptions options)
    public static Output<GetPostgresflexInstanceResult> getPostgresflexInstance(GetPostgresflexInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getPostgresflexInstance:getPostgresflexInstance
      arguments:
        # arguments dictionary

    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.
    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.
    BackupSchedule string
    Flavor GetPostgresflexInstanceFlavor
    Id string
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas 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.
    BackupSchedule string
    Flavor GetPostgresflexInstanceFlavor
    Id string
    InstanceId string
    ID of the PostgresFlex instance.
    Name string
    Instance name.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Replicas 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.
    backupSchedule String
    flavor GetPostgresflexInstanceFlavor
    id String
    instanceId String
    ID of the PostgresFlex instance.
    name String
    Instance name.
    projectId String
    STACKIT project ID to which the instance is associated.
    replicas 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.
    backupSchedule string
    flavor GetPostgresflexInstanceFlavor
    id string
    instanceId string
    ID of the PostgresFlex instance.
    name string
    Instance name.
    projectId string
    STACKIT project ID to which the instance is associated.
    replicas 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.
    backup_schedule str
    flavor GetPostgresflexInstanceFlavor
    id str
    instance_id str
    ID of the PostgresFlex instance.
    name str
    Instance name.
    project_id str
    STACKIT project ID to which the instance is associated.
    replicas 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.
    backupSchedule String
    flavor Property Map
    id String
    instanceId String
    ID of the PostgresFlex instance.
    name String
    Instance name.
    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

    GetPostgresflexInstanceFlavor

    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

    GetPostgresflexInstanceStorage

    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.