1. Packages
  2. Packages
  3. Edgecenter Provider
  4. API Docs
  5. getDbaasClusters
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 cluster data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const example = edgecenter.getDbaasClusters({
        projectId: 1,
        regionId: 1,
        name: "cluster-example",
    });
    export const view = example;
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    example = edgecenter.get_dbaas_clusters(project_id=1,
        region_id=1,
        name="cluster-example")
    pulumi.export("view", example)
    
    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 {
    		example, err := edgecenter.GetDbaasClusters(ctx, &edgecenter.GetDbaasClustersArgs{
    			ProjectId: pulumi.Float64Ref(1),
    			RegionId:  pulumi.Float64Ref(1),
    			Name:      pulumi.StringRef("cluster-example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("view", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Edgecenter.GetDbaasClusters.Invoke(new()
        {
            ProjectId = 1,
            RegionId = 1,
            Name = "cluster-example",
        });
    
        return new Dictionary<string, object?>
        {
            ["view"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetDbaasClustersArgs;
    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) {
            final var example = EdgecenterFunctions.getDbaasClusters(GetDbaasClustersArgs.builder()
                .projectId(1)
                .regionId(1)
                .name("cluster-example")
                .build());
    
            ctx.export("view", example);
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: edgecenter:getDbaasClusters
          arguments:
            projectId: 1
            regionId: 1
            name: cluster-example
    outputs:
      view: ${example}
    
    Example coming soon!
    

    Using getDbaasClusters

    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 getDbaasClusters(args: GetDbaasClustersArgs, opts?: InvokeOptions): Promise<GetDbaasClustersResult>
    function getDbaasClustersOutput(args: GetDbaasClustersOutputArgs, opts?: InvokeOptions): Output<GetDbaasClustersResult>
    def get_dbaas_clusters(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,
                           opts: Optional[InvokeOptions] = None) -> GetDbaasClustersResult
    def get_dbaas_clusters_output(id: pulumi.Input[Optional[str]] = None,
                           name: pulumi.Input[Optional[str]] = None,
                           project_id: pulumi.Input[Optional[float]] = None,
                           project_name: pulumi.Input[Optional[str]] = None,
                           region_id: pulumi.Input[Optional[float]] = None,
                           region_name: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDbaasClustersResult]
    func GetDbaasClusters(ctx *Context, args *GetDbaasClustersArgs, opts ...InvokeOption) (*GetDbaasClustersResult, error)
    func GetDbaasClustersOutput(ctx *Context, args *GetDbaasClustersOutputArgs, opts ...InvokeOption) GetDbaasClustersResultOutput

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

    public static class GetDbaasClusters 
    {
        public static Task<GetDbaasClustersResult> InvokeAsync(GetDbaasClustersArgs args, InvokeOptions? opts = null)
        public static Output<GetDbaasClustersResult> Invoke(GetDbaasClustersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbaasClustersResult> getDbaasClusters(GetDbaasClustersArgs args, InvokeOptions options)
    public static Output<GetDbaasClustersResult> getDbaasClusters(GetDbaasClustersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getDbaasClusters:getDbaasClusters
      arguments:
        # arguments dictionary
    data "edgecenter_getdbaasclusters" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    Name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    Id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    Name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    project_id number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    id String
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name String
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    id str
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name str
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    id String
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name String
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    getDbaasClusters Result

    The following output properties are available:

    ConnectionInfos List<GetDbaasClustersConnectionInfo>
    CreatedAt string
    Dbms List<GetDbaasClustersDbm>
    Description string
    Flavor string
    HighAvailability bool
    Interfaces List<GetDbaasClustersInterface>
    Status string
    TaskId string
    UpdatedAt string
    Volumes List<GetDbaasClustersVolume>
    Id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    Name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    ProjectId double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    ConnectionInfos []GetDbaasClustersConnectionInfo
    CreatedAt string
    Dbms []GetDbaasClustersDbm
    Description string
    Flavor string
    HighAvailability bool
    Interfaces []GetDbaasClustersInterface
    Status string
    TaskId string
    UpdatedAt string
    Volumes []GetDbaasClustersVolume
    Id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    Name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    ProjectId float64
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    ProjectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    RegionId float64
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    RegionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    connection_infos list(object)
    created_at string
    dbms list(object)
    description string
    flavor string
    high_availability bool
    interfaces list(object)
    status string
    task_id string
    updated_at string
    volumes list(object)
    id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    project_id number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    connectionInfos List<GetDbaasClustersConnectionInfo>
    createdAt String
    dbms List<GetDbaasClustersDbm>
    description String
    flavor String
    highAvailability Boolean
    interfaces List<GetDbaasClustersInterface>
    status String
    taskId String
    updatedAt String
    volumes List<GetDbaasClustersVolume>
    id String
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name String
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId Double
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Double
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    connectionInfos GetDbaasClustersConnectionInfo[]
    createdAt string
    dbms GetDbaasClustersDbm[]
    description string
    flavor string
    highAvailability boolean
    interfaces GetDbaasClustersInterface[]
    status string
    taskId string
    updatedAt string
    volumes GetDbaasClustersVolume[]
    id string
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name string
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName string
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName string
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    connection_infos Sequence[GetDbaasClustersConnectionInfo]
    created_at str
    dbms Sequence[GetDbaasClustersDbm]
    description str
    flavor str
    high_availability bool
    interfaces Sequence[GetDbaasClustersInterface]
    status str
    task_id str
    updated_at str
    volumes Sequence[GetDbaasClustersVolume]
    id str
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name str
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    project_id float
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    project_name str
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    region_id float
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    region_name str
    The name of the region. Either 'regionid' or 'regionname' must be specified.
    connectionInfos List<Property Map>
    createdAt String
    dbms List<Property Map>
    description String
    flavor String
    highAvailability Boolean
    interfaces List<Property Map>
    status String
    taskId String
    updatedAt String
    volumes List<Property Map>
    id String
    The ID of the DBaaS cluster. Either 'id' or 'name' must be specified.
    name String
    The name of the DBaaS cluster. Either 'id' or 'name' must be specified.
    projectId Number
    The uuid of the project. Either 'projectid' or 'projectname' must be specified.
    projectName String
    The name of the project. Either 'projectid' or 'projectname' must be specified.
    regionId Number
    The uuid of the region. Either 'regionid' or 'regionname' must be specified.
    regionName String
    The name of the region. Either 'regionid' or 'regionname' must be specified.

    Supporting Types

    GetDbaasClustersConnectionInfo

    Host string
    Port double
    Host string
    Port float64
    host string
    port number
    host String
    port Double
    host string
    port number
    host str
    port float
    host String
    port Number

    GetDbaasClustersDbm

    Type string
    Version string
    Type string
    Version string
    type string
    version string
    type String
    version String
    type string
    version string
    type str
    version str
    type String
    version String

    GetDbaasClustersInterface

    NetworkId string
    SubnetId string
    NetworkId string
    SubnetId string
    network_id string
    subnet_id string
    networkId String
    subnetId String
    networkId string
    subnetId string
    networkId String
    subnetId String

    GetDbaasClustersVolume

    VolumeSize double
    VolumeType string
    VolumeSize float64
    VolumeType string
    volumeSize Double
    volumeType String
    volumeSize number
    volumeType string
    volumeSize Number
    volumeType 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