stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
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 dictionaryThe following arguments are supported:
- Database
Id string - Database ID.
- Instance
Id string - ID of the Postgres Flex 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.
- Database
Id string - Database ID.
- Instance
Id string - ID of the Postgres Flex 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.
- database
Id String - Database ID.
- instance
Id String - ID of the Postgres Flex 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.
- database
Id string - Database ID.
- instance
Id string - ID of the Postgres Flex 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.
- 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.
- database
Id String - Database ID.
- instance
Id String - ID of the Postgres Flex 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.
getPostgresflexDatabase Result
The following output properties are available:
- Database
Id string - Database ID.
- Id string
- Instance
Id string - ID of the Postgres Flex instance.
- Name string
- Database name.
- Owner string
- Username of the database owner.
- 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.
- Database
Id string - Database ID.
- Id string
- Instance
Id string - ID of the Postgres Flex instance.
- Name string
- Database name.
- Owner string
- Username of the database owner.
- 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.
- database
Id String - Database ID.
- id String
- instance
Id String - ID of the Postgres Flex instance.
- name String
- Database name.
- owner String
- Username of the database owner.
- 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.
- database
Id string - Database ID.
- id string
- instance
Id string - ID of the Postgres Flex instance.
- name string
- Database name.
- owner string
- Username of the database owner.
- 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.
- 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.
- database
Id String - Database ID.
- id String
- instance
Id String - ID of the Postgres Flex instance.
- name String
- Database name.
- owner String
- Username of the database owner.
- 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.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
stackit v0.0.4 published on Friday, Feb 20, 2026 by stackitcloud
