published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
This data source retrieves a single Postgres catalog.
Example Usage
Retrieve Catalog by Name
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getPostgresCatalog({
name: "catalogs/my_catalog",
});
export const catalogPostgresDatabase = _this.then(_this => _this.status?.postgresDatabase);
import pulumi
import pulumi_databricks as databricks
this = databricks.get_postgres_catalog(name="catalogs/my_catalog")
pulumi.export("catalogPostgresDatabase", this.status.postgres_database)
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := databricks.GetPostgresCatalog(ctx, &databricks.LookupPostgresCatalogArgs{
Name: "catalogs/my_catalog",
}, nil)
if err != nil {
return err
}
ctx.Export("catalogPostgresDatabase", this.Status.PostgresDatabase)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetPostgresCatalog.Invoke(new()
{
Name = "catalogs/my_catalog",
});
return new Dictionary<string, object?>
{
["catalogPostgresDatabase"] = @this.Apply(@this => @this.Apply(getPostgresCatalogResult => getPostgresCatalogResult.Status?.PostgresDatabase)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetPostgresCatalogArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = DatabricksFunctions.getPostgresCatalog(GetPostgresCatalogArgs.builder()
.name("catalogs/my_catalog")
.build());
ctx.export("catalogPostgresDatabase", this_.status().postgresDatabase());
}
}
variables:
this:
fn::invoke:
function: databricks:getPostgresCatalog
arguments:
name: catalogs/my_catalog
outputs:
catalogPostgresDatabase: ${this.status.postgresDatabase}
Example coming soon!
Using getPostgresCatalog
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 getPostgresCatalog(args: GetPostgresCatalogArgs, opts?: InvokeOptions): Promise<GetPostgresCatalogResult>
function getPostgresCatalogOutput(args: GetPostgresCatalogOutputArgs, opts?: InvokeOptions): Output<GetPostgresCatalogResult>def get_postgres_catalog(name: Optional[str] = None,
provider_config: Optional[GetPostgresCatalogProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresCatalogResult
def get_postgres_catalog_output(name: pulumi.Input[Optional[str]] = None,
provider_config: pulumi.Input[Optional[GetPostgresCatalogProviderConfigArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresCatalogResult]func LookupPostgresCatalog(ctx *Context, args *LookupPostgresCatalogArgs, opts ...InvokeOption) (*LookupPostgresCatalogResult, error)
func LookupPostgresCatalogOutput(ctx *Context, args *LookupPostgresCatalogOutputArgs, opts ...InvokeOption) LookupPostgresCatalogResultOutput> Note: This function is named LookupPostgresCatalog in the Go SDK.
public static class GetPostgresCatalog
{
public static Task<GetPostgresCatalogResult> InvokeAsync(GetPostgresCatalogArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresCatalogResult> Invoke(GetPostgresCatalogInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresCatalogResult> getPostgresCatalog(GetPostgresCatalogArgs args, InvokeOptions options)
public static Output<GetPostgresCatalogResult> getPostgresCatalog(GetPostgresCatalogArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getPostgresCatalog:getPostgresCatalog
arguments:
# arguments dictionarydata "databricks_getpostgrescatalog" "name" {
# arguments
}The following arguments are supported:
- Name string
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- Provider
Config GetPostgres Catalog Provider Config - Configure the provider for management through account provider.
- Name string
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- Provider
Config GetPostgres Catalog Provider Config - Configure the provider for management through account provider.
- name string
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- provider_
config object - Configure the provider for management through account provider.
- name String
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- provider
Config GetPostgres Catalog Provider Config - Configure the provider for management through account provider.
- name string
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- provider
Config GetPostgres Catalog Provider Config - Configure the provider for management through account provider.
- name str
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- provider_
config GetPostgres Catalog Provider Config - Configure the provider for management through account provider.
- name String
Output only. The full resource path of the catalog.
Format: "catalogs/{catalog_id}"
- provider
Config Property Map - Configure the provider for management through account provider.
getPostgresCatalog Result
The following output properties are available:
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the catalog.
- Spec
Get
Postgres Catalog Spec - (CatalogCatalogSpec) - The desired state of the Catalog
- Status
Get
Postgres Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- Provider
Config GetPostgres Catalog Provider Config
- Create
Time string - (string) - A timestamp indicating when the catalog was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the catalog.
- Spec
Get
Postgres Catalog Spec - (CatalogCatalogSpec) - The desired state of the Catalog
- Status
Get
Postgres Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- Uid string
- (string) - System-generated unique identifier for the catalog
- Update
Time string - (string) - A timestamp indicating when the catalog was last updated
- Provider
Config GetPostgres Catalog Provider Config
- create_
time string - (string) - A timestamp indicating when the catalog was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - Output only. The full resource path of the catalog.
- spec object
- (CatalogCatalogSpec) - The desired state of the Catalog
- status object
- (CatalogCatalogStatus) - The observed state of the Catalog
- uid string
- (string) - System-generated unique identifier for the catalog
- update_
time string - (string) - A timestamp indicating when the catalog was last updated
- provider_
config object
- create
Time String - (string) - A timestamp indicating when the catalog was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the catalog.
- spec
Get
Postgres Catalog Spec - (CatalogCatalogSpec) - The desired state of the Catalog
- status
Get
Postgres Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
- provider
Config GetPostgres Catalog Provider Config
- create
Time string - (string) - A timestamp indicating when the catalog was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - Output only. The full resource path of the catalog.
- spec
Get
Postgres Catalog Spec - (CatalogCatalogSpec) - The desired state of the Catalog
- status
Get
Postgres Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid string
- (string) - System-generated unique identifier for the catalog
- update
Time string - (string) - A timestamp indicating when the catalog was last updated
- provider
Config GetPostgres Catalog Provider Config
- create_
time str - (string) - A timestamp indicating when the catalog was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - Output only. The full resource path of the catalog.
- spec
Get
Postgres Catalog Spec - (CatalogCatalogSpec) - The desired state of the Catalog
- status
Get
Postgres Catalog Status - (CatalogCatalogStatus) - The observed state of the Catalog
- uid str
- (string) - System-generated unique identifier for the catalog
- update_
time str - (string) - A timestamp indicating when the catalog was last updated
- provider_
config GetPostgres Catalog Provider Config
- create
Time String - (string) - A timestamp indicating when the catalog was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the catalog.
- spec Property Map
- (CatalogCatalogSpec) - The desired state of the Catalog
- status Property Map
- (CatalogCatalogStatus) - The observed state of the Catalog
- uid String
- (string) - System-generated unique identifier for the catalog
- update
Time String - (string) - A timestamp indicating when the catalog was last updated
- provider
Config Property Map
Supporting Types
GetPostgresCatalogProviderConfig
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace_
id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id 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.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
GetPostgresCatalogSpec
- Create
Database boolIf Missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Create
Database boolIf Missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- create_
database_ boolif_ missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- postgres_
database string - (string) - The name of the Postgres database associated with the catalog
- branch string
- (string) - The resource path of the branch associated with the catalog.
- create
Database BooleanIf Missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- branch String
- (string) - The resource path of the branch associated with the catalog.
- create
Database booleanIf Missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- branch string
- (string) - The resource path of the branch associated with the catalog.
- create_
database_ boolif_ missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- postgres_
database str - (string) - The name of the Postgres database associated with the catalog
- branch str
- (string) - The resource path of the branch associated with the catalog.
- create
Database BooleanIf Missing - (boolean) - If set to true, the specified postgresDatabase is created on behalf of the calling user if it does not already exist. In this case, the calling user has a role created for them in Postgres if they do not already have one.
- postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- branch String
- (string) - The resource path of the branch associated with the catalog.
GetPostgresCatalogStatus
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Catalog
Id string - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Project string
- (string) - The resource path of the project associated with the catalog.
- Branch string
- (string) - The resource path of the branch associated with the catalog.
- Catalog
Id string - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - Postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- Project string
- (string) - The resource path of the project associated with the catalog.
- branch string
- (string) - The resource path of the branch associated with the catalog.
- catalog_
id string - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - postgres_
database string - (string) - The name of the Postgres database associated with the catalog
- project string
- (string) - The resource path of the project associated with the catalog.
- branch String
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id String - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- project String
- (string) - The resource path of the project associated with the catalog.
- branch string
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id string - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - postgres
Database string - (string) - The name of the Postgres database associated with the catalog
- project string
- (string) - The resource path of the project associated with the catalog.
- branch str
- (string) - The resource path of the branch associated with the catalog.
- catalog_
id str - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - postgres_
database str - (string) - The name of the Postgres database associated with the catalog
- project str
- (string) - The resource path of the project associated with the catalog.
- branch String
- (string) - The resource path of the branch associated with the catalog.
- catalog
Id String - (string) - The short identifier of the catalog, suitable for showing to the users.
For a catalog with name
catalogs/my-catalog, the catalogId ismy-catalog. - postgres
Database String - (string) - The name of the Postgres database associated with the catalog
- project String
- (string) - The resource path of the project associated with the catalog.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
published on Tuesday, May 12, 2026 by Pulumi
