published on Tuesday, Jun 16, 2026 by edge-center
published on Tuesday, Jun 16, 2026 by edge-center
Represent DBaaS database resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as edgecenter from "@pulumi/edgecenter";
const example = new edgecenter.DbaasDatabase("example", {
clusterId: "080bbca5-1234-1234-1234-0bccd6f8f1b0",
projectId: 1,
regionId: 1,
name: "my_database",
encoding: "UTF8",
locale: "en_US.UTF-8",
});
import pulumi
import pulumi_edgecenter as edgecenter
example = edgecenter.DbaasDatabase("example",
cluster_id="080bbca5-1234-1234-1234-0bccd6f8f1b0",
project_id=1,
region_id=1,
name="my_database",
encoding="UTF8",
locale="en_US.UTF-8")
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.NewDbaasDatabase(ctx, "example", &edgecenter.DbaasDatabaseArgs{
ClusterId: pulumi.String("080bbca5-1234-1234-1234-0bccd6f8f1b0"),
ProjectId: pulumi.Float64(1),
RegionId: pulumi.Float64(1),
Name: pulumi.String("my_database"),
Encoding: pulumi.String("UTF8"),
Locale: pulumi.String("en_US.UTF-8"),
})
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.DbaasDatabase("example", new()
{
ClusterId = "080bbca5-1234-1234-1234-0bccd6f8f1b0",
ProjectId = 1,
RegionId = 1,
Name = "my_database",
Encoding = "UTF8",
Locale = "en_US.UTF-8",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.DbaasDatabase;
import com.pulumi.edgecenter.DbaasDatabaseArgs;
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 DbaasDatabase("example", DbaasDatabaseArgs.builder()
.clusterId("080bbca5-1234-1234-1234-0bccd6f8f1b0")
.projectId(1.0)
.regionId(1.0)
.name("my_database")
.encoding("UTF8")
.locale("en_US.UTF-8")
.build());
}
}
resources:
example:
type: edgecenter:DbaasDatabase
properties:
clusterId: 080bbca5-1234-1234-1234-0bccd6f8f1b0
projectId: 1
regionId: 1
name: my_database
encoding: UTF8
locale: en_US.UTF-8
Example coming soon!
Create DbaasDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbaasDatabase(name: string, args: DbaasDatabaseArgs, opts?: CustomResourceOptions);@overload
def DbaasDatabase(resource_name: str,
args: DbaasDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbaasDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
dbaas_database_id: Optional[str] = None,
encoding: Optional[str] = None,
locale: 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 NewDbaasDatabase(ctx *Context, name string, args DbaasDatabaseArgs, opts ...ResourceOption) (*DbaasDatabase, error)public DbaasDatabase(string name, DbaasDatabaseArgs args, CustomResourceOptions? opts = null)
public DbaasDatabase(String name, DbaasDatabaseArgs args)
public DbaasDatabase(String name, DbaasDatabaseArgs args, CustomResourceOptions options)
type: edgecenter:DbaasDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "edgecenter_dbaasdatabase" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DbaasDatabaseArgs
- 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 DbaasDatabaseArgs
- 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 DbaasDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbaasDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbaasDatabaseArgs
- 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 dbaasDatabaseResource = new Edgecenter.DbaasDatabase("dbaasDatabaseResource", new()
{
ClusterId = "string",
DbaasDatabaseId = "string",
Encoding = "string",
Locale = "string",
Name = "string",
ProjectId = 0,
ProjectName = "string",
RegionId = 0,
RegionName = "string",
});
example, err := edgecenter.NewDbaasDatabase(ctx, "dbaasDatabaseResource", &edgecenter.DbaasDatabaseArgs{
ClusterId: pulumi.String("string"),
DbaasDatabaseId: pulumi.String("string"),
Encoding: pulumi.String("string"),
Locale: 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_dbaasdatabase" "dbaasDatabaseResource" {
cluster_id = "string"
dbaas_database_id = "string"
encoding = "string"
locale = "string"
name = "string"
project_id = 0
project_name = "string"
region_id = 0
region_name = "string"
}
var dbaasDatabaseResource = new DbaasDatabase("dbaasDatabaseResource", DbaasDatabaseArgs.builder()
.clusterId("string")
.dbaasDatabaseId("string")
.encoding("string")
.locale("string")
.name("string")
.projectId(0.0)
.projectName("string")
.regionId(0.0)
.regionName("string")
.build());
dbaas_database_resource = edgecenter.DbaasDatabase("dbaasDatabaseResource",
cluster_id="string",
dbaas_database_id="string",
encoding="string",
locale="string",
name="string",
project_id=float(0),
project_name="string",
region_id=float(0),
region_name="string")
const dbaasDatabaseResource = new edgecenter.DbaasDatabase("dbaasDatabaseResource", {
clusterId: "string",
dbaasDatabaseId: "string",
encoding: "string",
locale: "string",
name: "string",
projectId: 0,
projectName: "string",
regionId: 0,
regionName: "string",
});
type: edgecenter:DbaasDatabase
properties:
clusterId: string
dbaasDatabaseId: string
encoding: string
locale: string
name: string
projectId: 0
projectName: string
regionId: 0
regionName: string
DbaasDatabase 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 DbaasDatabase resource accepts the following input properties:
- Cluster
Id string - Dbaas
Database stringId - The ID of this resource.
- Encoding string
- Locale string
- Name string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Cluster
Id string - Dbaas
Database stringId - The ID of this resource.
- Encoding string
- Locale string
- Name string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- cluster_
id string - dbaas_
database_ stringid - The ID of this resource.
- encoding string
- locale string
- name string
- project_
id number - project_
name string - region_
id number - region_
name string
- cluster
Id String - dbaas
Database StringId - The ID of this resource.
- encoding String
- locale String
- name String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- cluster
Id string - dbaas
Database stringId - The ID of this resource.
- encoding string
- locale string
- name string
- project
Id number - project
Name string - region
Id number - region
Name string
- cluster_
id str - dbaas_
database_ strid - The ID of this resource.
- encoding str
- locale str
- name str
- project_
id float - project_
name str - region_
id float - region_
name str
- cluster
Id String - dbaas
Database StringId - The ID of this resource.
- encoding String
- locale String
- name String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Outputs
All input properties are implicitly available as output properties. Additionally, the DbaasDatabase 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 DbaasDatabase Resource
Get an existing DbaasDatabase 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?: DbaasDatabaseState, opts?: CustomResourceOptions): DbaasDatabase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
dbaas_database_id: Optional[str] = None,
encoding: Optional[str] = None,
locale: 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) -> DbaasDatabasefunc GetDbaasDatabase(ctx *Context, name string, id IDInput, state *DbaasDatabaseState, opts ...ResourceOption) (*DbaasDatabase, error)public static DbaasDatabase Get(string name, Input<string> id, DbaasDatabaseState? state, CustomResourceOptions? opts = null)public static DbaasDatabase get(String name, Output<String> id, DbaasDatabaseState state, CustomResourceOptions options)resources: _: type: edgecenter:DbaasDatabase get: id: ${id}import {
to = edgecenter_dbaasdatabase.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.
- Cluster
Id string - Dbaas
Database stringId - The ID of this resource.
- Encoding string
- Locale string
- Name string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Cluster
Id string - Dbaas
Database stringId - The ID of this resource.
- Encoding string
- Locale string
- Name string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- cluster_
id string - dbaas_
database_ stringid - The ID of this resource.
- encoding string
- locale string
- name string
- project_
id number - project_
name string - region_
id number - region_
name string
- cluster
Id String - dbaas
Database StringId - The ID of this resource.
- encoding String
- locale String
- name String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- cluster
Id string - dbaas
Database stringId - The ID of this resource.
- encoding string
- locale string
- name string
- project
Id number - project
Name string - region
Id number - region
Name string
- cluster_
id str - dbaas_
database_ strid - The ID of this resource.
- encoding str
- locale str
- name str
- project_
id float - project_
name str - region_
id float - region_
name str
- cluster
Id String - dbaas
Database StringId - The ID of this resource.
- encoding String
- locale String
- name String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenterTerraform Provider.
published on Tuesday, Jun 16, 2026 by edge-center