Databricks v1.83.0 published on Friday, Jan 23, 2026 by Pulumi
Databricks v1.83.0 published on Friday, Jan 23, 2026 by Pulumi
This data source retrieves a single Postgres project.
Example Usage
Retrieve Project by Name
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getPostgresProject({
name: "projects/my-project",
});
export const projectPgVersion = _this.then(_this => _this.status?.pgVersion);
export const projectDisplayName = _this.then(_this => _this.status?.displayName);
export const projectHistoryRetention = _this.then(_this => _this.status?.historyRetentionDuration);
import pulumi
import pulumi_databricks as databricks
this = databricks.get_postgres_project(name="projects/my-project")
pulumi.export("projectPgVersion", this.status.pg_version)
pulumi.export("projectDisplayName", this.status.display_name)
pulumi.export("projectHistoryRetention", this.status.history_retention_duration)
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.LookupPostgresProject(ctx, &databricks.LookupPostgresProjectArgs{
Name: "projects/my-project",
}, nil)
if err != nil {
return err
}
ctx.Export("projectPgVersion", this.Status.PgVersion)
ctx.Export("projectDisplayName", this.Status.DisplayName)
ctx.Export("projectHistoryRetention", this.Status.HistoryRetentionDuration)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetPostgresProject.Invoke(new()
{
Name = "projects/my-project",
});
return new Dictionary<string, object?>
{
["projectPgVersion"] = @this.Apply(@this => @this.Apply(getPostgresProjectResult => getPostgresProjectResult.Status?.PgVersion)),
["projectDisplayName"] = @this.Apply(@this => @this.Apply(getPostgresProjectResult => getPostgresProjectResult.Status?.DisplayName)),
["projectHistoryRetention"] = @this.Apply(@this => @this.Apply(getPostgresProjectResult => getPostgresProjectResult.Status?.HistoryRetentionDuration)),
};
});
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.GetPostgresProjectArgs;
import java.util.List;
import java.util.ArrayList;
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.getPostgresProject(GetPostgresProjectArgs.builder()
.name("projects/my-project")
.build());
ctx.export("projectPgVersion", this_.status().pgVersion());
ctx.export("projectDisplayName", this_.status().displayName());
ctx.export("projectHistoryRetention", this_.status().historyRetentionDuration());
}
}
variables:
this:
fn::invoke:
function: databricks:getPostgresProject
arguments:
name: projects/my-project
outputs:
projectPgVersion: ${this.status.pgVersion}
projectDisplayName: ${this.status.displayName}
projectHistoryRetention: ${this.status.historyRetentionDuration}
Using getPostgresProject
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 getPostgresProject(args: GetPostgresProjectArgs, opts?: InvokeOptions): Promise<GetPostgresProjectResult>
function getPostgresProjectOutput(args: GetPostgresProjectOutputArgs, opts?: InvokeOptions): Output<GetPostgresProjectResult>def get_postgres_project(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresProjectResult
def get_postgres_project_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresProjectResult]func LookupPostgresProject(ctx *Context, args *LookupPostgresProjectArgs, opts ...InvokeOption) (*LookupPostgresProjectResult, error)
func LookupPostgresProjectOutput(ctx *Context, args *LookupPostgresProjectOutputArgs, opts ...InvokeOption) LookupPostgresProjectResultOutput> Note: This function is named LookupPostgresProject in the Go SDK.
public static class GetPostgresProject
{
public static Task<GetPostgresProjectResult> InvokeAsync(GetPostgresProjectArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresProjectResult> Invoke(GetPostgresProjectInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresProjectResult> getPostgresProject(GetPostgresProjectArgs args, InvokeOptions options)
public static Output<GetPostgresProjectResult> getPostgresProject(GetPostgresProjectArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getPostgresProject:getPostgresProject
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
- Name string
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
- name String
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
- name string
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
- name str
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
- name String
- The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id}
getPostgresProject Result
The following output properties are available:
- Create
Time string - (string) - A timestamp indicating when the project was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - Spec
Get
Postgres Project Spec - (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- Status
Get
Postgres Project Status - (ProjectStatus) - The current status of a Project
- Uid string
- (string) - System-generated unique ID for the project
- Update
Time string - (string) - A timestamp indicating when the project was last updated
- Create
Time string - (string) - A timestamp indicating when the project was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - Spec
Get
Postgres Project Spec - (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- Status
Get
Postgres Project Status - (ProjectStatus) - The current status of a Project
- Uid string
- (string) - System-generated unique ID for the project
- Update
Time string - (string) - A timestamp indicating when the project was last updated
- create
Time String - (string) - A timestamp indicating when the project was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - spec
Get
Postgres Project Spec - (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- status
Get
Postgres Project Status - (ProjectStatus) - The current status of a Project
- uid String
- (string) - System-generated unique ID for the project
- update
Time String - (string) - A timestamp indicating when the project was last updated
- create
Time string - (string) - A timestamp indicating when the project was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - spec
Get
Postgres Project Spec - (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- status
Get
Postgres Project Status - (ProjectStatus) - The current status of a Project
- uid string
- (string) - System-generated unique ID for the project
- update
Time string - (string) - A timestamp indicating when the project was last updated
- create_
time str - (string) - A timestamp indicating when the project was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - spec
Get
Postgres Project Spec - (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- status
Get
Postgres Project Status - (ProjectStatus) - The current status of a Project
- uid str
- (string) - System-generated unique ID for the project
- update_
time str - (string) - A timestamp indicating when the project was last updated
- create
Time String - (string) - A timestamp indicating when the project was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of the project. This field is output-only and constructed by the system.
Format:
projects/{project_id} - spec Property Map
- (ProjectSpec) - The spec contains the project configuration, including display_name, pg_version (Postgres version), history_retention_duration, and default_endpoint_settings
- status Property Map
- (ProjectStatus) - The current status of a Project
- uid String
- (string) - System-generated unique ID for the project
- update
Time String - (string) - A timestamp indicating when the project was last updated
Supporting Types
GetPostgresProjectSpec
- Default
Endpoint GetSettings Postgres Project Spec Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- Display
Name string - (string) - The effective human-readable project name
- History
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- Pg
Version int - (integer) - The effective major Postgres version number
- Default
Endpoint GetSettings Postgres Project Spec Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- Display
Name string - (string) - The effective human-readable project name
- History
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- Pg
Version int - (integer) - The effective major Postgres version number
- default
Endpoint GetSettings Postgres Project Spec Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name String - (string) - The effective human-readable project name
- history
Retention StringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- pg
Version Integer - (integer) - The effective major Postgres version number
- default
Endpoint GetSettings Postgres Project Spec Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name string - (string) - The effective human-readable project name
- history
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- pg
Version number - (integer) - The effective major Postgres version number
- default_
endpoint_ Getsettings Postgres Project Spec Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display_
name str - (string) - The effective human-readable project name
- history_
retention_ strduration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- pg_
version int - (integer) - The effective major Postgres version number
- default
Endpoint Property MapSettings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name String - (string) - The effective human-readable project name
- history
Retention StringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- pg
Version Number - (integer) - The effective major Postgres version number
GetPostgresProjectSpecDefaultEndpointSettings
- Autoscaling
Limit doubleMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- Autoscaling
Limit doubleMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- No
Suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- Pg
Settings Dictionary<string, string> - (object) - A raw representation of Postgres settings
- Suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- Autoscaling
Limit float64Max Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- Autoscaling
Limit float64Min Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- No
Suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- Pg
Settings map[string]string - (object) - A raw representation of Postgres settings
- Suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit DoubleMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit DoubleMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension Boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings Map<String,String> - (object) - A raw representation of Postgres settings
- suspend
Timeout StringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit numberMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit numberMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings {[key: string]: string} - (object) - A raw representation of Postgres settings
- suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling_
limit_ floatmax_ cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling_
limit_ floatmin_ cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no_
suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg_
settings Mapping[str, str] - (object) - A raw representation of Postgres settings
- suspend_
timeout_ strduration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit NumberMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit NumberMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension Boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings Map<String> - (object) - A raw representation of Postgres settings
- suspend
Timeout StringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
GetPostgresProjectStatus
- Branch
Logical intSize Limit Bytes - (integer) - The logical size limit for a branch
- Default
Endpoint GetSettings Postgres Project Status Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- Display
Name string - (string) - The effective human-readable project name
- History
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- Owner string
- (string) - The email of the project owner
- Pg
Version int - (integer) - The effective major Postgres version number
- Synthetic
Storage intSize Bytes - (integer) - The current space occupied by the project in storage
- Branch
Logical intSize Limit Bytes - (integer) - The logical size limit for a branch
- Default
Endpoint GetSettings Postgres Project Status Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- Display
Name string - (string) - The effective human-readable project name
- History
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- Owner string
- (string) - The email of the project owner
- Pg
Version int - (integer) - The effective major Postgres version number
- Synthetic
Storage intSize Bytes - (integer) - The current space occupied by the project in storage
- branch
Logical IntegerSize Limit Bytes - (integer) - The logical size limit for a branch
- default
Endpoint GetSettings Postgres Project Status Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name String - (string) - The effective human-readable project name
- history
Retention StringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- owner String
- (string) - The email of the project owner
- pg
Version Integer - (integer) - The effective major Postgres version number
- synthetic
Storage IntegerSize Bytes - (integer) - The current space occupied by the project in storage
- branch
Logical numberSize Limit Bytes - (integer) - The logical size limit for a branch
- default
Endpoint GetSettings Postgres Project Status Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name string - (string) - The effective human-readable project name
- history
Retention stringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- owner string
- (string) - The email of the project owner
- pg
Version number - (integer) - The effective major Postgres version number
- synthetic
Storage numberSize Bytes - (integer) - The current space occupied by the project in storage
- branch_
logical_ intsize_ limit_ bytes - (integer) - The logical size limit for a branch
- default_
endpoint_ Getsettings Postgres Project Status Default Endpoint Settings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display_
name str - (string) - The effective human-readable project name
- history_
retention_ strduration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- owner str
- (string) - The email of the project owner
- pg_
version int - (integer) - The effective major Postgres version number
- synthetic_
storage_ intsize_ bytes - (integer) - The current space occupied by the project in storage
- branch
Logical NumberSize Limit Bytes - (integer) - The logical size limit for a branch
- default
Endpoint Property MapSettings - (ProjectDefaultEndpointSettings) - The effective default endpoint settings
- display
Name String - (string) - The effective human-readable project name
- history
Retention StringDuration - (string) - The effective number of seconds to retain the shared history for point in time recovery
- owner String
- (string) - The email of the project owner
- pg
Version Number - (integer) - The effective major Postgres version number
- synthetic
Storage NumberSize Bytes - (integer) - The current space occupied by the project in storage
GetPostgresProjectStatusDefaultEndpointSettings
- Autoscaling
Limit doubleMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- Autoscaling
Limit doubleMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- No
Suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- Pg
Settings Dictionary<string, string> - (object) - A raw representation of Postgres settings
- Suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- Autoscaling
Limit float64Max Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- Autoscaling
Limit float64Min Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- No
Suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- Pg
Settings map[string]string - (object) - A raw representation of Postgres settings
- Suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit DoubleMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit DoubleMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension Boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings Map<String,String> - (object) - A raw representation of Postgres settings
- suspend
Timeout StringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit numberMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit numberMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings {[key: string]: string} - (object) - A raw representation of Postgres settings
- suspend
Timeout stringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling_
limit_ floatmax_ cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling_
limit_ floatmin_ cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no_
suspension bool - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg_
settings Mapping[str, str] - (object) - A raw representation of Postgres settings
- suspend_
timeout_ strduration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
- autoscaling
Limit NumberMax Cu - (number) - The maximum number of Compute Units. Minimum value is 0.5
- autoscaling
Limit NumberMin Cu - (number) - The minimum number of Compute Units. Minimum value is 0.5
- no
Suspension Boolean - (boolean) - When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided
- pg
Settings Map<String> - (object) - A raw representation of Postgres settings
- suspend
Timeout StringDuration - (string) - Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week)
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Databricks v1.83.0 published on Friday, Jan 23, 2026 by Pulumi
