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

tencentcloud.getLighthouseZone

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 lighthouse zone

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zone = tencentcloud.getLighthouseZone({
        order: "ASC",
        orderField: "ZONE",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zone = tencentcloud.get_lighthouse_zone(order="ASC",
        order_field="ZONE")
    
    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{
    			Order:      pulumi.StringRef("ASC"),
    			OrderField: pulumi.StringRef("ZONE"),
    		}, 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()
        {
            Order = "ASC",
            OrderField = "ZONE",
        });
    
    });
    
    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()
                .order("ASC")
                .orderField("ZONE")
                .build());
    
        }
    }
    
    variables:
      zone:
        fn::invoke:
          function: tencentcloud:getLighthouseZone
          arguments:
            order: ASC
            orderField: ZONE
    

    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: Optional[pulumi.Input[str]] = None,
                            order: Optional[pulumi.Input[str]] = None,
                            order_field: Optional[pulumi.Input[str]] = None,
                            result_output_file: Optional[pulumi.Input[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

    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.
    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
    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.
    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack