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

tencentcloud.getMariadbSaleInfo

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 sale_info

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const saleInfo = tencentcloud.getMariadbSaleInfo({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    sale_info = tencentcloud.get_mariadb_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.GetMariadbSaleInfo(ctx, &tencentcloud.GetMariadbSaleInfoArgs{}, 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.GetMariadbSaleInfo.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.GetMariadbSaleInfoArgs;
    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.getMariadbSaleInfo();
    
        }
    }
    
    variables:
      saleInfo:
        fn::invoke:
          function: tencentcloud:getMariadbSaleInfo
          arguments: {}
    

    Using getMariadbSaleInfo

    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 getMariadbSaleInfo(args: GetMariadbSaleInfoArgs, opts?: InvokeOptions): Promise<GetMariadbSaleInfoResult>
    function getMariadbSaleInfoOutput(args: GetMariadbSaleInfoOutputArgs, opts?: InvokeOptions): Output<GetMariadbSaleInfoResult>
    def get_mariadb_sale_info(id: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetMariadbSaleInfoResult
    def get_mariadb_sale_info_output(id: Optional[pulumi.Input[str]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetMariadbSaleInfoResult]
    func GetMariadbSaleInfo(ctx *Context, args *GetMariadbSaleInfoArgs, opts ...InvokeOption) (*GetMariadbSaleInfoResult, error)
    func GetMariadbSaleInfoOutput(ctx *Context, args *GetMariadbSaleInfoOutputArgs, opts ...InvokeOption) GetMariadbSaleInfoResultOutput

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

    public static class GetMariadbSaleInfo 
    {
        public static Task<GetMariadbSaleInfoResult> InvokeAsync(GetMariadbSaleInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetMariadbSaleInfoResult> Invoke(GetMariadbSaleInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMariadbSaleInfoResult> getMariadbSaleInfo(GetMariadbSaleInfoArgs args, InvokeOptions options)
    public static Output<GetMariadbSaleInfoResult> getMariadbSaleInfo(GetMariadbSaleInfoArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMariadbSaleInfo:getMariadbSaleInfo
      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.

    getMariadbSaleInfo Result

    The following output properties are available:

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

    Supporting Types

    GetMariadbSaleInfoRegionList

    AvailableChoices List<GetMariadbSaleInfoRegionListAvailableChoice>
    available zone choice.
    Region string
    region name(en).
    RegionId double
    region id.
    RegionName string
    region name(zh).
    ZoneLists List<GetMariadbSaleInfoRegionListZoneList>
    list of az zone.
    AvailableChoices []GetMariadbSaleInfoRegionListAvailableChoice
    available zone choice.
    Region string
    region name(en).
    RegionId float64
    region id.
    RegionName string
    region name(zh).
    ZoneLists []GetMariadbSaleInfoRegionListZoneList
    list of az zone.
    availableChoices List<GetMariadbSaleInfoRegionListAvailableChoice>
    available zone choice.
    region String
    region name(en).
    regionId Double
    region id.
    regionName String
    region name(zh).
    zoneLists List<GetMariadbSaleInfoRegionListZoneList>
    list of az zone.
    availableChoices GetMariadbSaleInfoRegionListAvailableChoice[]
    available zone choice.
    region string
    region name(en).
    regionId number
    region id.
    regionName string
    region name(zh).
    zoneLists GetMariadbSaleInfoRegionListZoneList[]
    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.

    GetMariadbSaleInfoRegionListAvailableChoice

    GetMariadbSaleInfoRegionListAvailableChoiceMasterZone

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

    GetMariadbSaleInfoRegionListAvailableChoiceSlaveZone

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

    GetMariadbSaleInfoRegionListZoneList

    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