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

tencentcloud.getDcdbSaleInfo

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 sale_info

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const saleInfo = tencentcloud.getDcdbSaleInfo({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    sale_info = tencentcloud.get_dcdb_sale_info()
    
    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.GetDcdbSaleInfo(ctx, &tencentcloud.GetDcdbSaleInfoArgs{}, 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 saleInfo = Tencentcloud.GetDcdbSaleInfo.Invoke();
    
    });
    
    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.GetDcdbSaleInfoArgs;
    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 saleInfo = TencentcloudFunctions.getDcdbSaleInfo();
    
        }
    }
    
    variables:
      saleInfo:
        fn::invoke:
          function: tencentcloud:getDcdbSaleInfo
          arguments: {}
    

    Using getDcdbSaleInfo

    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 getDcdbSaleInfo(args: GetDcdbSaleInfoArgs, opts?: InvokeOptions): Promise<GetDcdbSaleInfoResult>
    function getDcdbSaleInfoOutput(args: GetDcdbSaleInfoOutputArgs, opts?: InvokeOptions): Output<GetDcdbSaleInfoResult>
    def get_dcdb_sale_info(id: Optional[str] = None,
                           result_output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDcdbSaleInfoResult
    def get_dcdb_sale_info_output(id: Optional[pulumi.Input[str]] = None,
                           result_output_file: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDcdbSaleInfoResult]
    func GetDcdbSaleInfo(ctx *Context, args *GetDcdbSaleInfoArgs, opts ...InvokeOption) (*GetDcdbSaleInfoResult, error)
    func GetDcdbSaleInfoOutput(ctx *Context, args *GetDcdbSaleInfoOutputArgs, opts ...InvokeOption) GetDcdbSaleInfoResultOutput

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

    public static class GetDcdbSaleInfo 
    {
        public static Task<GetDcdbSaleInfoResult> InvokeAsync(GetDcdbSaleInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbSaleInfoResult> Invoke(GetDcdbSaleInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbSaleInfoResult> getDcdbSaleInfo(GetDcdbSaleInfoArgs args, InvokeOptions options)
    public static Output<GetDcdbSaleInfoResult> getDcdbSaleInfo(GetDcdbSaleInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbSaleInfo:getDcdbSaleInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbSaleInfo Result

    The following output properties are available:

    Id string
    RegionLists List<GetDcdbSaleInfoRegionList>
    list of sale region info.
    ResultOutputFile string
    Id string
    RegionLists []GetDcdbSaleInfoRegionList
    list of sale region info.
    ResultOutputFile string
    id String
    regionLists List<GetDcdbSaleInfoRegionList>
    list of sale region info.
    resultOutputFile String
    id string
    regionLists GetDcdbSaleInfoRegionList[]
    list of sale region info.
    resultOutputFile string
    id String
    regionLists List<Property Map>
    list of sale region info.
    resultOutputFile String

    Supporting Types

    GetDcdbSaleInfoRegionList

    AvailableChoices List<GetDcdbSaleInfoRegionListAvailableChoice>
    available zone choice.
    Region string
    region name(en).
    RegionId double
    region id.
    RegionName string
    region name(zh).
    ZoneLists List<GetDcdbSaleInfoRegionListZoneList>
    list of az zone.
    AvailableChoices []GetDcdbSaleInfoRegionListAvailableChoice
    available zone choice.
    Region string
    region name(en).
    RegionId float64
    region id.
    RegionName string
    region name(zh).
    ZoneLists []GetDcdbSaleInfoRegionListZoneList
    list of az zone.
    availableChoices List<GetDcdbSaleInfoRegionListAvailableChoice>
    available zone choice.
    region String
    region name(en).
    regionId Double
    region id.
    regionName String
    region name(zh).
    zoneLists List<GetDcdbSaleInfoRegionListZoneList>
    list of az zone.
    availableChoices GetDcdbSaleInfoRegionListAvailableChoice[]
    available zone choice.
    region string
    region name(en).
    regionId number
    region id.
    regionName string
    region name(zh).
    zoneLists GetDcdbSaleInfoRegionListZoneList[]
    list of az zone.
    availableChoices List<Property Map>
    available zone choice.
    region String
    region name(en).
    regionId Number
    region id.
    regionName String
    region name(zh).
    zoneLists List<Property Map>
    list of az zone.

    GetDcdbSaleInfoRegionListAvailableChoice

    GetDcdbSaleInfoRegionListAvailableChoiceMasterZone

    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId double
    zone id.
    ZoneName string
    zone name(zh).
    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId float64
    zone id.
    ZoneName string
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Double
    zone id.
    zoneName String
    zone name(zh).
    onSale boolean
    is zone on sale.
    zone string
    zone name(en).
    zoneId number
    zone id.
    zoneName string
    zone name(zh).
    on_sale bool
    is zone on sale.
    zone str
    zone name(en).
    zone_id float
    zone id.
    zone_name str
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Number
    zone id.
    zoneName String
    zone name(zh).

    GetDcdbSaleInfoRegionListAvailableChoiceSlaveZone

    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId double
    zone id.
    ZoneName string
    zone name(zh).
    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId float64
    zone id.
    ZoneName string
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Double
    zone id.
    zoneName String
    zone name(zh).
    onSale boolean
    is zone on sale.
    zone string
    zone name(en).
    zoneId number
    zone id.
    zoneName string
    zone name(zh).
    on_sale bool
    is zone on sale.
    zone str
    zone name(en).
    zone_id float
    zone id.
    zone_name str
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Number
    zone id.
    zoneName String
    zone name(zh).

    GetDcdbSaleInfoRegionListZoneList

    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId double
    zone id.
    ZoneName string
    zone name(zh).
    OnSale bool
    is zone on sale.
    Zone string
    zone name(en).
    ZoneId float64
    zone id.
    ZoneName string
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Double
    zone id.
    zoneName String
    zone name(zh).
    onSale boolean
    is zone on sale.
    zone string
    zone name(en).
    zoneId number
    zone id.
    zoneName string
    zone name(zh).
    on_sale bool
    is zone on sale.
    zone str
    zone name(en).
    zone_id float
    zone id.
    zone_name str
    zone name(zh).
    onSale Boolean
    is zone on sale.
    zone String
    zone name(en).
    zoneId Number
    zone id.
    zoneName String
    zone name(zh).

    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