Cloudflare v6.10.1 published on Wednesday, Oct 22, 2025 by Pulumi
cloudflare.getZeroTrustDnsLocation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustDnsLocation = cloudflare.getZeroTrustDnsLocation({
    accountId: "699d98642c564d2e855e9661899b7252",
    locationId: "ed35569b41ce4d1facfe683550f54086",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_dns_location = cloudflare.get_zero_trust_dns_location(account_id="699d98642c564d2e855e9661899b7252",
    location_id="ed35569b41ce4d1facfe683550f54086")
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.LookupZeroTrustDnsLocation(ctx, &cloudflare.LookupZeroTrustDnsLocationArgs{
			AccountId:  "699d98642c564d2e855e9661899b7252",
			LocationId: pulumi.StringRef("ed35569b41ce4d1facfe683550f54086"),
		}, 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 exampleZeroTrustDnsLocation = Cloudflare.GetZeroTrustDnsLocation.Invoke(new()
    {
        AccountId = "699d98642c564d2e855e9661899b7252",
        LocationId = "ed35569b41ce4d1facfe683550f54086",
    });
});
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.GetZeroTrustDnsLocationArgs;
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 exampleZeroTrustDnsLocation = CloudflareFunctions.getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .locationId("ed35569b41ce4d1facfe683550f54086")
            .build());
    }
}
variables:
  exampleZeroTrustDnsLocation:
    fn::invoke:
      function: cloudflare:getZeroTrustDnsLocation
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
        locationId: ed35569b41ce4d1facfe683550f54086
