published on Friday, May 1, 2026 by Pulumi
published on Friday, May 1, 2026 by Pulumi
Example Usage
Database Owned by a Specific Role
Assign ownership to a role you manage alongside the database. The Postgres database will be created with the specified role as its owner.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const appOwner = new databricks.PostgresRole("app_owner", {
roleId: "app-owner",
parent: main.name,
spec: {
postgresRole: "app_owner",
},
});
const app = new databricks.PostgresDatabase("app", {
databaseId: "app",
parent: main.name,
spec: {
postgresDatabase: "app",
role: appOwner.name,
},
});
import pulumi
import pulumi_databricks as databricks
app_owner = databricks.PostgresRole("app_owner",
role_id="app-owner",
parent=main["name"],
spec={
"postgres_role": "app_owner",
})
app = databricks.PostgresDatabase("app",
database_id="app",
parent=main["name"],
spec={
"postgres_database": "app",
"role": app_owner.name,
})
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 {
appOwner, err := databricks.NewPostgresRole(ctx, "app_owner", &databricks.PostgresRoleArgs{
RoleId: pulumi.String("app-owner"),
Parent: pulumi.Any(main.Name),
Spec: &databricks.PostgresRoleSpecArgs{
PostgresRole: pulumi.String("app_owner"),
},
})
if err != nil {
return err
}
_, err = databricks.NewPostgresDatabase(ctx, "app", &databricks.PostgresDatabaseArgs{
DatabaseId: pulumi.String("app"),
Parent: pulumi.Any(main.Name),
Spec: &databricks.PostgresDatabaseSpecArgs{
PostgresDatabase: pulumi.String("app"),
Role: appOwner.Name,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var appOwner = new Databricks.Index.PostgresRole("app_owner", new()
{
RoleId = "app-owner",
Parent = main.Name,
Spec = new Databricks.Inputs.PostgresRoleSpecArgs
{
PostgresRole = "app_owner",
},
});
var app = new Databricks.Index.PostgresDatabase("app", new()
{
DatabaseId = "app",
Parent = main.Name,
Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
{
PostgresDatabase = "app",
Role = appOwner.Name,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresRole;
import com.pulumi.databricks.PostgresRoleArgs;
import com.pulumi.databricks.inputs.PostgresRoleSpecArgs;
import com.pulumi.databricks.PostgresDatabase;
import com.pulumi.databricks.PostgresDatabaseArgs;
import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
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) {
var appOwner = new PostgresRole("appOwner", PostgresRoleArgs.builder()
.roleId("app-owner")
.parent(main.name())
.spec(PostgresRoleSpecArgs.builder()
.postgresRole("app_owner")
.build())
.build());
var app = new PostgresDatabase("app", PostgresDatabaseArgs.builder()
.databaseId("app")
.parent(main.name())
.spec(PostgresDatabaseSpecArgs.builder()
.postgresDatabase("app")
.role(appOwner.name())
.build())
.build());
}
}
resources:
appOwner:
type: databricks:PostgresRole
name: app_owner
properties:
roleId: app-owner
parent: ${main.name}
spec:
postgresRole: app_owner
app:
type: databricks:PostgresDatabase
properties:
databaseId: app
parent: ${main.name}
spec:
postgresDatabase: app
role: ${appOwner.name}
Renaming a Database
Changing spec.postgres_database renames the underlying Postgres database without replacing the resource. The resource identifier (databaseId) is separate from the Postgres database name, and stays intact in the example below.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const analytics = new databricks.PostgresDatabase("analytics", {
databaseId: "analytics",
parent: main.name,
spec: {
postgresDatabase: "analytics_v2",
},
});
import pulumi
import pulumi_databricks as databricks
analytics = databricks.PostgresDatabase("analytics",
database_id="analytics",
parent=main["name"],
spec={
"postgres_database": "analytics_v2",
})
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 {
_, err := databricks.NewPostgresDatabase(ctx, "analytics", &databricks.PostgresDatabaseArgs{
DatabaseId: pulumi.String("analytics"),
Parent: pulumi.Any(main.Name),
Spec: &databricks.PostgresDatabaseSpecArgs{
PostgresDatabase: pulumi.String("analytics_v2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var analytics = new Databricks.Index.PostgresDatabase("analytics", new()
{
DatabaseId = "analytics",
Parent = main.Name,
Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
{
PostgresDatabase = "analytics_v2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresDatabase;
import com.pulumi.databricks.PostgresDatabaseArgs;
import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
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) {
var analytics = new PostgresDatabase("analytics", PostgresDatabaseArgs.builder()
.databaseId("analytics")
.parent(main.name())
.spec(PostgresDatabaseSpecArgs.builder()
.postgresDatabase("analytics_v2")
.build())
.build());
}
}
resources:
analytics:
type: databricks:PostgresDatabase
properties:
databaseId: analytics
parent: ${main.name}
spec:
postgresDatabase: analytics_v2
Multiple databases in a branch
By default, Pulumi creates resources in parallel if the dependency graph allows for that. However, Lakebase doesn’t allow the parallel management of resource inside a single branch. Only one of these resources can be created at a time:
- Role
- Database
- Endpoint
If you try to create resources in parallel, you’ll see a conflict error like:
Your project already has conflicting operations in progress. Please wait until they are complete, and then try again.
Pulumi serializes automatically when one resource references another, forming an edge in the dependency graph.
For example, if a database’s spec.role points at a role, Pulumi creates the role before the database.
For resources that don’t reference each other, like two sibling databases in the same branch, add dependsOn so
Pulumi knows to wait for complete creation of the first resource, before starting the creation of the second one.
For example:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const schemaOwner = new databricks.PostgresRole("schema_owner", {
roleId: "schemamigrator",
parent: test.name,
spec: {
postgresRole: "schemamigrator",
membershipRoles: ["DATABRICKS_SUPERUSER"],
},
});
const application1 = new databricks.PostgresDatabase("application1", {
databaseId: "application1",
parent: test.name,
spec: {
postgresDatabase: "application1",
role: schemaOwner.name,
},
});
const application2 = new databricks.PostgresDatabase("application2", {
databaseId: "application2",
parent: test.name,
spec: {
postgresDatabase: "application2",
role: schemaOwner.name,
},
}, {
dependsOn: [application1],
});
import pulumi
import pulumi_databricks as databricks
schema_owner = databricks.PostgresRole("schema_owner",
role_id="schemamigrator",
parent=test["name"],
spec={
"postgres_role": "schemamigrator",
"membership_roles": ["DATABRICKS_SUPERUSER"],
})
application1 = databricks.PostgresDatabase("application1",
database_id="application1",
parent=test["name"],
spec={
"postgres_database": "application1",
"role": schema_owner.name,
})
application2 = databricks.PostgresDatabase("application2",
database_id="application2",
parent=test["name"],
spec={
"postgres_database": "application2",
"role": schema_owner.name,
},
opts = pulumi.ResourceOptions(depends_on=[application1]))
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 {
schemaOwner, err := databricks.NewPostgresRole(ctx, "schema_owner", &databricks.PostgresRoleArgs{
RoleId: pulumi.String("schemamigrator"),
Parent: pulumi.Any(test.Name),
Spec: &databricks.PostgresRoleSpecArgs{
PostgresRole: pulumi.String("schemamigrator"),
MembershipRoles: pulumi.StringArray{
pulumi.String("DATABRICKS_SUPERUSER"),
},
},
})
if err != nil {
return err
}
application1, err := databricks.NewPostgresDatabase(ctx, "application1", &databricks.PostgresDatabaseArgs{
DatabaseId: pulumi.String("application1"),
Parent: pulumi.Any(test.Name),
Spec: &databricks.PostgresDatabaseSpecArgs{
PostgresDatabase: pulumi.String("application1"),
Role: schemaOwner.Name,
},
})
if err != nil {
return err
}
_, err = databricks.NewPostgresDatabase(ctx, "application2", &databricks.PostgresDatabaseArgs{
DatabaseId: pulumi.String("application2"),
Parent: pulumi.Any(test.Name),
Spec: &databricks.PostgresDatabaseSpecArgs{
PostgresDatabase: pulumi.String("application2"),
Role: schemaOwner.Name,
},
}, pulumi.DependsOn([]pulumi.Resource{
application1,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var schemaOwner = new Databricks.Index.PostgresRole("schema_owner", new()
{
RoleId = "schemamigrator",
Parent = test.Name,
Spec = new Databricks.Inputs.PostgresRoleSpecArgs
{
PostgresRole = "schemamigrator",
MembershipRoles = new[]
{
"DATABRICKS_SUPERUSER",
},
},
});
var application1 = new Databricks.Index.PostgresDatabase("application1", new()
{
DatabaseId = "application1",
Parent = test.Name,
Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
{
PostgresDatabase = "application1",
Role = schemaOwner.Name,
},
});
var application2 = new Databricks.Index.PostgresDatabase("application2", new()
{
DatabaseId = "application2",
Parent = test.Name,
Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
{
PostgresDatabase = "application2",
Role = schemaOwner.Name,
},
}, new CustomResourceOptions
{
DependsOn =
{
application1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresRole;
import com.pulumi.databricks.PostgresRoleArgs;
import com.pulumi.databricks.inputs.PostgresRoleSpecArgs;
import com.pulumi.databricks.PostgresDatabase;
import com.pulumi.databricks.PostgresDatabaseArgs;
import com.pulumi.databricks.inputs.PostgresDatabaseSpecArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
var schemaOwner = new PostgresRole("schemaOwner", PostgresRoleArgs.builder()
.roleId("schemamigrator")
.parent(test.name())
.spec(PostgresRoleSpecArgs.builder()
.postgresRole("schemamigrator")
.membershipRoles("DATABRICKS_SUPERUSER")
.build())
.build());
var application1 = new PostgresDatabase("application1", PostgresDatabaseArgs.builder()
.databaseId("application1")
.parent(test.name())
.spec(PostgresDatabaseSpecArgs.builder()
.postgresDatabase("application1")
.role(schemaOwner.name())
.build())
.build());
var application2 = new PostgresDatabase("application2", PostgresDatabaseArgs.builder()
.databaseId("application2")
.parent(test.name())
.spec(PostgresDatabaseSpecArgs.builder()
.postgresDatabase("application2")
.role(schemaOwner.name())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(application1)
.build());
}
}
resources:
schemaOwner:
type: databricks:PostgresRole
name: schema_owner
properties:
roleId: schemamigrator
parent: ${test.name}
spec:
postgresRole: schemamigrator
membershipRoles:
- DATABRICKS_SUPERUSER
application1:
type: databricks:PostgresDatabase
properties:
databaseId: application1
parent: ${test.name}
spec:
postgresDatabase: application1
role: ${schemaOwner.name}
application2:
type: databricks:PostgresDatabase
properties:
databaseId: application2
parent: ${test.name}
spec:
postgresDatabase: application2
role: ${schemaOwner.name}
options:
dependsOn:
- ${application1}
Create PostgresDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresDatabase(name: string, args: PostgresDatabaseArgs, opts?: CustomResourceOptions);@overload
def PostgresDatabase(resource_name: str,
args: PostgresDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
parent: Optional[str] = None,
database_id: Optional[str] = None,
provider_config: Optional[PostgresDatabaseProviderConfigArgs] = None,
spec: Optional[PostgresDatabaseSpecArgs] = None)func NewPostgresDatabase(ctx *Context, name string, args PostgresDatabaseArgs, opts ...ResourceOption) (*PostgresDatabase, error)public PostgresDatabase(string name, PostgresDatabaseArgs args, CustomResourceOptions? opts = null)
public PostgresDatabase(String name, PostgresDatabaseArgs args)
public PostgresDatabase(String name, PostgresDatabaseArgs args, CustomResourceOptions options)
type: databricks:PostgresDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PostgresDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PostgresDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PostgresDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var postgresDatabaseResource = new Databricks.PostgresDatabase("postgresDatabaseResource", new()
{
Parent = "string",
DatabaseId = "string",
ProviderConfig = new Databricks.Inputs.PostgresDatabaseProviderConfigArgs
{
WorkspaceId = "string",
},
Spec = new Databricks.Inputs.PostgresDatabaseSpecArgs
{
PostgresDatabase = "string",
Role = "string",
},
});
example, err := databricks.NewPostgresDatabase(ctx, "postgresDatabaseResource", &databricks.PostgresDatabaseArgs{
Parent: pulumi.String("string"),
DatabaseId: pulumi.String("string"),
ProviderConfig: &databricks.PostgresDatabaseProviderConfigArgs{
WorkspaceId: pulumi.String("string"),
},
Spec: &databricks.PostgresDatabaseSpecArgs{
PostgresDatabase: pulumi.String("string"),
Role: pulumi.String("string"),
},
})
var postgresDatabaseResource = new PostgresDatabase("postgresDatabaseResource", PostgresDatabaseArgs.builder()
.parent("string")
.databaseId("string")
.providerConfig(PostgresDatabaseProviderConfigArgs.builder()
.workspaceId("string")
.build())
.spec(PostgresDatabaseSpecArgs.builder()
.postgresDatabase("string")
.role("string")
.build())
.build());
postgres_database_resource = databricks.PostgresDatabase("postgresDatabaseResource",
parent="string",
database_id="string",
provider_config={
"workspace_id": "string",
},
spec={
"postgres_database": "string",
"role": "string",
})
const postgresDatabaseResource = new databricks.PostgresDatabase("postgresDatabaseResource", {
parent: "string",
databaseId: "string",
providerConfig: {
workspaceId: "string",
},
spec: {
postgresDatabase: "string",
role: "string",
},
});
type: databricks:PostgresDatabase
properties:
databaseId: string
parent: string
providerConfig:
workspaceId: string
spec:
postgresDatabase: string
role: string
PostgresDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PostgresDatabase resource accepts the following input properties:
- Parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- Spec
Postgres
Database Spec - The desired state of the Database
- Parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Provider
Config PostgresDatabase Provider Config Args - Configure the provider for management through account provider.
- Spec
Postgres
Database Spec Args - The desired state of the Database
- parent String
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Database Spec - The desired state of the Database
- parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Database Spec - The desired state of the Database
- parent str
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- database_
id str The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- provider_
config PostgresDatabase Provider Config Args - Configure the provider for management through account provider.
- spec
Postgres
Database Spec Args - The desired state of the Database
- parent String
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- provider
Config Property Map - Configure the provider for management through account provider.
- spec Property Map
- The desired state of the Database
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresDatabase resource produces the following output properties:
- Create
Time 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}
- Status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- Update
Time string - (string) - A timestamp indicating when the database was last updated
- Create
Time 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}
- Status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- Update
Time string - (string) - A timestamp indicating when the database was last updated
- create
Time 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}
- status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time String - (string) - A timestamp indicating when the database was last updated
- create
Time 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}
- status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time string - (string) - A timestamp indicating when the database was last updated
- 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}
- status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- update_
time str - (string) - A timestamp indicating when the database was last updated
- create
Time 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}
- status Property Map
- (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time String - (string) - A timestamp indicating when the database was last updated
Look up Existing PostgresDatabase Resource
Get an existing PostgresDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PostgresDatabaseState, opts?: CustomResourceOptions): PostgresDatabase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
database_id: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
provider_config: Optional[PostgresDatabaseProviderConfigArgs] = None,
spec: Optional[PostgresDatabaseSpecArgs] = None,
status: Optional[PostgresDatabaseStatusArgs] = None,
update_time: Optional[str] = None) -> PostgresDatabasefunc GetPostgresDatabase(ctx *Context, name string, id IDInput, state *PostgresDatabaseState, opts ...ResourceOption) (*PostgresDatabase, error)public static PostgresDatabase Get(string name, Input<string> id, PostgresDatabaseState? state, CustomResourceOptions? opts = null)public static PostgresDatabase get(String name, Output<String> id, PostgresDatabaseState state, CustomResourceOptions options)resources: _: type: databricks:PostgresDatabase get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - (string) - A timestamp indicating when the database was created
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Name string
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- Parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- Provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- Spec
Postgres
Database Spec - The desired state of the Database
- Status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- Update
Time string - (string) - A timestamp indicating when the database was last updated
- Create
Time string - (string) - A timestamp indicating when the database was created
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Name string
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- Parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- Provider
Config PostgresDatabase Provider Config Args - Configure the provider for management through account provider.
- Spec
Postgres
Database Spec Args - The desired state of the Database
- Status
Postgres
Database Status Args - (DatabaseDatabaseStatus) - The observed state of the Database
- Update
Time string - (string) - A timestamp indicating when the database was last updated
- create
Time String - (string) - A timestamp indicating when the database was created
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- name String
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- parent String
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Database Spec - The desired state of the Database
- status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time String - (string) - A timestamp indicating when the database was last updated
- create
Time string - (string) - A timestamp indicating when the database was created
- database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- name string
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- parent string
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- provider
Config PostgresDatabase Provider Config - Configure the provider for management through account provider.
- spec
Postgres
Database Spec - The desired state of the Database
- status
Postgres
Database Status - (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time string - (string) - A timestamp indicating when the database was last updated
- create_
time str - (string) - A timestamp indicating when the database was created
- database_
id str The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- name str
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- parent str
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- provider_
config PostgresDatabase Provider Config Args - Configure the provider for management through account provider.
- spec
Postgres
Database Spec Args - The desired state of the Database
- status
Postgres
Database Status Args - (DatabaseDatabaseStatus) - The observed state of the Database
- update_
time str - (string) - A timestamp indicating when the database was last updated
- create
Time String - (string) - A timestamp indicating when the database was created
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- name String
- (string) - The resource name of the database. Format: projects/{project_id}/branches/{branch_id}/databases/{database_id}
- parent String
- The branch containing this database. Format: projects/{project_id}/branches/{branch_id}
- provider
Config Property Map - Configure the provider for management through account provider.
- spec Property Map
- The desired state of the Database
- status Property Map
- (DatabaseDatabaseStatus) - The observed state of the Database
- update
Time String - (string) - A timestamp indicating when the database was last updated
Supporting Types
PostgresDatabaseProviderConfig, PostgresDatabaseProviderConfigArgs
- 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.
PostgresDatabaseSpec, PostgresDatabaseSpecArgs
- Postgres
Database string - Role string
- Postgres
Database string - Role string
- postgres
Database String - role String
- postgres
Database string - role string
- postgres_
database str - role str
- postgres
Database String - role String
PostgresDatabaseStatus, PostgresDatabaseStatusArgs
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Postgres
Database string - Role string
- Database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- Postgres
Database string - Role string
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- postgres
Database String - role String
- database
Id string The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- postgres
Database string - role string
- database_
id str The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- postgres_
database str - role str
- database
Id String The ID to use for the Database, which will become the final component of the database's resource name. This ID becomes the database name in postgres.
This value should be 4-63 characters, and only use characters available in DNS names, as defined by RFC-1123
If databaseId is not specified in the request, it is generated automatically
- postgres
Database String - role String
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
published on Friday, May 1, 2026 by Pulumi
