Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
This data source retrieves a single Postgres role.
Example Usage
Retrieve Role by Name
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getPostgresRole({
name: "projects/my-project/branches/main/roles/jane",
});
export const rolePostgresName = _this.then(_this => _this.status?.postgresRole);
export const roleIdentityType = _this.then(_this => _this.status?.identityType);
export const roleAuthMethod = _this.then(_this => _this.status?.authMethod);
import pulumi
import pulumi_databricks as databricks
this = databricks.get_postgres_role(name="projects/my-project/branches/main/roles/jane")
pulumi.export("rolePostgresName", this.status.postgres_role)
pulumi.export("roleIdentityType", this.status.identity_type)
pulumi.export("roleAuthMethod", this.status.auth_method)
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.GetPostgresRole(ctx, &databricks.LookupPostgresRoleArgs{
Name: "projects/my-project/branches/main/roles/jane",
}, nil)
if err != nil {
return err
}
ctx.Export("rolePostgresName", this.Status.PostgresRole)
ctx.Export("roleIdentityType", this.Status.IdentityType)
ctx.Export("roleAuthMethod", this.Status.AuthMethod)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetPostgresRole.Invoke(new()
{
Name = "projects/my-project/branches/main/roles/jane",
});
return new Dictionary<string, object?>
{
["rolePostgresName"] = @this.Apply(@this => @this.Apply(getPostgresRoleResult => getPostgresRoleResult.Status?.PostgresRole)),
["roleIdentityType"] = @this.Apply(@this => @this.Apply(getPostgresRoleResult => getPostgresRoleResult.Status?.IdentityType)),
["roleAuthMethod"] = @this.Apply(@this => @this.Apply(getPostgresRoleResult => getPostgresRoleResult.Status?.AuthMethod)),
};
});
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.GetPostgresRoleArgs;
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.getPostgresRole(GetPostgresRoleArgs.builder()
.name("projects/my-project/branches/main/roles/jane")
.build());
ctx.export("rolePostgresName", this_.status().postgresRole());
ctx.export("roleIdentityType", this_.status().identityType());
ctx.export("roleAuthMethod", this_.status().authMethod());
}
}
variables:
this:
fn::invoke:
function: databricks:getPostgresRole
arguments:
name: projects/my-project/branches/main/roles/jane
outputs:
rolePostgresName: ${this.status.postgresRole}
roleIdentityType: ${this.status.identityType}
roleAuthMethod: ${this.status.authMethod}
Example coming soon!
Using getPostgresRole
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 getPostgresRole(args: GetPostgresRoleArgs, opts?: InvokeOptions): Promise<GetPostgresRoleResult>
function getPostgresRoleOutput(args: GetPostgresRoleOutputArgs, opts?: InvokeOptions): Output<GetPostgresRoleResult>def get_postgres_role(name: Optional[str] = None,
provider_config: Optional[GetPostgresRoleProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetPostgresRoleResult
def get_postgres_role_output(name: pulumi.Input[Optional[str]] = None,
provider_config: pulumi.Input[Optional[GetPostgresRoleProviderConfigArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPostgresRoleResult]func LookupPostgresRole(ctx *Context, args *LookupPostgresRoleArgs, opts ...InvokeOption) (*LookupPostgresRoleResult, error)
func LookupPostgresRoleOutput(ctx *Context, args *LookupPostgresRoleOutputArgs, opts ...InvokeOption) LookupPostgresRoleResultOutput> Note: This function is named LookupPostgresRole in the Go SDK.
public static class GetPostgresRole
{
public static Task<GetPostgresRoleResult> InvokeAsync(GetPostgresRoleArgs args, InvokeOptions? opts = null)
public static Output<GetPostgresRoleResult> Invoke(GetPostgresRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPostgresRoleResult> getPostgresRole(GetPostgresRoleArgs args, InvokeOptions options)
public static Output<GetPostgresRoleResult> getPostgresRole(GetPostgresRoleArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getPostgresRole:getPostgresRole
arguments:
# arguments dictionarydata "databricks_getpostgresrole" "name" {
# arguments
}The following arguments are supported:
- Name string
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- Provider
Config GetPostgres Role Provider Config - Configure the provider for management through account provider.
- Name string
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- Provider
Config GetPostgres Role Provider Config - Configure the provider for management through account provider.
- name string
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- provider_
config object - Configure the provider for management through account provider.
- name String
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- provider
Config GetPostgres Role Provider Config - Configure the provider for management through account provider.
- name string
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- provider
Config GetPostgres Role Provider Config - Configure the provider for management through account provider.
- name str
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- provider_
config GetPostgres Role Provider Config - Configure the provider for management through account provider.
- name String
- Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- provider
Config Property Map - Configure the provider for management through account provider.
getPostgresRole Result
The following output properties are available:
- Create
Time string - (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- Parent string
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- Spec
Get
Postgres Role Spec - (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- Status
Get
Postgres Role Status - (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- Update
Time string - (string)
- Provider
Config GetPostgres Role Provider Config
- Create
Time string - (string)
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- Parent string
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- Spec
Get
Postgres Role Spec - (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- Status
Get
Postgres Role Status - (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- Update
Time string - (string)
- Provider
Config GetPostgres Role Provider Config
- create_
time string - (string)
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- parent string
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- spec object
- (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- status object
- (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- update_
time string - (string)
- provider_
config object
- create
Time String - (string)
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- parent String
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- spec
Get
Postgres Role Spec - (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- status
Get
Postgres Role Status - (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- update
Time String - (string)
- provider
Config GetPostgres Role Provider Config
- create
Time string - (string)
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- parent string
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- spec
Get
Postgres Role Spec - (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- status
Get
Postgres Role Status - (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- update
Time string - (string)
- provider
Config GetPostgres Role Provider Config
- create_
time str - (string)
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- parent str
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- spec
Get
Postgres Role Spec - (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- status
Get
Postgres Role Status - (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- update_
time str - (string)
- provider_
config GetPostgres Role Provider Config
- create
Time String - (string)
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - Output only. The full resource path of the role. Format: projects/{project_id}/branches/{branch_id}/roles/{role_id}
- parent String
- (string) - The Branch where this Role exists. Format: projects/{project_id}/branches/{branch_id}
- spec Property Map
- (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
- status Property Map
- (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
- update
Time String - (string)
- provider
Config Property Map
Supporting Types
GetPostgresRoleProviderConfig
- 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.
GetPostgresRoleSpec
- Attributes
Get
Postgres Role Spec Attributes - (RoleAttributes) - The PG role attributes associated with the role
- Auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - Identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - Membership
Roles List<string> - (list of string) - An enum value for a standard role that this role is a member of
- Postgres
Role string - (string) - The name of the Postgres role
- Attributes
Get
Postgres Role Spec Attributes - (RoleAttributes) - The PG role attributes associated with the role
- Auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - Identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - Membership
Roles []string - (list of string) - An enum value for a standard role that this role is a member of
- Postgres
Role string - (string) - The name of the Postgres role
- attributes object
- (RoleAttributes) - The PG role attributes associated with the role
- auth_
method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity_
type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership_
roles list(string) - (list of string) - An enum value for a standard role that this role is a member of
- postgres_
role string - (string) - The name of the Postgres role
- attributes
Get
Postgres Role Spec Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth
Method String - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type String - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles List<String> - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role String - (string) - The name of the Postgres role
- attributes
Get
Postgres Role Spec Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles string[] - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role string - (string) - The name of the Postgres role
- attributes
Get
Postgres Role Spec Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth_
method str - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity_
type str - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership_
roles Sequence[str] - (list of string) - An enum value for a standard role that this role is a member of
- postgres_
role str - (string) - The name of the Postgres role
- attributes Property Map
- (RoleAttributes) - The PG role attributes associated with the role
- auth
Method String - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type String - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles List<String> - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role String - (string) - The name of the Postgres role
GetPostgresRoleSpecAttributes
- Bypassrls bool
- (boolean)
- Createdb bool
- (boolean)
- Createrole bool
- (boolean)
- Bypassrls bool
- (boolean)
- Createdb bool
- (boolean)
- Createrole bool
- (boolean)
- bypassrls bool
- (boolean)
- createdb bool
- (boolean)
- createrole bool
- (boolean)
- bypassrls Boolean
- (boolean)
- createdb Boolean
- (boolean)
- createrole Boolean
- (boolean)
- bypassrls boolean
- (boolean)
- createdb boolean
- (boolean)
- createrole boolean
- (boolean)
- bypassrls bool
- (boolean)
- createdb bool
- (boolean)
- createrole bool
- (boolean)
- bypassrls Boolean
- (boolean)
- createdb Boolean
- (boolean)
- createrole Boolean
- (boolean)
GetPostgresRoleStatus
- Role
Id string - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - Attributes
Get
Postgres Role Status Attributes - (RoleAttributes) - The PG role attributes associated with the role
- Auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - Identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - Membership
Roles List<string> - (list of string) - An enum value for a standard role that this role is a member of
- Postgres
Role string - (string) - The name of the Postgres role
- Role
Id string - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - Attributes
Get
Postgres Role Status Attributes - (RoleAttributes) - The PG role attributes associated with the role
- Auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - Identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - Membership
Roles []string - (list of string) - An enum value for a standard role that this role is a member of
- Postgres
Role string - (string) - The name of the Postgres role
- role_
id string - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - attributes object
- (RoleAttributes) - The PG role attributes associated with the role
- auth_
method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity_
type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership_
roles list(string) - (list of string) - An enum value for a standard role that this role is a member of
- postgres_
role string - (string) - The name of the Postgres role
- role
Id String - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - attributes
Get
Postgres Role Status Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth
Method String - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type String - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles List<String> - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role String - (string) - The name of the Postgres role
- role
Id string - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - attributes
Get
Postgres Role Status Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth
Method string - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type string - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles string[] - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role string - (string) - The name of the Postgres role
- role_
id str - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - attributes
Get
Postgres Role Status Attributes - (RoleAttributes) - The PG role attributes associated with the role
- auth_
method str - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity_
type str - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership_
roles Sequence[str] - (list of string) - An enum value for a standard role that this role is a member of
- postgres_
role str - (string) - The name of the Postgres role
- role
Id String - (string) - The short identifier of the role, suitable for showing to the users.
For a role with name
projects/my-project/branches/my-branch/roles/my-role, the roleId ismy-role. - attributes Property Map
- (RoleAttributes) - The PG role attributes associated with the role
- auth
Method String - (string) - Possible values are:
LAKEBASE_OAUTH_V1,NO_LOGIN,PG_PASSWORD_SCRAM_SHA_256 - identity
Type String - (string) - The type of the role. Possible values are:
GROUP,SERVICE_PRINCIPAL,USER - membership
Roles List<String> - (list of string) - An enum value for a standard role that this role is a member of
- postgres
Role String - (string) - The name of the Postgres role
GetPostgresRoleStatusAttributes
- Bypassrls bool
- (boolean)
- Createdb bool
- (boolean)
- Createrole bool
- (boolean)
- Bypassrls bool
- (boolean)
- Createdb bool
- (boolean)
- Createrole bool
- (boolean)
- bypassrls bool
- (boolean)
- createdb bool
- (boolean)
- createrole bool
- (boolean)
- bypassrls Boolean
- (boolean)
- createdb Boolean
- (boolean)
- createrole Boolean
- (boolean)
- bypassrls boolean
- (boolean)
- createdb boolean
- (boolean)
- createrole boolean
- (boolean)
- bypassrls bool
- (boolean)
- createdb bool
- (boolean)
- createrole bool
- (boolean)
- bypassrls Boolean
- (boolean)
- createdb Boolean
- (boolean)
- createrole Boolean
- (boolean)
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.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
