1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustDnsLocations
Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi

cloudflare.getZeroTrustDnsLocations

Get Started
cloudflare logo
Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDnsLocations = cloudflare.getZeroTrustDnsLocations({
        accountId: "699d98642c564d2e855e9661899b7252",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dns_locations = cloudflare.get_zero_trust_dns_locations(account_id="699d98642c564d2e855e9661899b7252")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupZeroTrustDnsLocations(ctx, &cloudflare.LookupZeroTrustDnsLocationsArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustDnsLocations = Cloudflare.GetZeroTrustDnsLocations.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustDnsLocationsArgs;
    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 exampleZeroTrustDnsLocations = CloudflareFunctions.getZeroTrustDnsLocations(GetZeroTrustDnsLocationsArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDnsLocations:
        fn::invoke:
          function: cloudflare:getZeroTrustDnsLocations
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
    

    Using getZeroTrustDnsLocations

    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 getZeroTrustDnsLocations(args: GetZeroTrustDnsLocationsArgs, opts?: InvokeOptions): Promise<GetZeroTrustDnsLocationsResult>
    function getZeroTrustDnsLocationsOutput(args: GetZeroTrustDnsLocationsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDnsLocationsResult>
    def get_zero_trust_dns_locations(account_id: Optional[str] = None,
                                     max_items: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetZeroTrustDnsLocationsResult
    def get_zero_trust_dns_locations_output(account_id: Optional[pulumi.Input[str]] = None,
                                     max_items: Optional[pulumi.Input[int]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDnsLocationsResult]
    func LookupZeroTrustDnsLocations(ctx *Context, args *LookupZeroTrustDnsLocationsArgs, opts ...InvokeOption) (*LookupZeroTrustDnsLocationsResult, error)
    func LookupZeroTrustDnsLocationsOutput(ctx *Context, args *LookupZeroTrustDnsLocationsOutputArgs, opts ...InvokeOption) LookupZeroTrustDnsLocationsResultOutput

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

    public static class GetZeroTrustDnsLocations 
    {
        public static Task<GetZeroTrustDnsLocationsResult> InvokeAsync(GetZeroTrustDnsLocationsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDnsLocationsResult> Invoke(GetZeroTrustDnsLocationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDnsLocationsResult> getZeroTrustDnsLocations(GetZeroTrustDnsLocationsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDnsLocationsResult> getZeroTrustDnsLocations(GetZeroTrustDnsLocationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDnsLocations:getZeroTrustDnsLocations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    max_items int
    Max items to fetch, default: 1000
    accountId String
    maxItems Number
    Max items to fetch, default: 1000

    getZeroTrustDnsLocations Result

    The following output properties are available:

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetZeroTrustDnsLocationsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetZeroTrustDnsLocationsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetZeroTrustDnsLocationsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetZeroTrustDnsLocationsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetZeroTrustDnsLocationsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetZeroTrustDnsLocationsResult

    ClientDefault bool
    Indicate whether this location is the default location.
    CreatedAt string
    DnsDestinationIpsId string
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    DnsDestinationIpv6BlockId string
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    DohSubdomain string
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    EcsSupport bool
    Indicate whether the location must resolve EDNS queries.
    Endpoints GetZeroTrustDnsLocationsResultEndpoints
    Configure the destination endpoints for this location.
    Id string
    Ip string
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    Ipv4Destination string
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    Ipv4DestinationBackup string
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    Name string
    Specify the location name.
    Networks List<GetZeroTrustDnsLocationsResultNetwork>
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    UpdatedAt string
    ClientDefault bool
    Indicate whether this location is the default location.
    CreatedAt string
    DnsDestinationIpsId string
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    DnsDestinationIpv6BlockId string
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    DohSubdomain string
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    EcsSupport bool
    Indicate whether the location must resolve EDNS queries.
    Endpoints GetZeroTrustDnsLocationsResultEndpoints
    Configure the destination endpoints for this location.
    Id string
    Ip string
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    Ipv4Destination string
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    Ipv4DestinationBackup string
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    Name string
    Specify the location name.
    Networks []GetZeroTrustDnsLocationsResultNetwork
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    UpdatedAt string
    clientDefault Boolean
    Indicate whether this location is the default location.
    createdAt String
    dnsDestinationIpsId String
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId String
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    dohSubdomain String
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    ecsSupport Boolean
    Indicate whether the location must resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationsResultEndpoints
    Configure the destination endpoints for this location.
    id String
    ip String
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    ipv4Destination String
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    ipv4DestinationBackup String
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    name String
    Specify the location name.
    networks List<GetZeroTrustDnsLocationsResultNetwork>
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    updatedAt String
    clientDefault boolean
    Indicate whether this location is the default location.
    createdAt string
    dnsDestinationIpsId string
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId string
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    dohSubdomain string
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    ecsSupport boolean
    Indicate whether the location must resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationsResultEndpoints
    Configure the destination endpoints for this location.
    id string
    ip string
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    ipv4Destination string
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    ipv4DestinationBackup string
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    name string
    Specify the location name.
    networks GetZeroTrustDnsLocationsResultNetwork[]
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    updatedAt string
    client_default bool
    Indicate whether this location is the default location.
    created_at str
    dns_destination_ips_id str
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    dns_destination_ipv6_block_id str
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    doh_subdomain str
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    ecs_support bool
    Indicate whether the location must resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationsResultEndpoints
    Configure the destination endpoints for this location.
    id str
    ip str
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    ipv4_destination str
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    ipv4_destination_backup str
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    name str
    Specify the location name.
    networks Sequence[GetZeroTrustDnsLocationsResultNetwork]
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    updated_at str
    clientDefault Boolean
    Indicate whether this location is the default location.
    createdAt String
    dnsDestinationIpsId String
    Indicate the identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId String
    Specify the UUID of the IPv6 block brought to the gateway so that this location's IPv6 address is allocated from the Bring Your Own IPv6 (BYOIPv6) block rather than the standard Cloudflare IPv6 block.
    dohSubdomain String
    Specify the DNS over HTTPS domain that receives DNS requests. Gateway automatically generates this value.
    ecsSupport Boolean
    Indicate whether the location must resolve EDNS queries.
    endpoints Property Map
    Configure the destination endpoints for this location.
    id String
    ip String
    Defines the automatically generated IPv6 destination IP assigned to this location. Gateway counts all DNS requests sent to this IP as requests under this location.
    ipv4Destination String
    Show the primary destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    ipv4DestinationBackup String
    Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
    name String
    Specify the location name.
    networks List<Property Map>
    Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location.
    updatedAt String

    GetZeroTrustDnsLocationsResultEndpoints

    GetZeroTrustDnsLocationsResultEndpointsDoh

    Enabled bool
    Indicate whether the DOH endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationsResultEndpointsDohNetwork>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    RequireToken bool
    Specify whether the DOH endpoint requires user identity authentication.
    Enabled bool
    Indicate whether the DOH endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationsResultEndpointsDohNetwork
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    RequireToken bool
    Specify whether the DOH endpoint requires user identity authentication.
    enabled Boolean
    Indicate whether the DOH endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationsResultEndpointsDohNetwork>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    requireToken Boolean
    Specify whether the DOH endpoint requires user identity authentication.
    enabled boolean
    Indicate whether the DOH endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationsResultEndpointsDohNetwork[]
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    requireToken boolean
    Specify whether the DOH endpoint requires user identity authentication.
    enabled bool
    Indicate whether the DOH endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationsResultEndpointsDohNetwork]
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    require_token bool
    Specify whether the DOH endpoint requires user identity authentication.
    enabled Boolean
    Indicate whether the DOH endpoint is enabled for this location.
    networks List<Property Map>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    requireToken Boolean
    Specify whether the DOH endpoint requires user identity authentication.

    GetZeroTrustDnsLocationsResultEndpointsDohNetwork

    Network string
    Specify the IP address or IP CIDR.
    Network string
    Specify the IP address or IP CIDR.
    network String
    Specify the IP address or IP CIDR.
    network string
    Specify the IP address or IP CIDR.
    network str
    Specify the IP address or IP CIDR.
    network String
    Specify the IP address or IP CIDR.

    GetZeroTrustDnsLocationsResultEndpointsDot

    Enabled bool
    Indicate whether the DOT endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationsResultEndpointsDotNetwork>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    Enabled bool
    Indicate whether the DOT endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationsResultEndpointsDotNetwork
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the DOT endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationsResultEndpointsDotNetwork>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled boolean
    Indicate whether the DOT endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationsResultEndpointsDotNetwork[]
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled bool
    Indicate whether the DOT endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationsResultEndpointsDotNetwork]
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the DOT endpoint is enabled for this location.
    networks List<Property Map>
    Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.

    GetZeroTrustDnsLocationsResultEndpointsDotNetwork

    Network string
    Specify the IP address or IP CIDR.
    Network string
    Specify the IP address or IP CIDR.
    network String
    Specify the IP address or IP CIDR.
    network string
    Specify the IP address or IP CIDR.
    network str
    Specify the IP address or IP CIDR.
    network String
    Specify the IP address or IP CIDR.

    GetZeroTrustDnsLocationsResultEndpointsIpv4

    Enabled bool
    Indicate whether the IPv4 endpoint is enabled for this location.
    Enabled bool
    Indicate whether the IPv4 endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the IPv4 endpoint is enabled for this location.
    enabled boolean
    Indicate whether the IPv4 endpoint is enabled for this location.
    enabled bool
    Indicate whether the IPv4 endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the IPv4 endpoint is enabled for this location.

    GetZeroTrustDnsLocationsResultEndpointsIpv6

    Enabled bool
    Indicate whether the IPV6 endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationsResultEndpointsIpv6Network>
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    Enabled bool
    Indicate whether the IPV6 endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationsResultEndpointsIpv6Network
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the IPV6 endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationsResultEndpointsIpv6Network>
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled boolean
    Indicate whether the IPV6 endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationsResultEndpointsIpv6Network[]
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled bool
    Indicate whether the IPV6 endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationsResultEndpointsIpv6Network]
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.
    enabled Boolean
    Indicate whether the IPV6 endpoint is enabled for this location.
    networks List<Property Map>
    Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location.

    GetZeroTrustDnsLocationsResultEndpointsIpv6Network

    Network string
    Specify the IPv6 address or IPv6 CIDR.
    Network string
    Specify the IPv6 address or IPv6 CIDR.
    network String
    Specify the IPv6 address or IPv6 CIDR.
    network string
    Specify the IPv6 address or IPv6 CIDR.
    network str
    Specify the IPv6 address or IPv6 CIDR.
    network String
    Specify the IPv6 address or IPv6 CIDR.

    GetZeroTrustDnsLocationsResultNetwork

    Network string
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.
    Network string
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.
    network String
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.
    network string
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.
    network str
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.
    network String
    Specify the IPv4 address or IPv4 CIDR. Limit IPv4 CIDRs to a maximum of /24.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate