1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDcdbOrders
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getDcdbOrders

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of dcdb orders

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orders = tencentcloud.getDcdbOrders({
        dealNames: ["2023061224903413767xxxx"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    orders = tencentcloud.get_dcdb_orders(deal_names=["2023061224903413767xxxx"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetDcdbOrders(ctx, &tencentcloud.GetDcdbOrdersArgs{
    			DealNames: []string{
    				"2023061224903413767xxxx",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var orders = Tencentcloud.GetDcdbOrders.Invoke(new()
        {
            DealNames = new[]
            {
                "2023061224903413767xxxx",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDcdbOrdersArgs;
    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 orders = TencentcloudFunctions.getDcdbOrders(GetDcdbOrdersArgs.builder()
                .dealNames("2023061224903413767xxxx")
                .build());
    
        }
    }
    
    variables:
      orders:
        fn::invoke:
          function: tencentcloud:getDcdbOrders
          arguments:
            dealNames:
              - 2023061224903413767xxxx
    

    Using getDcdbOrders

    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 getDcdbOrders(args: GetDcdbOrdersArgs, opts?: InvokeOptions): Promise<GetDcdbOrdersResult>
    function getDcdbOrdersOutput(args: GetDcdbOrdersOutputArgs, opts?: InvokeOptions): Output<GetDcdbOrdersResult>
    def get_dcdb_orders(deal_names: Optional[Sequence[str]] = None,
                        id: Optional[str] = None,
                        result_output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDcdbOrdersResult
    def get_dcdb_orders_output(deal_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        result_output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDcdbOrdersResult]
    func GetDcdbOrders(ctx *Context, args *GetDcdbOrdersArgs, opts ...InvokeOption) (*GetDcdbOrdersResult, error)
    func GetDcdbOrdersOutput(ctx *Context, args *GetDcdbOrdersOutputArgs, opts ...InvokeOption) GetDcdbOrdersResultOutput

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

    public static class GetDcdbOrders 
    {
        public static Task<GetDcdbOrdersResult> InvokeAsync(GetDcdbOrdersArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbOrdersResult> Invoke(GetDcdbOrdersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbOrdersResult> getDcdbOrders(GetDcdbOrdersArgs args, InvokeOptions options)
    public static Output<GetDcdbOrdersResult> getDcdbOrders(GetDcdbOrdersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbOrders:getDcdbOrders
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DealNames List<string>
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    Id string
    ResultOutputFile string
    Used to save results.
    DealNames []string
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    Id string
    ResultOutputFile string
    Used to save results.
    dealNames List<String>
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    id String
    resultOutputFile String
    Used to save results.
    dealNames string[]
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    id string
    resultOutputFile string
    Used to save results.
    deal_names Sequence[str]
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    id str
    result_output_file str
    Used to save results.
    dealNames List<String>
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbOrders Result

    The following output properties are available:

    DealNames List<string>
    Deals List<GetDcdbOrdersDeal>
    Order information list.
    Id string
    ResultOutputFile string
    DealNames []string
    Deals []GetDcdbOrdersDeal
    Order information list.
    Id string
    ResultOutputFile string
    dealNames List<String>
    deals List<GetDcdbOrdersDeal>
    Order information list.
    id String
    resultOutputFile String
    dealNames string[]
    deals GetDcdbOrdersDeal[]
    Order information list.
    id string
    resultOutputFile string
    deal_names Sequence[str]
    deals Sequence[GetDcdbOrdersDeal]
    Order information list.
    id str
    result_output_file str
    dealNames List<String>
    deals List<Property Map>
    Order information list.
    id String
    resultOutputFile String

    Supporting Types

    GetDcdbOrdersDeal

    Count double
    Number of items.
    DealName string
    Order number.
    FlowId double
    ID of the associated process, which can be used to query the process execution status.
    InstanceIds List<string>
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    OwnerUin string
    Account.
    PayMode double
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).
    Count float64
    Number of items.
    DealName string
    Order number.
    FlowId float64
    ID of the associated process, which can be used to query the process execution status.
    InstanceIds []string
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    OwnerUin string
    Account.
    PayMode float64
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).
    count Double
    Number of items.
    dealName String
    Order number.
    flowId Double
    ID of the associated process, which can be used to query the process execution status.
    instanceIds List<String>
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    ownerUin String
    Account.
    payMode Double
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).
    count number
    Number of items.
    dealName string
    Order number.
    flowId number
    ID of the associated process, which can be used to query the process execution status.
    instanceIds string[]
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    ownerUin string
    Account.
    payMode number
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).
    count float
    Number of items.
    deal_name str
    Order number.
    flow_id float
    ID of the associated process, which can be used to query the process execution status.
    instance_ids Sequence[str]
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    owner_uin str
    Account.
    pay_mode float
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).
    count Number
    Number of items.
    dealName String
    Order number.
    flowId Number
    ID of the associated process, which can be used to query the process execution status.
    instanceIds List<String>
    The ID of the created instance, which is required only for the order that creates an instance.Note: This field may return null, indicating that no valid values can be obtained.
    ownerUin String
    Account.
    payMode Number
    Payment mode. Valid values: 0 (postpaid), 1 (prepaid).

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack