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

flexibleengine.getDdmAccounts

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 accounts.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const ddmInstanceId = config.requireObject("ddmInstanceId");
    const accountName = config.requireObject("accountName");
    const test = flexibleengine.getDdmAccounts({
        instanceId: ddmInstanceId,
        name: accountName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    ddm_instance_id = config.require_object("ddmInstanceId")
    account_name = config.require_object("accountName")
    test = flexibleengine.get_ddm_accounts(instance_id=ddm_instance_id,
        name=account_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, "")
    		ddmInstanceId := cfg.RequireObject("ddmInstanceId")
    		accountName := cfg.RequireObject("accountName")
    		_, err := flexibleengine.GetDdmAccounts(ctx, &flexibleengine.GetDdmAccountsArgs{
    			InstanceId: ddmInstanceId,
    			Name:       pulumi.StringRef(accountName),
    		}, 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 ddmInstanceId = config.RequireObject<dynamic>("ddmInstanceId");
        var accountName = config.RequireObject<dynamic>("accountName");
        var test = Flexibleengine.GetDdmAccounts.Invoke(new()
        {
            InstanceId = ddmInstanceId,
            Name = accountName,
        });
    
    });
    
    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.GetDdmAccountsArgs;
    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 ddmInstanceId = config.get("ddmInstanceId");
            final var accountName = config.get("accountName");
            final var test = FlexibleengineFunctions.getDdmAccounts(GetDdmAccountsArgs.builder()
                .instanceId(ddmInstanceId)
                .name(accountName)
                .build());
    
        }
    }
    
    configuration:
      ddmInstanceId:
        type: dynamic
      accountName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getDdmAccounts
          arguments:
            instanceId: ${ddmInstanceId}
            name: ${accountName}
    

    Using getDdmAccounts

    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 getDdmAccounts(args: GetDdmAccountsArgs, opts?: InvokeOptions): Promise<GetDdmAccountsResult>
    function getDdmAccountsOutput(args: GetDdmAccountsOutputArgs, opts?: InvokeOptions): Output<GetDdmAccountsResult>
    def get_ddm_accounts(id: Optional[str] = None,
                         instance_id: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None,
                         status: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDdmAccountsResult
    def get_ddm_accounts_output(id: Optional[pulumi.Input[str]] = None,
                         instance_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[GetDdmAccountsResult]
    func GetDdmAccounts(ctx *Context, args *GetDdmAccountsArgs, opts ...InvokeOption) (*GetDdmAccountsResult, error)
    func GetDdmAccountsOutput(ctx *Context, args *GetDdmAccountsOutputArgs, opts ...InvokeOption) GetDdmAccountsResultOutput

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

    public static class GetDdmAccounts 
    {
        public static Task<GetDdmAccountsResult> InvokeAsync(GetDdmAccountsArgs args, InvokeOptions? opts = null)
        public static Output<GetDdmAccountsResult> Invoke(GetDdmAccountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDdmAccountsResult> getDdmAccounts(GetDdmAccountsArgs args, InvokeOptions options)
    public static Output<GetDdmAccountsResult> getDdmAccounts(GetDdmAccountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDdmAccounts:getDdmAccounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the ID of DDM instance.
    Id string
    The resource ID.
    Name string
    Specifies the name of the DDM account.
    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 DDM account.
    InstanceId string
    Specifies the ID of DDM instance.
    Id string
    The resource ID.
    Name string
    Specifies the name of the DDM account.
    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 DDM account.
    instanceId String
    Specifies the ID of DDM instance.
    id String
    The resource ID.
    name String
    Specifies the name of the DDM account.
    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 DDM account.
    instanceId string
    Specifies the ID of DDM instance.
    id string
    The resource ID.
    name string
    Specifies the name of the DDM account.
    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 DDM account.
    instance_id str
    Specifies the ID of DDM instance.
    id str
    The resource ID.
    name str
    Specifies the name of the DDM account.
    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 DDM account.
    instanceId String
    Specifies the ID of DDM instance.
    id String
    The resource ID.
    name String
    Specifies the name of the DDM account.
    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 DDM account.

    getDdmAccounts Result

    The following output properties are available:

    Accounts List<GetDdmAccountsAccount>
    Indicates the list of DDM account. The Account structure is documented below.
    Id string
    The resource ID.
    InstanceId string
    Region string
    Name string
    Indicates the name of the associated schema.
    Status string
    Indicates the status of the DDM account.
    Accounts []GetDdmAccountsAccount
    Indicates the list of DDM account. The Account structure is documented below.
    Id string
    The resource ID.
    InstanceId string
    Region string
    Name string
    Indicates the name of the associated schema.
    Status string
    Indicates the status of the DDM account.
    accounts List<GetDdmAccountsAccount>
    Indicates the list of DDM account. The Account structure is documented below.
    id String
    The resource ID.
    instanceId String
    region String
    name String
    Indicates the name of the associated schema.
    status String
    Indicates the status of the DDM account.
    accounts GetDdmAccountsAccount[]
    Indicates the list of DDM account. The Account structure is documented below.
    id string
    The resource ID.
    instanceId string
    region string
    name string
    Indicates the name of the associated schema.
    status string
    Indicates the status of the DDM account.
    accounts Sequence[GetDdmAccountsAccount]
    Indicates the list of DDM account. The Account structure is documented below.
    id str
    The resource ID.
    instance_id str
    region str
    name str
    Indicates the name of the associated schema.
    status str
    Indicates the status of the DDM account.
    accounts List<Property Map>
    Indicates the list of DDM account. The Account structure is documented below.
    id String
    The resource ID.
    instanceId String
    region String
    name String
    Indicates the name of the associated schema.
    status String
    Indicates the status of the DDM account.

    Supporting Types

    GetDdmAccountsAccount

    Description string
    Indicates the schema description.
    Name string
    Specifies the name of the DDM account.
    Permissions List<string>
    Indicates the basic permissions of the DDM account.
    Schemas List<GetDdmAccountsAccountSchema>
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    Status string
    Specifies the status of the DDM account.
    Description string
    Indicates the schema description.
    Name string
    Specifies the name of the DDM account.
    Permissions []string
    Indicates the basic permissions of the DDM account.
    Schemas []GetDdmAccountsAccountSchema
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    Status string
    Specifies the status of the DDM account.
    description String
    Indicates the schema description.
    name String
    Specifies the name of the DDM account.
    permissions List<String>
    Indicates the basic permissions of the DDM account.
    schemas List<GetDdmAccountsAccountSchema>
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    status String
    Specifies the status of the DDM account.
    description string
    Indicates the schema description.
    name string
    Specifies the name of the DDM account.
    permissions string[]
    Indicates the basic permissions of the DDM account.
    schemas GetDdmAccountsAccountSchema[]
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    status string
    Specifies the status of the DDM account.
    description str
    Indicates the schema description.
    name str
    Specifies the name of the DDM account.
    permissions Sequence[str]
    Indicates the basic permissions of the DDM account.
    schemas Sequence[GetDdmAccountsAccountSchema]
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    status str
    Specifies the status of the DDM account.
    description String
    Indicates the schema description.
    name String
    Specifies the name of the DDM account.
    permissions List<String>
    Indicates the basic permissions of the DDM account.
    schemas List<Property Map>
    Indicates the schemas that associated with the account. The Schema structure is documented below.
    status String
    Specifies the status of the DDM account.

    GetDdmAccountsAccountSchema

    Description string
    Indicates the schema description.
    Name string
    Specifies the name of the DDM account.
    Description string
    Indicates the schema description.
    Name string
    Specifies the name of the DDM account.
    description String
    Indicates the schema description.
    name String
    Specifies the name of the DDM account.
    description string
    Indicates the schema description.
    name string
    Specifies the name of the DDM account.
    description str
    Indicates the schema description.
    name str
    Specifies the name of the DDM account.
    description String
    Indicates the schema description.
    name String
    Specifies the name of the DDM account.

    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