1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. rdspostgresql
  5. getDbAccount
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.16
published on Monday, Mar 9, 2026 by Byteplus

    Data Source schema for Byteplus::RDSPostgreSQL::DBAccount

    Using getDbAccount

    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 getDbAccount(args: GetDbAccountArgs, opts?: InvokeOptions): Promise<GetDbAccountResult>
    function getDbAccountOutput(args: GetDbAccountOutputArgs, opts?: InvokeOptions): Output<GetDbAccountResult>
    def get_db_account(id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDbAccountResult
    def get_db_account_output(id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDbAccountResult]
    func LookupDbAccount(ctx *Context, args *LookupDbAccountArgs, opts ...InvokeOption) (*LookupDbAccountResult, error)
    func LookupDbAccountOutput(ctx *Context, args *LookupDbAccountOutputArgs, opts ...InvokeOption) LookupDbAccountResultOutput

    > Note: This function is named LookupDbAccount in the Go SDK.

    public static class GetDbAccount 
    {
        public static Task<GetDbAccountResult> InvokeAsync(GetDbAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetDbAccountResult> Invoke(GetDbAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbAccountResult> getDbAccount(GetDbAccountArgs args, InvokeOptions options)
    public static Output<GetDbAccountResult> getDbAccount(GetDbAccountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:rdspostgresql/getDbAccount:getDbAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getDbAccount Result

    The following output properties are available:

    AccountName string
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    AccountPassword string
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    AccountPrivileges string
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    AccountType string
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    Id string
    Uniquely identifies the resource.
    InstanceId string
    实例 ID
    NotAllowPrivileges List<string>
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。
    AccountName string
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    AccountPassword string
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    AccountPrivileges string
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    AccountType string
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    Id string
    Uniquely identifies the resource.
    InstanceId string
    实例 ID
    NotAllowPrivileges []string
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。
    accountName String
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    accountPassword String
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    accountPrivileges String
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    accountType String
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    id String
    Uniquely identifies the resource.
    instanceId String
    实例 ID
    notAllowPrivileges List<String>
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。
    accountName string
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    accountPassword string
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    accountPrivileges string
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    accountType string
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    id string
    Uniquely identifies the resource.
    instanceId string
    实例 ID
    notAllowPrivileges string[]
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。
    account_name str
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    account_password str
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    account_privileges str
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    account_type str
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    id str
    Uniquely identifies the resource.
    instance_id str
    实例 ID
    not_allow_privileges Sequence[str]
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。
    accountName String
    数据库账号名称。账号名称的设置规则如下:长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能以 pg 开头。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。
    accountPassword String
    数据库账号的密码。数据库账号密码的设置规则如下:长度为 8~32 个字符。由大写字母、小写字母、数字、特殊字符中的任意三种组成。特殊字符为 !@#$%^*()&_+-=。
    accountPrivileges String
    账号权限信息。多个权限中间以英文逗号(,)分隔。取值:Login:登录权限。Inherit:继承权限。CreateRole:创建角色权限。CreateDB:创建数据库权限。说明当账号类型为高权限账号时,无需传入该参数,默认支持全部权限。当账号类型为普通账号时,支持传入该参数,默认值为 Login 和 Inherit。账号类型为实例只读账号时,即 AccountType 取值为 InstanceReadOnly 时,不支持传入该参数
    accountType String
    数据库账号类型,取值范围如下:Super:高权限账号。Normal:普通账号。InstanceReadOnly:实例只读账号。
    id String
    Uniquely identifies the resource.
    instanceId String
    实例 ID
    notAllowPrivileges List<String>
    为账号禁用的权限。当前仅支持取值为 DDL。说明仅支持为高权限账号或普通账号传入此字段,即 AccountType 取值为 Super 或 Normal 时。

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.16
    published on Monday, Mar 9, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.