1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. vedbm
  5. Account
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus

    Database Account Management

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const vEDBMAccountDemo = new bytepluscc.vedbm.Account("VEDBMAccountDemo", {
        instanceId: "vedbm-r5zxxxxjdabv",
        accountName: "super_user",
        accountPassword: "Rooxxx456",
        accountType: "Super",
        accountDesc: "this is a super account",
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    v_edbm_account_demo = bytepluscc.vedbm.Account("VEDBMAccountDemo",
        instance_id="vedbm-r5zxxxxjdabv",
        account_name="super_user",
        account_password="Rooxxx456",
        account_type="Super",
        account_desc="this is a super account")
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vedbm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vedbm.NewAccount(ctx, "VEDBMAccountDemo", &vedbm.AccountArgs{
    			InstanceId:      pulumi.String("vedbm-r5zxxxxjdabv"),
    			AccountName:     pulumi.String("super_user"),
    			AccountPassword: pulumi.String("Rooxxx456"),
    			AccountType:     pulumi.String("Super"),
    			AccountDesc:     pulumi.String("this is a super account"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var vEDBMAccountDemo = new Bytepluscc.Vedbm.Account("VEDBMAccountDemo", new()
        {
            InstanceId = "vedbm-r5zxxxxjdabv",
            AccountName = "super_user",
            AccountPassword = "Rooxxx456",
            AccountType = "Super",
            AccountDesc = "this is a super account",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.vedbm.Account;
    import com.byteplus.bytepluscc.vedbm.AccountArgs;
    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 vEDBMAccountDemo = new Account("vEDBMAccountDemo", AccountArgs.builder()
                .instanceId("vedbm-r5zxxxxjdabv")
                .accountName("super_user")
                .accountPassword("Rooxxx456")
                .accountType("Super")
                .accountDesc("this is a super account")
                .build());
    
        }
    }
    
    resources:
      vEDBMAccountDemo:
        type: bytepluscc:vedbm:Account
        name: VEDBMAccountDemo
        properties:
          instanceId: vedbm-r5zxxxxjdabv
          accountName: super_user
          accountPassword: Rooxxx456
          accountType: Super
          accountDesc: this is a super account
    

    Create Account Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
    @overload
    def Account(resource_name: str,
                args: Optional[AccountArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Account(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_desc: Optional[str] = None,
                account_name: Optional[str] = None,
                account_password: Optional[str] = None,
                account_type: Optional[str] = None,
                instance_id: Optional[str] = None,
                reset_privilege: Optional[bool] = None)
    func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
    public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
    public Account(String name, AccountArgs args)
    public Account(String name, AccountArgs args, CustomResourceOptions options)
    
    type: bytepluscc:vedbm:Account
    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 AccountArgs
    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 AccountArgs
    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 AccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountArgs
    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 exampleaccountResourceResourceFromVedbmaccount = new Bytepluscc.Vedbm.Account("exampleaccountResourceResourceFromVedbmaccount", new()
    {
        AccountDesc = "string",
        AccountName = "string",
        AccountPassword = "string",
        AccountType = "string",
        InstanceId = "string",
        ResetPrivilege = false,
    });
    
    example, err := vedbm.NewAccount(ctx, "exampleaccountResourceResourceFromVedbmaccount", &vedbm.AccountArgs{
    	AccountDesc:     pulumi.String("string"),
    	AccountName:     pulumi.String("string"),
    	AccountPassword: pulumi.String("string"),
    	AccountType:     pulumi.String("string"),
    	InstanceId:      pulumi.String("string"),
    	ResetPrivilege:  pulumi.Bool(false),
    })
    
    var exampleaccountResourceResourceFromVedbmaccount = new com.byteplus.bytepluscc.vedbm.Account("exampleaccountResourceResourceFromVedbmaccount", com.byteplus.bytepluscc.vedbm.AccountArgs.builder()
        .accountDesc("string")
        .accountName("string")
        .accountPassword("string")
        .accountType("string")
        .instanceId("string")
        .resetPrivilege(false)
        .build());
    
    exampleaccount_resource_resource_from_vedbmaccount = bytepluscc.vedbm.Account("exampleaccountResourceResourceFromVedbmaccount",
        account_desc="string",
        account_name="string",
        account_password="string",
        account_type="string",
        instance_id="string",
        reset_privilege=False)
    
    const exampleaccountResourceResourceFromVedbmaccount = new bytepluscc.vedbm.Account("exampleaccountResourceResourceFromVedbmaccount", {
        accountDesc: "string",
        accountName: "string",
        accountPassword: "string",
        accountType: "string",
        instanceId: "string",
        resetPrivilege: false,
    });
    
    type: bytepluscc:vedbm:Account
    properties:
        accountDesc: string
        accountName: string
        accountPassword: string
        accountType: string
        instanceId: string
        resetPrivilege: false
    

    Account 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 Account resource accepts the following input properties:

    AccountDesc string
    Account Description
    AccountName string
    Account Name
    AccountPassword string
    Database Account Password
    AccountType string
    Account Type
    InstanceId string
    Instance ID
    ResetPrivilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    AccountDesc string
    Account Description
    AccountName string
    Account Name
    AccountPassword string
    Database Account Password
    AccountType string
    Account Type
    InstanceId string
    Instance ID
    ResetPrivilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc String
    Account Description
    accountName String
    Account Name
    accountPassword String
    Database Account Password
    accountType String
    Account Type
    instanceId String
    Instance ID
    resetPrivilege Boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc string
    Account Description
    accountName string
    Account Name
    accountPassword string
    Database Account Password
    accountType string
    Account Type
    instanceId string
    Instance ID
    resetPrivilege boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    account_desc str
    Account Description
    account_name str
    Account Name
    account_password str
    Database Account Password
    account_type str
    Account Type
    instance_id str
    Instance ID
    reset_privilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc String
    Account Description
    accountName String
    Account Name
    accountPassword String
    Database Account Password
    accountType String
    Account Type
    instanceId String
    Instance ID
    resetPrivilege Boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Account Resource

    Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_desc: Optional[str] = None,
            account_name: Optional[str] = None,
            account_password: Optional[str] = None,
            account_type: Optional[str] = None,
            instance_id: Optional[str] = None,
            reset_privilege: Optional[bool] = None) -> Account
    func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
    public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
    public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:vedbm:Account    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.
    The following state arguments are supported:
    AccountDesc string
    Account Description
    AccountName string
    Account Name
    AccountPassword string
    Database Account Password
    AccountType string
    Account Type
    InstanceId string
    Instance ID
    ResetPrivilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    AccountDesc string
    Account Description
    AccountName string
    Account Name
    AccountPassword string
    Database Account Password
    AccountType string
    Account Type
    InstanceId string
    Instance ID
    ResetPrivilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc String
    Account Description
    accountName String
    Account Name
    accountPassword String
    Database Account Password
    accountType String
    Account Type
    instanceId String
    Instance ID
    resetPrivilege Boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc string
    Account Description
    accountName string
    Account Name
    accountPassword string
    Database Account Password
    accountType string
    Account Type
    instanceId string
    Instance ID
    resetPrivilege boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    account_desc str
    Account Description
    account_name str
    Account Name
    account_password str
    Database Account Password
    account_type str
    Account Type
    instance_id str
    Instance ID
    reset_privilege bool
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.
    accountDesc String
    Account Description
    accountName String
    Account Name
    accountPassword String
    Database Account Password
    accountType String
    Account Type
    instanceId String
    Instance ID
    resetPrivilege Boolean
    Reset high-privilege account permissions. Only applicable to Super accounts. If users modify high-privilege account permissions via SQL on the backend, subsequent features may become unavailable. Therefore, this function is provided to restore all permissions with one click.

    Import

    $ pulumi import bytepluscc:vedbm/account:Account example "instance_id|account_name"
    

    To learn more about importing existing cloud resources, see Importing resources.

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