1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getLighthouseZone
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Use this data source to query detailed information of lighthouse zone

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zone = tencentcloud.getLighthouseZone({
        orderField: "ZONE",
        order: "ASC",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zone = tencentcloud.get_lighthouse_zone(order_field="ZONE",
        order="ASC")
    
    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.GetLighthouseZone(ctx, &tencentcloud.GetLighthouseZoneArgs{
    			OrderField: pulumi.StringRef("ZONE"),
    			Order:      pulumi.StringRef("ASC"),
    		}, 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 zone = Tencentcloud.GetLighthouseZone.Invoke(new()
        {
            OrderField = "ZONE",
            Order = "ASC",
        });
    
    });
    
    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.GetLighthouseZoneArgs;
    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 zone = TencentcloudFunctions.getLighthouseZone(GetLighthouseZoneArgs.builder()
                .orderField("ZONE")
                .order("ASC")
                .build());
    
        }
    }
    
    variables:
      zone:
        fn::invoke:
          function: tencentcloud:getLighthouseZone
          arguments:
            orderField: ZONE
            order: ASC
    
    Example coming soon!
    

    Using getLighthouseZone

    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 getLighthouseZone(args: GetLighthouseZoneArgs, opts?: InvokeOptions): Promise<GetLighthouseZoneResult>
    function getLighthouseZoneOutput(args: GetLighthouseZoneOutputArgs, opts?: InvokeOptions): Output<GetLighthouseZoneResult>
    def get_lighthouse_zone(id: Optional[str] = None,
                            order: Optional[str] = None,
                            order_field: Optional[str] = None,
                            result_output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetLighthouseZoneResult
    def get_lighthouse_zone_output(id: pulumi.Input[Optional[str]] = None,
                            order: pulumi.Input[Optional[str]] = None,
                            order_field: pulumi.Input[Optional[str]] = None,
                            result_output_file: pulumi.Input[Optional[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetLighthouseZoneResult]
    func GetLighthouseZone(ctx *Context, args *GetLighthouseZoneArgs, opts ...InvokeOption) (*GetLighthouseZoneResult, error)
    func GetLighthouseZoneOutput(ctx *Context, args *GetLighthouseZoneOutputArgs, opts ...InvokeOption) GetLighthouseZoneResultOutput

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

    public static class GetLighthouseZone 
    {
        public static Task<GetLighthouseZoneResult> InvokeAsync(GetLighthouseZoneArgs args, InvokeOptions? opts = null)
        public static Output<GetLighthouseZoneResult> Invoke(GetLighthouseZoneInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLighthouseZoneResult> getLighthouseZone(GetLighthouseZoneArgs args, InvokeOptions options)
    public static Output<GetLighthouseZoneResult> getLighthouseZone(GetLighthouseZoneArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getLighthouseZone:getLighthouseZone
      arguments:
        # arguments dictionary
    data "tencentcloud_getlighthousezone" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Order string
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    OrderField string
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    ResultOutputFile string
    Used to save results.
    Id string
    Order string
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    OrderField string
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    ResultOutputFile string
    Used to save results.
    id string
    order string
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    order_field string
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    result_output_file string
    Used to save results.
    id String
    order String
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    orderField String
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    resultOutputFile String
    Used to save results.
    id string
    order string
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    orderField string
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    resultOutputFile string
    Used to save results.
    id str
    order str
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    order_field str
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    result_output_file str
    Used to save results.
    id String
    order String
    Specifies how availability zones are listed. Valid values:

    • ASC: Ascending sort.
    • DESC: Descending sort. The default value is ASC.
    orderField String
    Sorting field. Valid values:

    • ZONE: Sort by the availability zone.
    • INSTANCE_DISPLAY_LABEL: Sort by visibility labels (HIDDEN, NORMAL and SELECTED). Default: [HIDDEN, NORMAL, SELECTED]. Sort by availability zone by default.
    resultOutputFile String
    Used to save results.

    getLighthouseZone Result

    The following output properties are available:

    id string
    zone_info_sets list(object)
    List of zone info.
    order string
    order_field string
    result_output_file string
    id String
    zoneInfoSets List<Property Map>
    List of zone info.
    order String
    orderField String
    resultOutputFile String

    Supporting Types

    GetLighthouseZoneZoneInfoSet

    InstanceDisplayLabel string
    Instance purchase page availability zone display label.
    Zone string
    Availability zone.
    ZoneName string
    Chinese name of availability zone.
    InstanceDisplayLabel string
    Instance purchase page availability zone display label.
    Zone string
    Availability zone.
    ZoneName string
    Chinese name of availability zone.
    instance_display_label string
    Instance purchase page availability zone display label.
    zone string
    Availability zone.
    zone_name string
    Chinese name of availability zone.
    instanceDisplayLabel String
    Instance purchase page availability zone display label.
    zone String
    Availability zone.
    zoneName String
    Chinese name of availability zone.
    instanceDisplayLabel string
    Instance purchase page availability zone display label.
    zone string
    Availability zone.
    zoneName string
    Chinese name of availability zone.
    instance_display_label str
    Instance purchase page availability zone display label.
    zone str
    Availability zone.
    zone_name str
    Chinese name of availability zone.
    instanceDisplayLabel String
    Instance purchase page availability zone display label.
    zone String
    Availability zone.
    zoneName String
    Chinese name of availability zone.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.