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

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    instance_name = config.require_object("instanceName")
    test = flexibleengine.get_ddm_instances(name=instance_name)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    configuration:
      instanceName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getDdmInstances
          arguments:
            name: ${instanceName}
    

    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>
    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]
    func GetDdmInstances(ctx *Context, args *GetDdmInstancesArgs, opts ...InvokeOption) (*GetDdmInstancesResult, error)
    func GetDdmInstancesOutput(ctx *Context, args *GetDdmInstancesOutputArgs, opts ...InvokeOption) GetDdmInstancesResultOutput

    > 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)
    }
    public static CompletableFuture<GetDdmInstancesResult> getDdmInstances(GetDdmInstancesArgs args, InvokeOptions options)
    public static Output<GetDdmInstancesResult> getDdmInstances(GetDdmInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDdmInstances:getDdmInstances
      arguments:
        # arguments dictionary

    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 string
    Indicates the address for accessing the DDM instance.
    AccessPort string
    Indicates the port for accessing the DDM instance.
    AvailabilityZones List<string>
    Indicates the list of availability zones.
    EngineVersion string
    Specifies the engine version.
    EnterpriseProjectId string
    Specifies the enterprise project id.
    Name string
    Specifies the name of the instance.
    NodeNum double
    Indicates the number of nodes.
    SecurityGroupId string
    Indicates the ID of a security group.
    Status string
    Specifies the status of the instance.
    SubnetId string
    Indicates the ID of a subnet.
    VpcId string
    Indicates the ID of a VPC.
    AccessIp string
    Indicates the address for accessing the DDM instance.
    AccessPort string
    Indicates the port for accessing the DDM instance.
    AvailabilityZones []string
    Indicates the list of availability zones.
    EngineVersion string
    Specifies the engine version.
    EnterpriseProjectId string
    Specifies the enterprise project id.
    Name string
    Specifies the name of the instance.
    NodeNum float64
    Indicates the number of nodes.
    SecurityGroupId string
    Indicates the ID of a security group.
    Status string
    Specifies the status of the instance.
    SubnetId string
    Indicates the ID of a subnet.
    VpcId string
    Indicates the ID of a VPC.
    accessIp String
    Indicates the address for accessing the DDM instance.
    accessPort String
    Indicates the port for accessing the DDM instance.
    availabilityZones List<String>
    Indicates the list of availability zones.
    engineVersion String
    Specifies the engine version.
    enterpriseProjectId String
    Specifies the enterprise project id.
    name String
    Specifies the name of the instance.
    nodeNum Double
    Indicates the number of nodes.
    securityGroupId String
    Indicates the ID of a security group.
    status String
    Specifies the status of the instance.
    subnetId String
    Indicates the ID of a subnet.
    vpcId String
    Indicates the ID of a VPC.
    accessIp string
    Indicates the address for accessing the DDM instance.
    accessPort string
    Indicates the port for accessing the DDM instance.
    availabilityZones string[]
    Indicates the list of availability zones.
    engineVersion string
    Specifies the engine version.
    enterpriseProjectId string
    Specifies the enterprise project id.
    name string
    Specifies the name of the instance.
    nodeNum number
    Indicates the number of nodes.
    securityGroupId string
    Indicates the ID of a security group.
    status string
    Specifies the status of the instance.
    subnetId string
    Indicates the ID of a subnet.
    vpcId string
    Indicates the ID of a VPC.
    access_ip str
    Indicates the address for accessing the DDM instance.
    access_port str
    Indicates the port for accessing the DDM instance.
    availability_zones Sequence[str]
    Indicates the list of availability zones.
    engine_version str
    Specifies the engine version.
    enterprise_project_id str
    Specifies the enterprise project id.
    name str
    Specifies the name of the instance.
    node_num float
    Indicates the number of nodes.
    security_group_id str
    Indicates the ID of a security group.
    status str
    Specifies the status of the instance.
    subnet_id str
    Indicates the ID of a subnet.
    vpc_id str
    Indicates the ID of a VPC.
    accessIp String
    Indicates the address for accessing the DDM instance.
    accessPort String
    Indicates the port for accessing the DDM instance.
    availabilityZones List<String>
    Indicates the list of availability zones.
    engineVersion String
    Specifies the engine version.
    enterpriseProjectId String
    Specifies the enterprise project id.
    name String
    Specifies the name of the instance.
    nodeNum Number
    Indicates the number of nodes.
    securityGroupId String
    Indicates the ID of a security group.
    status String
    Specifies the status of the instance.
    subnetId String
    Indicates the ID of a subnet.
    vpcId 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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud