1. Packages
  2. Databricks Provider
  3. API Docs
  4. getPostgresDatabase
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi

    Private Preview

    Using getPostgresDatabase

    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 getPostgresDatabase(args: GetPostgresDatabaseArgs, opts?: InvokeOptions): Promise<GetPostgresDatabaseResult>
    function getPostgresDatabaseOutput(args: GetPostgresDatabaseOutputArgs, opts?: InvokeOptions): Output<GetPostgresDatabaseResult>
    def get_postgres_database(name: Optional[str] = None,
                              provider_config: Optional[GetPostgresDatabaseProviderConfig] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPostgresDatabaseResult
    def get_postgres_database_output(name: Optional[pulumi.Input[str]] = None,
                              provider_config: Optional[pulumi.Input[GetPostgresDatabaseProviderConfigArgs]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPostgresDatabaseResult]
    func LookupPostgresDatabase(ctx *Context, args *LookupPostgresDatabaseArgs, opts ...InvokeOption) (*LookupPostgresDatabaseResult, error)
    func LookupPostgresDatabaseOutput(ctx *Context, args *LookupPostgresDatabaseOutputArgs, opts ...InvokeOption) LookupPostgresDatabaseResultOutput

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

    public static class GetPostgresDatabase 
    {
        public static Task<GetPostgresDatabaseResult> InvokeAsync(GetPostgresDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetPostgresDatabaseResult> Invoke(GetPostgresDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPostgresDatabaseResult> getPostgresDatabase(GetPostgresDatabaseArgs args, InvokeOptions options)
    public static Output<GetPostgresDatabaseResult> getPostgresDatabase(GetPostgresDatabaseArgs args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getPostgresDatabase:getPostgresDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    ProviderConfig GetPostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    Name string
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    ProviderConfig GetPostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    name String
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    providerConfig GetPostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    name string
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    providerConfig GetPostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    name str
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    provider_config GetPostgresDatabaseProviderConfig
    Configure the provider for management through account provider.
    name String
    The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    providerConfig Property Map
    Configure the provider for management through account provider.

    getPostgresDatabase Result

    The following output properties are available:

    CreateTime string
    (string) - A timestamp indicating when the database was created
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Parent string
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    Spec GetPostgresDatabaseSpec
    (DatabaseDatabaseSpec) - The desired state of the Database
    Status GetPostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    ProviderConfig GetPostgresDatabaseProviderConfig
    CreateTime string
    (string) - A timestamp indicating when the database was created
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    Parent string
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    Spec GetPostgresDatabaseSpec
    (DatabaseDatabaseSpec) - The desired state of the Database
    Status GetPostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    UpdateTime string
    (string) - A timestamp indicating when the database was last updated
    ProviderConfig GetPostgresDatabaseProviderConfig
    createTime String
    (string) - A timestamp indicating when the database was created
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent String
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    spec GetPostgresDatabaseSpec
    (DatabaseDatabaseSpec) - The desired state of the Database
    status GetPostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated
    providerConfig GetPostgresDatabaseProviderConfig
    createTime string
    (string) - A timestamp indicating when the database was created
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent string
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    spec GetPostgresDatabaseSpec
    (DatabaseDatabaseSpec) - The desired state of the Database
    status GetPostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime string
    (string) - A timestamp indicating when the database was last updated
    providerConfig GetPostgresDatabaseProviderConfig
    create_time str
    (string) - A timestamp indicating when the database was created
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent str
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    spec GetPostgresDatabaseSpec
    (DatabaseDatabaseSpec) - The desired state of the Database
    status GetPostgresDatabaseStatus
    (DatabaseDatabaseStatus) - The observed state of the Database
    update_time str
    (string) - A timestamp indicating when the database was last updated
    provider_config GetPostgresDatabaseProviderConfig
    createTime String
    (string) - A timestamp indicating when the database was created
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
    parent String
    (string) - The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
    spec Property Map
    (DatabaseDatabaseSpec) - The desired state of the Database
    status Property Map
    (DatabaseDatabaseStatus) - The observed state of the Database
    updateTime String
    (string) - A timestamp indicating when the database was last updated
    providerConfig Property Map

    Supporting Types

    GetPostgresDatabaseProviderConfig

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id str
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    GetPostgresDatabaseSpec

    PostgresDatabase string
    (string) - The name of the Postgres database
    Role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    PostgresDatabase string
    (string) - The name of the Postgres database
    Role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase String
    (string) - The name of the Postgres database
    role String
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase string
    (string) - The name of the Postgres database
    role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgres_database str
    (string) - The name of the Postgres database
    role str
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase String
    (string) - The name of the Postgres database
    role String
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}

    GetPostgresDatabaseStatus

    PostgresDatabase string
    (string) - The name of the Postgres database
    Role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    PostgresDatabase string
    (string) - The name of the Postgres database
    Role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase String
    (string) - The name of the Postgres database
    role String
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase string
    (string) - The name of the Postgres database
    role string
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgres_database str
    (string) - The name of the Postgres database
    role str
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
    postgresDatabase String
    (string) - The name of the Postgres database
    role String
    (string) - The name of the role that owns the database. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v1.90.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.