1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vedbm
  5. getDatabase
Viewing docs for bytepluscc v0.0.20
published on Thursday, Mar 26, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.20
published on Thursday, Mar 26, 2026 by Byteplus

    Data Source schema for Byteplus::VEDBM::Database

    Using getDatabase

    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 getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
    function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
    def get_database(id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
    def get_database_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
    func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
    func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput

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

    public static class GetDatabase 
    {
        public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
    public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:vedbm/getDatabase:getDatabase
      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.

    getDatabase Result

    The following output properties are available:

    CharacterSetName string
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    DatabasesPrivileges List<Byteplus.GetDatabaseDatabasesPrivilege>
    数据库的权限信息
    DbDesc string
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    DbName string
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    Id string
    Uniquely identifies the resource.
    InstanceId string
    实例ID。
    CharacterSetName string
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    DatabasesPrivileges []GetDatabaseDatabasesPrivilege
    数据库的权限信息
    DbDesc string
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    DbName string
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    Id string
    Uniquely identifies the resource.
    InstanceId string
    实例ID。
    characterSetName String
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    databasesPrivileges List<GetDatabaseDatabasesPrivilege>
    数据库的权限信息
    dbDesc String
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    dbName String
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    id String
    Uniquely identifies the resource.
    instanceId String
    实例ID。
    characterSetName string
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    databasesPrivileges GetDatabaseDatabasesPrivilege[]
    数据库的权限信息
    dbDesc string
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    dbName string
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    id string
    Uniquely identifies the resource.
    instanceId string
    实例ID。
    character_set_name str
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    databases_privileges Sequence[GetDatabaseDatabasesPrivilege]
    数据库的权限信息
    db_desc str
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    db_name str
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    id str
    Uniquely identifies the resource.
    instance_id str
    实例ID。
    characterSetName String
    数据库字符集,可选值:utf8mb4(默认)、utf8、latin1、ascii
    databasesPrivileges List<Property Map>
    数据库的权限信息
    dbDesc String
    数据库描述信息,长度0~256字符,可包含数字、中文、英文、下划线(_)、中划线(-)
    dbName String
    数据库名称。命名规则:当前实例下唯一;长度2~64字符;以字母开头,字母/数字结尾;由字母、数字、下划线(_)、中划线(-)组成;不能使用预留字
    id String
    Uniquely identifies the resource.
    instanceId String
    实例ID。

    Supporting Types

    GetDatabaseDatabasesPrivilege

    AccountName string
    需授权的账号名称
    AccountPrivilege string
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    AccountPrivilegeDetails List<string>
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填
    AccountName string
    需授权的账号名称
    AccountPrivilege string
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    AccountPrivilegeDetails []string
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填
    accountName String
    需授权的账号名称
    accountPrivilege String
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    accountPrivilegeDetails List<String>
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填
    accountName string
    需授权的账号名称
    accountPrivilege string
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    accountPrivilegeDetails string[]
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填
    account_name str
    需授权的账号名称
    account_privilege str
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    account_privilege_details Sequence[str]
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填
    accountName String
    需授权的账号名称
    accountPrivilege String
    授权数据库权限类型:ReadWrite/ReadOnly/DDLOnly/DMLOnly/Custom
    accountPrivilegeDetails List<String>
    具体SQL操作权限,多个用英文逗号分隔;Custom类型时必填

    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.20
    published on Thursday, Mar 26, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.