1. Packages
  2. Packages
  3. Edgecenter Provider
  4. API Docs
  5. DbaasUser
Viewing docs for edgecenter 0.13.0
published on Tuesday, Jun 16, 2026 by edge-center
Viewing docs for edgecenter 0.13.0
published on Tuesday, Jun 16, 2026 by edge-center

    Represent DBaaS database user resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const example = new edgecenter.DbaasUser("example", {
        clusterId: "080bbca5-1234-1234-1234-0bccd6f8f1b0",
        projectId: 1,
        regionId: 1,
        name: "my_user",
        password: "SecurePassword123!",
        databases: ["my_database"],
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    example = edgecenter.DbaasUser("example",
        cluster_id="080bbca5-1234-1234-1234-0bccd6f8f1b0",
        project_id=1,
        region_id=1,
        name="my_user",
        password="SecurePassword123!",
        databases=["my_database"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := edgecenter.NewDbaasUser(ctx, "example", &edgecenter.DbaasUserArgs{
    			ClusterId: pulumi.String("080bbca5-1234-1234-1234-0bccd6f8f1b0"),
    			ProjectId: pulumi.Float64(1),
    			RegionId:  pulumi.Float64(1),
    			Name:      pulumi.String("my_user"),
    			Password:  pulumi.String("SecurePassword123!"),
    			Databases: pulumi.StringArray{
    				pulumi.String("my_database"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Edgecenter.DbaasUser("example", new()
        {
            ClusterId = "080bbca5-1234-1234-1234-0bccd6f8f1b0",
            ProjectId = 1,
            RegionId = 1,
            Name = "my_user",
            Password = "SecurePassword123!",
            Databases = new[]
            {
                "my_database",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.DbaasUser;
    import com.pulumi.edgecenter.DbaasUserArgs;
    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 example = new DbaasUser("example", DbaasUserArgs.builder()
                .clusterId("080bbca5-1234-1234-1234-0bccd6f8f1b0")
                .projectId(1.0)
                .regionId(1.0)
                .name("my_user")
                .password("SecurePassword123!")
                .databases("my_database")
                .build());
    
        }
    }
    
    resources:
      example:
        type: edgecenter:DbaasUser
        properties:
          clusterId: 080bbca5-1234-1234-1234-0bccd6f8f1b0
          projectId: 1
          regionId: 1
          name: my_user
          password: SecurePassword123!
          databases:
            - my_database
    
    Example coming soon!
    

    Create DbaasUser Resource

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

    Constructor syntax

    new DbaasUser(name: string, args: DbaasUserArgs, opts?: CustomResourceOptions);
    @overload
    def DbaasUser(resource_name: str,
                  args: DbaasUserArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DbaasUser(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cluster_id: Optional[str] = None,
                  password: Optional[str] = None,
                  databases: Optional[Sequence[str]] = None,
                  dbaas_user_id: Optional[str] = None,
                  name: Optional[str] = None,
                  project_id: Optional[float] = None,
                  project_name: Optional[str] = None,
                  region_id: Optional[float] = None,
                  region_name: Optional[str] = None)
    func NewDbaasUser(ctx *Context, name string, args DbaasUserArgs, opts ...ResourceOption) (*DbaasUser, error)
    public DbaasUser(string name, DbaasUserArgs args, CustomResourceOptions? opts = null)
    public DbaasUser(String name, DbaasUserArgs args)
    public DbaasUser(String name, DbaasUserArgs args, CustomResourceOptions options)
    
    type: edgecenter:DbaasUser
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "edgecenter_dbaasuser" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DbaasUserArgs
    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 DbaasUserArgs
    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 DbaasUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DbaasUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DbaasUserArgs
    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 dbaasUserResource = new Edgecenter.DbaasUser("dbaasUserResource", new()
    {
        ClusterId = "string",
        Password = "string",
        Databases = new[]
        {
            "string",
        },
        DbaasUserId = "string",
        Name = "string",
        ProjectId = 0,
        ProjectName = "string",
        RegionId = 0,
        RegionName = "string",
    });
    
    example, err := edgecenter.NewDbaasUser(ctx, "dbaasUserResource", &edgecenter.DbaasUserArgs{
    	ClusterId: pulumi.String("string"),
    	Password:  pulumi.String("string"),
    	Databases: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DbaasUserId: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ProjectId:   pulumi.Float64(0),
    	ProjectName: pulumi.String("string"),
    	RegionId:    pulumi.Float64(0),
    	RegionName:  pulumi.String("string"),
    })
    
    resource "edgecenter_dbaasuser" "dbaasUserResource" {
      cluster_id    = "string"
      password      = "string"
      databases     = ["string"]
      dbaas_user_id = "string"
      name          = "string"
      project_id    = 0
      project_name  = "string"
      region_id     = 0
      region_name   = "string"
    }
    
    var dbaasUserResource = new DbaasUser("dbaasUserResource", DbaasUserArgs.builder()
        .clusterId("string")
        .password("string")
        .databases("string")
        .dbaasUserId("string")
        .name("string")
        .projectId(0.0)
        .projectName("string")
        .regionId(0.0)
        .regionName("string")
        .build());
    
    dbaas_user_resource = edgecenter.DbaasUser("dbaasUserResource",
        cluster_id="string",
        password="string",
        databases=["string"],
        dbaas_user_id="string",
        name="string",
        project_id=float(0),
        project_name="string",
        region_id=float(0),
        region_name="string")
    
    const dbaasUserResource = new edgecenter.DbaasUser("dbaasUserResource", {
        clusterId: "string",
        password: "string",
        databases: ["string"],
        dbaasUserId: "string",
        name: "string",
        projectId: 0,
        projectName: "string",
        regionId: 0,
        regionName: "string",
    });
    
    type: edgecenter:DbaasUser
    properties:
        clusterId: string
        databases:
            - string
        dbaasUserId: string
        name: string
        password: string
        projectId: 0
        projectName: string
        regionId: 0
        regionName: string
    

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

    ClusterId string
    Password string
    Databases List<string>
    DbaasUserId string
    The ID of this resource.
    Name string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    ClusterId string
    Password string
    Databases []string
    DbaasUserId string
    The ID of this resource.
    Name string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    cluster_id string
    password string
    databases list(string)
    dbaas_user_id string
    The ID of this resource.
    name string
    project_id number
    project_name string
    region_id number
    region_name string
    clusterId String
    password String
    databases List<String>
    dbaasUserId String
    The ID of this resource.
    name String
    projectId Double
    projectName String
    regionId Double
    regionName String
    clusterId string
    password string
    databases string[]
    dbaasUserId string
    The ID of this resource.
    name string
    projectId number
    projectName string
    regionId number
    regionName string
    cluster_id str
    password str
    databases Sequence[str]
    dbaas_user_id str
    The ID of this resource.
    name str
    project_id float
    project_name str
    region_id float
    region_name str
    clusterId String
    password String
    databases List<String>
    dbaasUserId String
    The ID of this resource.
    name String
    projectId Number
    projectName String
    regionId Number
    regionName String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DbaasUser 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 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 DbaasUser Resource

    Get an existing DbaasUser 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?: DbaasUserState, opts?: CustomResourceOptions): DbaasUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            databases: Optional[Sequence[str]] = None,
            dbaas_user_id: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            project_id: Optional[float] = None,
            project_name: Optional[str] = None,
            region_id: Optional[float] = None,
            region_name: Optional[str] = None) -> DbaasUser
    func GetDbaasUser(ctx *Context, name string, id IDInput, state *DbaasUserState, opts ...ResourceOption) (*DbaasUser, error)
    public static DbaasUser Get(string name, Input<string> id, DbaasUserState? state, CustomResourceOptions? opts = null)
    public static DbaasUser get(String name, Output<String> id, DbaasUserState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:DbaasUser    get:      id: ${id}
    import {
      to = edgecenter_dbaasuser.example
      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:
    ClusterId string
    Databases List<string>
    DbaasUserId string
    The ID of this resource.
    Name string
    Password string
    ProjectId double
    ProjectName string
    RegionId double
    RegionName string
    ClusterId string
    Databases []string
    DbaasUserId string
    The ID of this resource.
    Name string
    Password string
    ProjectId float64
    ProjectName string
    RegionId float64
    RegionName string
    cluster_id string
    databases list(string)
    dbaas_user_id string
    The ID of this resource.
    name string
    password string
    project_id number
    project_name string
    region_id number
    region_name string
    clusterId String
    databases List<String>
    dbaasUserId String
    The ID of this resource.
    name String
    password String
    projectId Double
    projectName String
    regionId Double
    regionName String
    clusterId string
    databases string[]
    dbaasUserId string
    The ID of this resource.
    name string
    password string
    projectId number
    projectName string
    regionId number
    regionName string
    cluster_id str
    databases Sequence[str]
    dbaas_user_id str
    The ID of this resource.
    name str
    password str
    project_id float
    project_name str
    region_id float
    region_name str
    clusterId String
    databases List<String>
    dbaasUserId String
    The ID of this resource.
    name String
    password String
    projectId Number
    projectName String
    regionId Number
    regionName String

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    Viewing docs for edgecenter 0.13.0
    published on Tuesday, Jun 16, 2026 by edge-center

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial