Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source lists all Postgres branches in a project.
Example Usage
List All Branches in a Project
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getPostgresBranches({
parent: "projects/my-project",
});
export const branchNames = all.then(all => .map(branch => (branch.name)));
import pulumi
import pulumi_databricks as databricks
all = databricks.get_postgres_branches(parent="projects/my-project")
pulumi.export("branchNames", [branch.name for branch in all.branches])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetPostgresBranches.Invoke(new()
{
Parent = "projects/my-project",
});
return new Dictionary<string, object?>
{
["branchNames"] = .Select(branch =>
{
return branch.Name;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Using getPostgresBranches
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 getPostgresBranches(args: GetPostgresBranchesArgs, opts?: InvokeOptions): Promise<GetPostgresBranchesResult>
function getPostgresBranchesOutput(args: GetPostgresBranchesOutputArgs, opts?: InvokeOptions): Output<GetPostgresBranchesResult>def get_postgres_branches(page_size: Optional[int] = None,
parent: Optional[str] = None,
provider_config: Optional[GetPostgresBranchesProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresBranchesResult
def get_postgres_branches_output(page_size: Optional[pulumi.Input[int]] = None,
parent: Optional[pulumi.Input[str]] = None,
provider_config: Optional[pulumi.Input[GetPostgresBranchesProviderConfigArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresBranchesResult]func GetPostgresBranches(ctx *Context, args *GetPostgresBranchesArgs, opts ...InvokeOption) (*GetPostgresBranchesResult, error)
func GetPostgresBranchesOutput(ctx *Context, args *GetPostgresBranchesOutputArgs, opts ...InvokeOption) GetPostgresBranchesResultOutput> Note: This function is named GetPostgresBranches in the Go SDK.
public static class GetPostgresBranches
{
public static Task<GetPostgresBranchesResult> InvokeAsync(GetPostgresBranchesArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresBranchesResult> Invoke(GetPostgresBranchesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresBranchesResult> getPostgresBranches(GetPostgresBranchesArgs args, InvokeOptions options)
public static Output<GetPostgresBranchesResult> getPostgresBranches(GetPostgresBranchesArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getPostgresBranches:getPostgresBranches
arguments:
# arguments dictionaryThe following arguments are supported:
- Parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- Page
Size int - Upper bound for items returned. Cannot be negative
- Provider
Config GetPostgres Branches Provider Config - Configure the provider for management through account provider.
- Parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- Page
Size int - Upper bound for items returned. Cannot be negative
- Provider
Config GetPostgres Branches Provider Config - Configure the provider for management through account provider.
- parent String
- The Project that owns this collection of branches. Format: projects/{project_id}
- page
Size Integer - Upper bound for items returned. Cannot be negative
- provider
Config GetPostgres Branches Provider Config - Configure the provider for management through account provider.
- parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- page
Size number - Upper bound for items returned. Cannot be negative
- provider
Config GetPostgres Branches Provider Config - Configure the provider for management through account provider.
- parent str
- The Project that owns this collection of branches. Format: projects/{project_id}
- page_
size int - Upper bound for items returned. Cannot be negative
- provider_
config GetPostgres Branches Provider Config - Configure the provider for management through account provider.
- parent String
- The Project that owns this collection of branches. Format: projects/{project_id}
- page
Size Number - Upper bound for items returned. Cannot be negative
- provider
Config Property Map - Configure the provider for management through account provider.
getPostgresBranches Result
The following output properties are available:
- Branches
List<Get
Postgres Branches Branch> - Id string
- The provider-assigned unique ID for this managed resource.
- Parent string
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- Page
Size int - Provider
Config GetPostgres Branches Provider Config
- Branches
[]Get
Postgres Branches Branch - Id string
- The provider-assigned unique ID for this managed resource.
- Parent string
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- Page
Size int - Provider
Config GetPostgres Branches Provider Config
- branches
List<Get
Postgres Branches Branch> - id String
- The provider-assigned unique ID for this managed resource.
- parent String
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- page
Size Integer - provider
Config GetPostgres Branches Provider Config
- branches
Get
Postgres Branches Branch[] - id string
- The provider-assigned unique ID for this managed resource.
- parent string
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- page
Size number - provider
Config GetPostgres Branches Provider Config
- branches
Sequence[Get
Postgres Branches Branch] - id str
- The provider-assigned unique ID for this managed resource.
- parent str
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- page_
size int - provider_
config GetPostgres Branches Provider Config
- branches List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- parent String
- (string) - The project containing this branch (API resource hierarchy). Format: projects/{project_id}
- page
Size Number - provider
Config Property Map
Supporting Types
GetPostgresBranchesBranch
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- Parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- Spec
Get
Postgres Branches Branch Spec - (BranchSpec) - The spec contains the branch configuration
- Status
Get
Postgres Branches Branch Status - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- Provider
Config GetPostgres Branches Branch Provider Config - Configure the provider for management through account provider.
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- Parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- Spec
Get
Postgres Branches Branch Spec - (BranchSpec) - The spec contains the branch configuration
- Status
Get
Postgres Branches Branch Status - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- Provider
Config GetPostgres Branches Branch Provider Config - Configure the provider for management through account provider.
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent String
- The Project that owns this collection of branches. Format: projects/{project_id}
- spec
Get
Postgres Branches Branch Spec - (BranchSpec) - The spec contains the branch configuration
- status
Get
Postgres Branches Branch Status - (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
- provider
Config GetPostgres Branches Branch Provider Config - Configure the provider for management through account provider.
- create
Time string - (string) - A timestamp indicating when the branch was created
- name string
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent string
- The Project that owns this collection of branches. Format: projects/{project_id}
- spec
Get
Postgres Branches Branch Spec - (BranchSpec) - The spec contains the branch configuration
- status
Get
Postgres Branches Branch Status - (BranchStatus) - The current status of a Branch
- uid string
- (string) - System-generated unique ID for the branch
- update
Time string - (string) - A timestamp indicating when the branch was last updated
- provider
Config GetPostgres Branches Branch Provider Config - Configure the provider for management through account provider.
- create_
time str - (string) - A timestamp indicating when the branch was created
- name str
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent str
- The Project that owns this collection of branches. Format: projects/{project_id}
- spec
Get
Postgres Branches Branch Spec - (BranchSpec) - The spec contains the branch configuration
- status
Get
Postgres Branches Branch Status - (BranchStatus) - The current status of a Branch
- uid str
- (string) - System-generated unique ID for the branch
- update_
time str - (string) - A timestamp indicating when the branch was last updated
- provider_
config GetPostgres Branches Branch Provider Config - Configure the provider for management through account provider.
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - Output only. The full resource path of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent String
- The Project that owns this collection of branches. Format: projects/{project_id}
- spec Property Map
- (BranchSpec) - The spec contains the branch configuration
- status Property Map
- (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
- provider
Config Property Map - Configure the provider for management through account provider.
GetPostgresBranchesBranchProviderConfig
- 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.
GetPostgresBranchesBranchSpec
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- No
Expiry bool - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- Ttl string
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- No
Expiry bool - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- Ttl string
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- no
Expiry Boolean - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- ttl String
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected boolean - (boolean) - Whether the branch is protected
- no
Expiry boolean - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- ttl string
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire_
time str - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is_
protected bool - (boolean) - Whether the branch is protected
- no_
expiry bool - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source_
branch str - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source_
branch_ strlsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source_
branch_ strtime - (string) - The point in time on the source branch from which this branch was created
- ttl str
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- no
Expiry Boolean - (boolean) - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- ttl String
- (string) - Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
GetPostgresBranchesBranchStatus
- Current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Default bool
- (boolean) - Whether the branch is the project's default branch
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- Logical
Size intBytes - (integer) - The logical size of the branch
- Pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- State
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- Current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Default bool
- (boolean) - Whether the branch is the project's default branch
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- Logical
Size intBytes - (integer) - The logical size of the branch
- Pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- State
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- current
State String - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default_ Boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- logical
Size IntegerBytes - (integer) - The logical size of the branch
- pending
State String - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change StringTime - (string) - A timestamp indicating when the
current_statebegan
- current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected boolean - (boolean) - Whether the branch is protected
- logical
Size numberBytes - (integer) - The logical size of the branch
- pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- current_
state str - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default bool
- (boolean) - Whether the branch is the project's default branch
- expire_
time str - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is_
protected bool - (boolean) - Whether the branch is protected
- logical_
size_ intbytes - (integer) - The logical size of the branch
- pending_
state str - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source_
branch str - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source_
branch_ strlsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source_
branch_ strtime - (string) - The point in time on the source branch from which this branch was created
- state_
change_ strtime - (string) - A timestamp indicating when the
current_statebegan
- current
State String - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default Boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- logical
Size NumberBytes - (integer) - The logical size of the branch
- pending
State String - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change StringTime - (string) - A timestamp indicating when the
current_statebegan
GetPostgresBranchesProviderConfig
- 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.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
