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

tencentcloud.getMariadbOrders

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 mariadb orders

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const orders = tencentcloud.getMariadbOrders({
        dealName: "20230607164033835942781",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    orders = tencentcloud.get_mariadb_orders(deal_name="20230607164033835942781")
    
    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.GetMariadbOrders(ctx, &tencentcloud.GetMariadbOrdersArgs{
    			DealName: "20230607164033835942781",
    		}, 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.GetMariadbOrders.Invoke(new()
        {
            DealName = "20230607164033835942781",
        });
    
    });
    
    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.GetMariadbOrdersArgs;
    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.getMariadbOrders(GetMariadbOrdersArgs.builder()
                .dealName("20230607164033835942781")
                .build());
    
        }
    }
    
    variables:
      orders:
        fn::invoke:
          function: tencentcloud:getMariadbOrders
          arguments:
            dealName: '20230607164033835942781'
    

    Using getMariadbOrders

    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 getMariadbOrders(args: GetMariadbOrdersArgs, opts?: InvokeOptions): Promise<GetMariadbOrdersResult>
    function getMariadbOrdersOutput(args: GetMariadbOrdersOutputArgs, opts?: InvokeOptions): Output<GetMariadbOrdersResult>
    def get_mariadb_orders(deal_name: Optional[str] = None,
                           id: Optional[str] = None,
                           result_output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMariadbOrdersResult
    def get_mariadb_orders_output(deal_name: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           result_output_file: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMariadbOrdersResult]
    func GetMariadbOrders(ctx *Context, args *GetMariadbOrdersArgs, opts ...InvokeOption) (*GetMariadbOrdersResult, error)
    func GetMariadbOrdersOutput(ctx *Context, args *GetMariadbOrdersOutputArgs, opts ...InvokeOption) GetMariadbOrdersResultOutput

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

    public static class GetMariadbOrders 
    {
        public static Task<GetMariadbOrdersResult> InvokeAsync(GetMariadbOrdersArgs args, InvokeOptions? opts = null)
        public static Output<GetMariadbOrdersResult> Invoke(GetMariadbOrdersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMariadbOrdersResult> getMariadbOrders(GetMariadbOrdersArgs args, InvokeOptions options)
    public static Output<GetMariadbOrdersResult> getMariadbOrders(GetMariadbOrdersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMariadbOrders:getMariadbOrders
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DealName 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.
    DealName 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.
    dealName 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.
    dealName 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_name 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.
    dealName 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.

    getMariadbOrders Result

    The following output properties are available:

    DealName string
    Order number.
    Deals List<GetMariadbOrdersDeal>
    Order information list.
    Id string
    ResultOutputFile string
    DealName string
    Order number.
    Deals []GetMariadbOrdersDeal
    Order information list.
    Id string
    ResultOutputFile string
    dealName String
    Order number.
    deals List<GetMariadbOrdersDeal>
    Order information list.
    id String
    resultOutputFile String
    dealName string
    Order number.
    deals GetMariadbOrdersDeal[]
    Order information list.
    id string
    resultOutputFile string
    deal_name str
    Order number.
    deals Sequence[GetMariadbOrdersDeal]
    Order information list.
    id str
    result_output_file str
    dealName String
    Order number.
    deals List<Property Map>
    Order information list.
    id String
    resultOutputFile String

    Supporting Types

    GetMariadbOrdersDeal

    Count double
    Number of items.
    DealName string
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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
    List of long order numbers to be queried, which are returned for the APIs for creating, renewing, or scaling instances.
    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