1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTeoZones
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getTeoZones

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Use this data source to query detailed information of teo zoneAvailablePlans

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const teoZones = tencentcloud.getTeoZones({
        filters: [
            {
                name: "zone-id",
                values: ["zone-39quuimqg8r6"],
            },
            {
                name: "tag-key",
                values: ["createdBy"],
            },
            {
                name: "tag-value",
                values: ["terraform"],
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    teo_zones = tencentcloud.get_teo_zones(filters=[
        {
            "name": "zone-id",
            "values": ["zone-39quuimqg8r6"],
        },
        {
            "name": "tag-key",
            "values": ["createdBy"],
        },
        {
            "name": "tag-value",
            "values": ["terraform"],
        },
    ])
    
    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.GetTeoZones(ctx, &tencentcloud.GetTeoZonesArgs{
    			Filters: []tencentcloud.GetTeoZonesFilter{
    				{
    					Name: "zone-id",
    					Values: []string{
    						"zone-39quuimqg8r6",
    					},
    				},
    				{
    					Name: "tag-key",
    					Values: []string{
    						"createdBy",
    					},
    				},
    				{
    					Name: "tag-value",
    					Values: []string{
    						"terraform",
    					},
    				},
    			},
    		}, 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 teoZones = Tencentcloud.GetTeoZones.Invoke(new()
        {
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetTeoZonesFilterInputArgs
                {
                    Name = "zone-id",
                    Values = new[]
                    {
                        "zone-39quuimqg8r6",
                    },
                },
                new Tencentcloud.Inputs.GetTeoZonesFilterInputArgs
                {
                    Name = "tag-key",
                    Values = new[]
                    {
                        "createdBy",
                    },
                },
                new Tencentcloud.Inputs.GetTeoZonesFilterInputArgs
                {
                    Name = "tag-value",
                    Values = new[]
                    {
                        "terraform",
                    },
                },
            },
        });
    
    });
    
    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.GetTeoZonesArgs;
    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 teoZones = TencentcloudFunctions.getTeoZones(GetTeoZonesArgs.builder()
                .filters(            
                    GetTeoZonesFilterArgs.builder()
                        .name("zone-id")
                        .values("zone-39quuimqg8r6")
                        .build(),
                    GetTeoZonesFilterArgs.builder()
                        .name("tag-key")
                        .values("createdBy")
                        .build(),
                    GetTeoZonesFilterArgs.builder()
                        .name("tag-value")
                        .values("terraform")
                        .build())
                .build());
    
        }
    }
    
    variables:
      teoZones:
        fn::invoke:
          function: tencentcloud:getTeoZones
          arguments:
            filters:
              - name: zone-id
                values:
                  - zone-39quuimqg8r6
              - name: tag-key
                values:
                  - createdBy
              - name: tag-value
                values:
                  - terraform
    

    Using getTeoZones

    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 getTeoZones(args: GetTeoZonesArgs, opts?: InvokeOptions): Promise<GetTeoZonesResult>
    function getTeoZonesOutput(args: GetTeoZonesOutputArgs, opts?: InvokeOptions): Output<GetTeoZonesResult>
    def get_teo_zones(direction: Optional[str] = None,
                      filters: Optional[Sequence[GetTeoZonesFilter]] = None,
                      id: Optional[str] = None,
                      order: Optional[str] = None,
                      result_output_file: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetTeoZonesResult
    def get_teo_zones_output(direction: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTeoZonesFilterArgs]]]] = None,
                      id: Optional[pulumi.Input[str]] = None,
                      order: Optional[pulumi.Input[str]] = None,
                      result_output_file: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetTeoZonesResult]
    func GetTeoZones(ctx *Context, args *GetTeoZonesArgs, opts ...InvokeOption) (*GetTeoZonesResult, error)
    func GetTeoZonesOutput(ctx *Context, args *GetTeoZonesOutputArgs, opts ...InvokeOption) GetTeoZonesResultOutput

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

    public static class GetTeoZones 
    {
        public static Task<GetTeoZonesResult> InvokeAsync(GetTeoZonesArgs args, InvokeOptions? opts = null)
        public static Output<GetTeoZonesResult> Invoke(GetTeoZonesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeoZonesResult> getTeoZones(GetTeoZonesArgs args, InvokeOptions options)
    public static Output<GetTeoZonesResult> getTeoZones(GetTeoZonesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTeoZones:getTeoZones
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Direction string
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    Filters List<GetTeoZonesFilter>
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    Id string
    Order string
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    ResultOutputFile string
    Used to save results.
    Direction string
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    Filters []GetTeoZonesFilter
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    Id string
    Order string
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    ResultOutputFile string
    Used to save results.
    direction String
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    filters List<GetTeoZonesFilter>
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    id String
    order String
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    resultOutputFile String
    Used to save results.
    direction string
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    filters GetTeoZonesFilter[]
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    id string
    order string
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    resultOutputFile string
    Used to save results.
    direction str
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    filters Sequence[GetTeoZonesFilter]
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    id str
    order str
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    result_output_file str
    Used to save results.
    direction String
    Sort direction. If the field value is a number, sort by the numeric value. If the field value is text, sort by the ascill code. Values include: asc: From the smallest to largest; desc: From the largest to smallest. Default value: desc.
    filters List<Property Map>
    Filter criteria. the maximum value of Filters.Values is 20. if this parameter is left empty, all site information authorized under the current appid will be returned. detailed filter criteria are as follows: zone-name: filter by site name; zone-id: filter by site id. the site id is in the format of zone-2noz78a8ev6k; status: filter by site status; tag-key: filter by tag key; tag-value: filter by tag value; alias-zone-name: filter by identical site identifier. when performing a fuzzy query, the fields that support filtering are named zone-name or alias-zone-name.
    id String
    order String
    Sort the returned results according to this field. Values include: type: Connection mode; area: Acceleration region; create-time: Creation time; zone-name: Site name; use-time: Last used time; active-status Effective status. Default value: create-time.
    resultOutputFile String
    Used to save results.

    getTeoZones Result

    The following output properties are available:

    Supporting Types

    GetTeoZonesFilter

    Name string
    Field to be filtered.
    Values List<string>
    Value of the filtered field.
    Fuzzy bool
    Whether to enable fuzzy query.
    Name string
    Field to be filtered.
    Values []string
    Value of the filtered field.
    Fuzzy bool
    Whether to enable fuzzy query.
    name String
    Field to be filtered.
    values List<String>
    Value of the filtered field.
    fuzzy Boolean
    Whether to enable fuzzy query.
    name string
    Field to be filtered.
    values string[]
    Value of the filtered field.
    fuzzy boolean
    Whether to enable fuzzy query.
    name str
    Field to be filtered.
    values Sequence[str]
    Value of the filtered field.
    fuzzy bool
    Whether to enable fuzzy query.
    name String
    Field to be filtered.
    values List<String>
    Value of the filtered field.
    fuzzy Boolean
    Whether to enable fuzzy query.

    GetTeoZonesZone

    GetTeoZonesZoneOwnershipVerification

    GetTeoZonesZoneOwnershipVerificationDnsVerification

    RecordType string
    RecordValue string
    Subdomain string
    RecordType string
    RecordValue string
    Subdomain string
    recordType String
    recordValue String
    subdomain String
    recordType string
    recordValue string
    subdomain string
    recordType String
    recordValue String
    subdomain String

    GetTeoZonesZoneOwnershipVerificationFileVerification

    Content string
    Path string
    Content string
    Path string
    content String
    path String
    content string
    path string
    content str
    path str
    content String
    path String

    GetTeoZonesZoneOwnershipVerificationNsVerification

    NameServers List<string>
    NameServers []string
    nameServers List<String>
    nameServers string[]
    name_servers Sequence[str]
    nameServers List<String>

    GetTeoZonesZoneResource

    Area string
    AutoRenewFlag double
    CreateTime string
    EnableTime string
    ExpireTime string
    Group string
    Id string
    PayMode double
    PlanId string
    Status string
    Svs List<GetTeoZonesZoneResourceSv>
    Type string
    ZoneNumber double
    Area string
    AutoRenewFlag float64
    CreateTime string
    EnableTime string
    ExpireTime string
    Group string
    Id string
    PayMode float64
    PlanId string
    Status string
    Svs []GetTeoZonesZoneResourceSv
    Type string
    ZoneNumber float64
    area String
    autoRenewFlag Double
    createTime String
    enableTime String
    expireTime String
    group String
    id String
    payMode Double
    planId String
    status String
    svs List<GetTeoZonesZoneResourceSv>
    type String
    zoneNumber Double
    area string
    autoRenewFlag number
    createTime string
    enableTime string
    expireTime string
    group string
    id string
    payMode number
    planId string
    status string
    svs GetTeoZonesZoneResourceSv[]
    type string
    zoneNumber number
    area String
    autoRenewFlag Number
    createTime String
    enableTime String
    expireTime String
    group String
    id String
    payMode Number
    planId String
    status String
    svs List<Property Map>
    type String
    zoneNumber Number

    GetTeoZonesZoneResourceSv

    InstanceId string
    Key string
    Pack string
    ProtectionSpecs string
    Value string
    InstanceId string
    Key string
    Pack string
    ProtectionSpecs string
    Value string
    instanceId String
    key String
    pack String
    protectionSpecs String
    value String
    instanceId string
    key string
    pack string
    protectionSpecs string
    value string
    instanceId String
    key String
    pack String
    protectionSpecs String
    value String

    GetTeoZonesZoneTag

    TagKey string
    TagValue string
    TagKey string
    TagValue string
    tagKey String
    tagValue String
    tagKey string
    tagValue string
    tagKey String
    tagValue String

    GetTeoZonesZoneVanityNameServer

    Servers List<string>
    Switch string
    Servers []string
    Switch string
    servers List<String>
    switch_ String
    servers string[]
    switch string
    servers Sequence[str]
    switch str
    servers List<String>
    switch String

    GetTeoZonesZoneVanityNameServersIp

    IPv4 string
    Name string
    Field to be filtered.
    IPv4 string
    Name string
    Field to be filtered.
    iPv4 String
    name String
    Field to be filtered.
    iPv4 string
    name string
    Field to be filtered.
    i_pv4 str
    name str
    Field to be filtered.
    iPv4 String
    name String
    Field to be filtered.

    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.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack