1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDdmInstances
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDdmInstances

Explore with Pulumi AI

Use this data source to get the list of DDM instances.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const instanceName = config.requireObject("instanceName");
const test = flexibleengine.getDdmInstances({
    name: instanceName,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
instance_name = config.require_object("instanceName")
test = flexibleengine.get_ddm_instances(name=instance_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		instanceName := cfg.RequireObject("instanceName")
		_, err := flexibleengine.GetDdmInstances(ctx, &flexibleengine.GetDdmInstancesArgs{
			Name: pulumi.StringRef(instanceName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var instanceName = config.RequireObject<dynamic>("instanceName");
    var test = Flexibleengine.GetDdmInstances.Invoke(new()
    {
        Name = instanceName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetDdmInstancesArgs;
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 config = ctx.config();
        final var instanceName = config.get("instanceName");
        final var test = FlexibleengineFunctions.getDdmInstances(GetDdmInstancesArgs.builder()
            .name(instanceName)
            .build());

    }
}
Copy
configuration:
  instanceName:
    type: dynamic
variables:
  test:
    fn::invoke:
      function: flexibleengine:getDdmInstances
      arguments:
        name: ${instanceName}
Copy

Using getDdmInstances

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 getDdmInstances(args: GetDdmInstancesArgs, opts?: InvokeOptions): Promise<GetDdmInstancesResult>
function getDdmInstancesOutput(args: GetDdmInstancesOutputArgs, opts?: InvokeOptions): Output<GetDdmInstancesResult>
Copy
def get_ddm_instances(engine_version: Optional[str] = None,
                      enterprise_project_id: Optional[str] = None,
                      id: Optional[str] = None,
                      name: Optional[str] = None,
                      region: Optional[str] = None,
                      status: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDdmInstancesResult
def get_ddm_instances_output(engine_version: Optional[pulumi.Input[str]] = None,
                      enterprise_project_id: Optional[pulumi.Input[str]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      region: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDdmInstancesResult]
Copy
func GetDdmInstances(ctx *Context, args *GetDdmInstancesArgs, opts ...InvokeOption) (*GetDdmInstancesResult, error)
func GetDdmInstancesOutput(ctx *Context, args *GetDdmInstancesOutputArgs, opts ...InvokeOption) GetDdmInstancesResultOutput
Copy

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

public static class GetDdmInstances 
{
    public static Task<GetDdmInstancesResult> InvokeAsync(GetDdmInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetDdmInstancesResult> Invoke(GetDdmInstancesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDdmInstancesResult> getDdmInstances(GetDdmInstancesArgs args, InvokeOptions options)
public static Output<GetDdmInstancesResult> getDdmInstances(GetDdmInstancesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getDdmInstances:getDdmInstances
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EngineVersion string
Specifies the engine version.
EnterpriseProjectId string
Specifies the enterprise project id.
Id string
The resource ID.
Name string
Specifies the name of the instance.
Region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
Status string
Specifies the status of the instance.
EngineVersion string
Specifies the engine version.
EnterpriseProjectId string
Specifies the enterprise project id.
Id string
The resource ID.
Name string
Specifies the name of the instance.
Region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
Status string
Specifies the status of the instance.
engineVersion String
Specifies the engine version.
enterpriseProjectId String
Specifies the enterprise project id.
id String
The resource ID.
name String
Specifies the name of the instance.
region String
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
status String
Specifies the status of the instance.
engineVersion string
Specifies the engine version.
enterpriseProjectId string
Specifies the enterprise project id.
id string
The resource ID.
name string
Specifies the name of the instance.
region string
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
status string
Specifies the status of the instance.
engine_version str
Specifies the engine version.
enterprise_project_id str
Specifies the enterprise project id.
id str
The resource ID.
name str
Specifies the name of the instance.
region str
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
status str
Specifies the status of the instance.
engineVersion String
Specifies the engine version.
enterpriseProjectId String
Specifies the enterprise project id.
id String
The resource ID.
name String
Specifies the name of the instance.
region String
Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
status String
Specifies the status of the instance.

getDdmInstances Result

The following output properties are available:

Id string
The resource ID.
Instances List<GetDdmInstancesInstance>
Indicates the list of DDM instance. The Instance structure is documented below.
Region string
EngineVersion string
Indicates the engine version.
EnterpriseProjectId string
Indicates the enterprise project id.
Name string
Indicates the name of the DDM instance.
Status string
Indicates the status of the DDM instance.
Id string
The resource ID.
Instances []GetDdmInstancesInstance
Indicates the list of DDM instance. The Instance structure is documented below.
Region string
EngineVersion string
Indicates the engine version.
EnterpriseProjectId string
Indicates the enterprise project id.
Name string
Indicates the name of the DDM instance.
Status string
Indicates the status of the DDM instance.
id String
The resource ID.
instances List<GetDdmInstancesInstance>
Indicates the list of DDM instance. The Instance structure is documented below.
region String
engineVersion String
Indicates the engine version.
enterpriseProjectId String
Indicates the enterprise project id.
name String
Indicates the name of the DDM instance.
status String
Indicates the status of the DDM instance.
id string
The resource ID.
instances GetDdmInstancesInstance[]
Indicates the list of DDM instance. The Instance structure is documented below.
region string
engineVersion string
Indicates the engine version.
enterpriseProjectId string
Indicates the enterprise project id.
name string
Indicates the name of the DDM instance.
status string
Indicates the status of the DDM instance.
id str
The resource ID.
instances Sequence[GetDdmInstancesInstance]
Indicates the list of DDM instance. The Instance structure is documented below.
region str
engine_version str
Indicates the engine version.
enterprise_project_id str
Indicates the enterprise project id.
name str
Indicates the name of the DDM instance.
status str
Indicates the status of the DDM instance.
id String
The resource ID.
instances List<Property Map>
Indicates the list of DDM instance. The Instance structure is documented below.
region String
engineVersion String
Indicates the engine version.
enterpriseProjectId String
Indicates the enterprise project id.
name String
Indicates the name of the DDM instance.
status String
Indicates the status of the DDM instance.

Supporting Types

GetDdmInstancesInstance

AccessIp This property is required. string
Indicates the address for accessing the DDM instance.
AccessPort This property is required. string
Indicates the port for accessing the DDM instance.
AvailabilityZones This property is required. List<string>
Indicates the list of availability zones.
EngineVersion This property is required. string
Specifies the engine version.
EnterpriseProjectId This property is required. string
Specifies the enterprise project id.
Name This property is required. string
Specifies the name of the instance.
NodeNum This property is required. double
Indicates the number of nodes.
SecurityGroupId This property is required. string
Indicates the ID of a security group.
Status This property is required. string
Specifies the status of the instance.
SubnetId This property is required. string
Indicates the ID of a subnet.
VpcId This property is required. string
Indicates the ID of a VPC.
AccessIp This property is required. string
Indicates the address for accessing the DDM instance.
AccessPort This property is required. string
Indicates the port for accessing the DDM instance.
AvailabilityZones This property is required. []string
Indicates the list of availability zones.
EngineVersion This property is required. string
Specifies the engine version.
EnterpriseProjectId This property is required. string
Specifies the enterprise project id.
Name This property is required. string
Specifies the name of the instance.
NodeNum This property is required. float64
Indicates the number of nodes.
SecurityGroupId This property is required. string
Indicates the ID of a security group.
Status This property is required. string
Specifies the status of the instance.
SubnetId This property is required. string
Indicates the ID of a subnet.
VpcId This property is required. string
Indicates the ID of a VPC.
accessIp This property is required. String
Indicates the address for accessing the DDM instance.
accessPort This property is required. String
Indicates the port for accessing the DDM instance.
availabilityZones This property is required. List<String>
Indicates the list of availability zones.
engineVersion This property is required. String
Specifies the engine version.
enterpriseProjectId This property is required. String
Specifies the enterprise project id.
name This property is required. String
Specifies the name of the instance.
nodeNum This property is required. Double
Indicates the number of nodes.
securityGroupId This property is required. String
Indicates the ID of a security group.
status This property is required. String
Specifies the status of the instance.
subnetId This property is required. String
Indicates the ID of a subnet.
vpcId This property is required. String
Indicates the ID of a VPC.
accessIp This property is required. string
Indicates the address for accessing the DDM instance.
accessPort This property is required. string
Indicates the port for accessing the DDM instance.
availabilityZones This property is required. string[]
Indicates the list of availability zones.
engineVersion This property is required. string
Specifies the engine version.
enterpriseProjectId This property is required. string
Specifies the enterprise project id.
name This property is required. string
Specifies the name of the instance.
nodeNum This property is required. number
Indicates the number of nodes.
securityGroupId This property is required. string
Indicates the ID of a security group.
status This property is required. string
Specifies the status of the instance.
subnetId This property is required. string
Indicates the ID of a subnet.
vpcId This property is required. string
Indicates the ID of a VPC.
access_ip This property is required. str
Indicates the address for accessing the DDM instance.
access_port This property is required. str
Indicates the port for accessing the DDM instance.
availability_zones This property is required. Sequence[str]
Indicates the list of availability zones.
engine_version This property is required. str
Specifies the engine version.
enterprise_project_id This property is required. str
Specifies the enterprise project id.
name This property is required. str
Specifies the name of the instance.
node_num This property is required. float
Indicates the number of nodes.
security_group_id This property is required. str
Indicates the ID of a security group.
status This property is required. str
Specifies the status of the instance.
subnet_id This property is required. str
Indicates the ID of a subnet.
vpc_id This property is required. str
Indicates the ID of a VPC.
accessIp This property is required. String
Indicates the address for accessing the DDM instance.
accessPort This property is required. String
Indicates the port for accessing the DDM instance.
availabilityZones This property is required. List<String>
Indicates the list of availability zones.
engineVersion This property is required. String
Specifies the engine version.
enterpriseProjectId This property is required. String
Specifies the enterprise project id.
name This property is required. String
Specifies the name of the instance.
nodeNum This property is required. Number
Indicates the number of nodes.
securityGroupId This property is required. String
Indicates the ID of a security group.
status This property is required. String
Specifies the status of the instance.
subnetId This property is required. String
Indicates the ID of a subnet.
vpcId This property is required. String
Indicates the ID of a VPC.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.