Using getZeroTrustDnsLocation
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 getZeroTrustDnsLocation(args: GetZeroTrustDnsLocationArgs, opts?: InvokeOptions): Promise<GetZeroTrustDnsLocationResult>
function getZeroTrustDnsLocationOutput(args: GetZeroTrustDnsLocationOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDnsLocationResult>def get_zero_trust_dns_location(account_id: Optional[str] = None,
                                location_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetZeroTrustDnsLocationResult
def get_zero_trust_dns_location_output(account_id: Optional[pulumi.Input[str]] = None,
                                location_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDnsLocationResult]func LookupZeroTrustDnsLocation(ctx *Context, args *LookupZeroTrustDnsLocationArgs, opts ...InvokeOption) (*LookupZeroTrustDnsLocationResult, error)
func LookupZeroTrustDnsLocationOutput(ctx *Context, args *LookupZeroTrustDnsLocationOutputArgs, opts ...InvokeOption) LookupZeroTrustDnsLocationResultOutput> Note: This function is named LookupZeroTrustDnsLocation in the Go SDK.
public static class GetZeroTrustDnsLocation 
{
    public static Task<GetZeroTrustDnsLocationResult> InvokeAsync(GetZeroTrustDnsLocationArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustDnsLocationResult> Invoke(GetZeroTrustDnsLocationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZeroTrustDnsLocationResult> getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs args, InvokeOptions options)
public static Output<GetZeroTrustDnsLocationResult> getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs args, InvokeOptions options)
fn::invoke:
  function: cloudflare:index/getZeroTrustDnsLocation:getZeroTrustDnsLocation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId string
- LocationId string
- AccountId string
- LocationId string
- accountId String
- locationId String
- accountId string
- locationId string
- account_id str
- location_id str
- accountId String
- locationId String
getZeroTrustDnsLocation Result
The following output properties are available:
- AccountId string
- ClientDefault bool
- Indicate whether this location is the default location.
- CreatedAt string
- DnsDestination stringIps Id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- DnsDestination stringIpv6Block Id 
- 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
GetZero Trust Dns Location Endpoints 
- Configure the destination endpoints for this location.
- Id string
- The ID of this resource.
- 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<GetZero Trust Dns Location Network> 
- 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
- LocationId string
- AccountId string
- ClientDefault bool
- Indicate whether this location is the default location.
- CreatedAt string
- DnsDestination stringIps Id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- DnsDestination stringIpv6Block Id 
- 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
GetZero Trust Dns Location Endpoints 
- Configure the destination endpoints for this location.
- Id string
- The ID of this resource.
- 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
[]GetZero Trust Dns Location Network 
- 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
- LocationId string
- accountId String
- clientDefault Boolean
- Indicate whether this location is the default location.
- createdAt String
- dnsDestination StringIps Id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- dnsDestination StringIpv6Block Id 
- 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
GetZero Trust Dns Location Endpoints 
- Configure the destination endpoints for this location.
- id String
- The ID of this resource.
- 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<GetZero Trust Dns Location Network> 
- 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
- locationId String
- accountId string
- clientDefault boolean
- Indicate whether this location is the default location.
- createdAt string
- dnsDestination stringIps Id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- dnsDestination stringIpv6Block Id 
- 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
GetZero Trust Dns Location Endpoints 
- Configure the destination endpoints for this location.
- id string
- The ID of this resource.
- 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
GetZero Trust Dns Location Network[] 
- 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
- locationId string
- account_id str
- client_default bool
- Indicate whether this location is the default location.
- created_at str
- dns_destination_ strips_ id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- dns_destination_ stripv6_ block_ id 
- 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
GetZero Trust Dns Location Endpoints 
- Configure the destination endpoints for this location.
- id str
- The ID of this resource.
- 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_ strbackup 
- Show the backup destination IPv4 address from the pair identified dnsdestinationips_id. This field read-only.
- name str
- Specify the location name.
- networks
Sequence[GetZero Trust Dns Location Network] 
- 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
- location_id str
- accountId String
- clientDefault Boolean
- Indicate whether this location is the default location.
- createdAt String
- dnsDestination StringIps Id 
- Indicate the identifier of the pair of IPv4 addresses assigned to this location.
- dnsDestination StringIpv6Block Id 
- 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
- The ID of this resource.
- 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
- locationId String
Supporting Types
GetZeroTrustDnsLocationEndpoints     
GetZeroTrustDnsLocationEndpointsDoh      
- Enabled bool
- Indicate whether the DOH endpoint is enabled for this location.
- Networks
List<GetZero Trust Dns Location Endpoints Doh Network> 
- 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
[]GetZero Trust Dns Location Endpoints Doh Network 
- 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<GetZero Trust Dns Location Endpoints Doh Network> 
- 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
GetZero Trust Dns Location Endpoints Doh Network[] 
- 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[GetZero Trust Dns Location Endpoints Doh Network] 
- 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.
GetZeroTrustDnsLocationEndpointsDohNetwork       
- 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.
GetZeroTrustDnsLocationEndpointsDot      
- Enabled bool
- Indicate whether the DOT endpoint is enabled for this location.
- Networks
List<GetZero Trust Dns Location Endpoints Dot Network> 
- 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
[]GetZero Trust Dns Location Endpoints Dot Network 
- 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<GetZero Trust Dns Location Endpoints Dot Network> 
- 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
GetZero Trust Dns Location Endpoints Dot Network[] 
- 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[GetZero Trust Dns Location Endpoints Dot Network] 
- 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.
GetZeroTrustDnsLocationEndpointsDotNetwork       
- 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.
GetZeroTrustDnsLocationEndpointsIpv4      
- 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.
GetZeroTrustDnsLocationEndpointsIpv6      
- Enabled bool
- Indicate whether the IPV6 endpoint is enabled for this location.
- Networks
List<GetZero Trust Dns Location Endpoints Ipv6Network> 
- 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
[]GetZero Trust Dns Location Endpoints Ipv6Network 
- 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<GetZero Trust Dns Location Endpoints Ipv6Network> 
- 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
GetZero Trust Dns Location Endpoints Ipv6Network[] 
- 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[GetZero Trust Dns Location Endpoints Ipv6Network] 
- 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.
GetZeroTrustDnsLocationEndpointsIpv6Network      
- 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.
GetZeroTrustDnsLocationNetwork     
- 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 cloudflareTerraform Provider.
