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

    Example Usage

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

    Using getPostgresflexDatabase

    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 getPostgresflexDatabase(args: GetPostgresflexDatabaseArgs, opts?: InvokeOptions): Promise<GetPostgresflexDatabaseResult>
    function getPostgresflexDatabaseOutput(args: GetPostgresflexDatabaseOutputArgs, opts?: InvokeOptions): Output<GetPostgresflexDatabaseResult>
    def get_postgresflex_database(database_id: Optional[str] = None,
                                  instance_id: Optional[str] = None,
                                  project_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPostgresflexDatabaseResult
    def get_postgresflex_database_output(database_id: Optional[pulumi.Input[str]] = None,
                                  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[GetPostgresflexDatabaseResult]
    func LookupPostgresflexDatabase(ctx *Context, args *LookupPostgresflexDatabaseArgs, opts ...InvokeOption) (*LookupPostgresflexDatabaseResult, error)
    func LookupPostgresflexDatabaseOutput(ctx *Context, args *LookupPostgresflexDatabaseOutputArgs, opts ...InvokeOption) LookupPostgresflexDatabaseResultOutput

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

    public static class GetPostgresflexDatabase 
    {
        public static Task<GetPostgresflexDatabaseResult> InvokeAsync(GetPostgresflexDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresflexDatabaseResult> Invoke(GetPostgresflexDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPostgresflexDatabaseResult> getPostgresflexDatabase(GetPostgresflexDatabaseArgs args, InvokeOptions options)
    public static Output<GetPostgresflexDatabaseResult> getPostgresflexDatabase(GetPostgresflexDatabaseArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getPostgresflexDatabase:getPostgresflexDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatabaseId string
    Database ID.
    InstanceId string
    ID of the Postgres 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.
    DatabaseId string
    Database ID.
    InstanceId string
    ID of the Postgres 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.
    databaseId String
    Database ID.
    instanceId String
    ID of the Postgres 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.
    databaseId string
    Database ID.
    instanceId string
    ID of the Postgres 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.
    database_id str
    Database ID.
    instance_id str
    ID of the Postgres 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.
    databaseId String
    Database ID.
    instanceId String
    ID of the Postgres 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.

    getPostgresflexDatabase Result

    The following output properties are available:

    DatabaseId string
    Database ID.
    Id string
    InstanceId string
    ID of the Postgres Flex instance.
    Name string
    Database name.
    Owner string
    Username of the database owner.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    DatabaseId string
    Database ID.
    Id string
    InstanceId string
    ID of the Postgres Flex instance.
    Name string
    Database name.
    Owner string
    Username of the database owner.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    databaseId String
    Database ID.
    id String
    instanceId String
    ID of the Postgres Flex instance.
    name String
    Database name.
    owner String
    Username of the database owner.
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    databaseId string
    Database ID.
    id string
    instanceId string
    ID of the Postgres Flex instance.
    name string
    Database name.
    owner string
    Username of the database owner.
    projectId string
    STACKIT project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    database_id str
    Database ID.
    id str
    instance_id str
    ID of the Postgres Flex instance.
    name str
    Database name.
    owner str
    Username of the database owner.
    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.
    databaseId String
    Database ID.
    id String
    instanceId String
    ID of the Postgres Flex instance.
    name String
    Database name.
    owner String
    Username of the database owner.
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.

    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.