1. Packages
  2. Databricks Provider
  3. API Docs
  4. getPostgresRole
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi

    Public Beta

    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: Optional[pulumi.Input[str]] = None,
                          provider_config: Optional[pulumi.Input[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 dictionary

    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}
    ProviderConfig GetPostgresRoleProviderConfig
    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}
    ProviderConfig GetPostgresRoleProviderConfig
    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}
    providerConfig GetPostgresRoleProviderConfig
    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}
    providerConfig GetPostgresRoleProviderConfig
    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 GetPostgresRoleProviderConfig
    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}
    providerConfig Property Map
    Configure the provider for management through account provider.

    getPostgresRole Result

    The following output properties are available:

    CreateTime 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 GetPostgresRoleSpec
    (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
    Status GetPostgresRoleStatus
    (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
    UpdateTime string
    (string)
    ProviderConfig GetPostgresRoleProviderConfig
    CreateTime 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 GetPostgresRoleSpec
    (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
    Status GetPostgresRoleStatus
    (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
    UpdateTime string
    (string)
    ProviderConfig GetPostgresRoleProviderConfig
    createTime 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 GetPostgresRoleSpec
    (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
    status GetPostgresRoleStatus
    (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
    updateTime String
    (string)
    providerConfig GetPostgresRoleProviderConfig
    createTime 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 GetPostgresRoleSpec
    (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
    status GetPostgresRoleStatus
    (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
    updateTime string
    (string)
    providerConfig GetPostgresRoleProviderConfig
    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 GetPostgresRoleSpec
    (RoleRoleSpec) - The spec contains the role configuration, including identity type, authentication method, and role attributes
    status GetPostgresRoleStatus
    (RoleRoleStatus) - Current status of the role, including its identity type, authentication method, and role attributes
    update_time str
    (string)
    provider_config GetPostgresRoleProviderConfig
    createTime 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
    updateTime String
    (string)
    providerConfig Property Map

    Supporting Types

    GetPostgresRoleProviderConfig

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId 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.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    GetPostgresRoleSpec

    Attributes GetPostgresRoleSpecAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    AuthMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    IdentityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    MembershipRoles List<string>
    (list of string) - An enum value for a standard role that this role is a member of
    PostgresRole string
    (string) - The name of the Postgres role
    Attributes GetPostgresRoleSpecAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    AuthMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    IdentityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    MembershipRoles []string
    (list of string) - An enum value for a standard role that this role is a member of
    PostgresRole string
    (string) - The name of the Postgres role
    attributes GetPostgresRoleSpecAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    authMethod String
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType String
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles List<String>
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole String
    (string) - The name of the Postgres role
    attributes GetPostgresRoleSpecAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    authMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles string[]
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole string
    (string) - The name of the Postgres role
    attributes GetPostgresRoleSpecAttributes
    (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
    authMethod String
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType String
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles List<String>
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole 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 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

    Attributes GetPostgresRoleStatusAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    AuthMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    IdentityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    MembershipRoles List<string>
    (list of string) - An enum value for a standard role that this role is a member of
    PostgresRole string
    (string) - The name of the Postgres role
    Attributes GetPostgresRoleStatusAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    AuthMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    IdentityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    MembershipRoles []string
    (list of string) - An enum value for a standard role that this role is a member of
    PostgresRole string
    (string) - The name of the Postgres role
    attributes GetPostgresRoleStatusAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    authMethod String
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType String
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles List<String>
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole String
    (string) - The name of the Postgres role
    attributes GetPostgresRoleStatusAttributes
    (RoleAttributes) - The PG role attributes associated with the role
    authMethod string
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType string
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles string[]
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole string
    (string) - The name of the Postgres role
    attributes GetPostgresRoleStatusAttributes
    (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
    authMethod String
    (string) - Possible values are: LAKEBASE_OAUTH_V1, NO_LOGIN, PG_PASSWORD_SCRAM_SHA_256
    identityType String
    (string) - The type of the role. Possible values are: GROUP, SERVICE_PRINCIPAL, USER
    membershipRoles List<String>
    (list of string) - An enum value for a standard role that this role is a member of
    postgresRole 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 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 databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v1.90.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.