1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustDnsLocation
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustDnsLocation

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    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 dictionary

    The following arguments are supported:

    AccountId string
    LocationId string
    AccountId string
    LocationId string
    accountId String
    locationId String
    accountId string
    locationId string
    accountId String
    locationId String

    getZeroTrustDnsLocation Result

    The following output properties are available:

    AccountId string
    ClientDefault bool
    True if the location is the default location.
    CreatedAt string
    DnsDestinationIpsId string
    The identifier of the pair of IPv4 addresses assigned to this location.
    DnsDestinationIpv6BlockId string
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    DohSubdomain string
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    EcsSupport bool
    True if the location needs to resolve EDNS queries.
    Endpoints GetZeroTrustDnsLocationEndpoints
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    Id string
    The ID of this resource.
    Ip string
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    Ipv4Destination string
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    Ipv4DestinationBackup string
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    Name string
    The name of the location.
    Networks List<GetZeroTrustDnsLocationNetwork>
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    UpdatedAt string
    LocationId string
    AccountId string
    ClientDefault bool
    True if the location is the default location.
    CreatedAt string
    DnsDestinationIpsId string
    The identifier of the pair of IPv4 addresses assigned to this location.
    DnsDestinationIpv6BlockId string
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    DohSubdomain string
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    EcsSupport bool
    True if the location needs to resolve EDNS queries.
    Endpoints GetZeroTrustDnsLocationEndpoints
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    Id string
    The ID of this resource.
    Ip string
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    Ipv4Destination string
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    Ipv4DestinationBackup string
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    Name string
    The name of the location.
    Networks []GetZeroTrustDnsLocationNetwork
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    UpdatedAt string
    LocationId string
    accountId String
    clientDefault Boolean
    True if the location is the default location.
    createdAt String
    dnsDestinationIpsId String
    The identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId String
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    dohSubdomain String
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    ecsSupport Boolean
    True if the location needs to resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationEndpoints
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    id String
    The ID of this resource.
    ip String
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    ipv4Destination String
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    ipv4DestinationBackup String
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    name String
    The name of the location.
    networks List<GetZeroTrustDnsLocationNetwork>
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    updatedAt String
    locationId String
    accountId string
    clientDefault boolean
    True if the location is the default location.
    createdAt string
    dnsDestinationIpsId string
    The identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId string
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    dohSubdomain string
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    ecsSupport boolean
    True if the location needs to resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationEndpoints
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    id string
    The ID of this resource.
    ip string
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    ipv4Destination string
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    ipv4DestinationBackup string
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    name string
    The name of the location.
    networks GetZeroTrustDnsLocationNetwork[]
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    updatedAt string
    locationId string
    account_id str
    client_default bool
    True if the location is the default location.
    created_at str
    dns_destination_ips_id str
    The identifier of the pair of IPv4 addresses assigned to this location.
    dns_destination_ipv6_block_id str
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    doh_subdomain str
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    ecs_support bool
    True if the location needs to resolve EDNS queries.
    endpoints GetZeroTrustDnsLocationEndpoints
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    id str
    The ID of this resource.
    ip str
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    ipv4_destination str
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    ipv4_destination_backup str
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    name str
    The name of the location.
    networks Sequence[GetZeroTrustDnsLocationNetwork]
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    updated_at str
    location_id str
    accountId String
    clientDefault Boolean
    True if the location is the default location.
    createdAt String
    dnsDestinationIpsId String
    The identifier of the pair of IPv4 addresses assigned to this location.
    dnsDestinationIpv6BlockId String
    The uuid identifier 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 and not from the standard CloudFlare IPv6 block.
    dohSubdomain String
    The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
    ecsSupport Boolean
    True if the location needs to resolve EDNS queries.
    endpoints Property Map
    The destination endpoints configured for this location. When updating a location, if this field is absent or set with null, the endpoints configuration remains unchanged.
    id String
    The ID of this resource.
    ip String
    IPV6 destination ip assigned to this location. DNS requests sent to this IP will counted as the request under this location. This field is auto-generated by Gateway.
    ipv4Destination String
    The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    ipv4DestinationBackup String
    The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
    name String
    The name of the location.
    networks List<Property Map>
    A list of network ranges that requests from this location would originate from. A non-empty list is only effective if the ipv4 endpoint is enabled for this location.
    updatedAt String
    locationId String

    Supporting Types

    GetZeroTrustDnsLocationEndpoints

    GetZeroTrustDnsLocationEndpointsDoh

    Enabled bool
    True if the endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationEndpointsDohNetwork>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    RequireToken bool
    True if the endpoint requires user identity authentication.
    Enabled bool
    True if the endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationEndpointsDohNetwork
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    RequireToken bool
    True if the endpoint requires user identity authentication.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationEndpointsDohNetwork>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    requireToken Boolean
    True if the endpoint requires user identity authentication.
    enabled boolean
    True if the endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationEndpointsDohNetwork[]
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    requireToken boolean
    True if the endpoint requires user identity authentication.
    enabled bool
    True if the endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationEndpointsDohNetwork]
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    require_token bool
    True if the endpoint requires user identity authentication.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<Property Map>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    requireToken Boolean
    True if the endpoint requires user identity authentication.

    GetZeroTrustDnsLocationEndpointsDohNetwork

    Network string
    The IP address or IP CIDR.
    Network string
    The IP address or IP CIDR.
    network String
    The IP address or IP CIDR.
    network string
    The IP address or IP CIDR.
    network str
    The IP address or IP CIDR.
    network String
    The IP address or IP CIDR.

    GetZeroTrustDnsLocationEndpointsDot

    Enabled bool
    True if the endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationEndpointsDotNetwork>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    Enabled bool
    True if the endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationEndpointsDotNetwork
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationEndpointsDotNetwork>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled boolean
    True if the endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationEndpointsDotNetwork[]
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled bool
    True if the endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationEndpointsDotNetwork]
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<Property Map>
    A list of allowed source IP network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.

    GetZeroTrustDnsLocationEndpointsDotNetwork

    Network string
    The IP address or IP CIDR.
    Network string
    The IP address or IP CIDR.
    network String
    The IP address or IP CIDR.
    network string
    The IP address or IP CIDR.
    network str
    The IP address or IP CIDR.
    network String
    The IP address or IP CIDR.

    GetZeroTrustDnsLocationEndpointsIpv4

    Enabled bool
    True if the endpoint is enabled for this location.
    Enabled bool
    True if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.
    enabled boolean
    True if the endpoint is enabled for this location.
    enabled bool
    True if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.

    GetZeroTrustDnsLocationEndpointsIpv6

    Enabled bool
    True if the endpoint is enabled for this location.
    Networks List<GetZeroTrustDnsLocationEndpointsIpv6Network>
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    Enabled bool
    True if the endpoint is enabled for this location.
    Networks []GetZeroTrustDnsLocationEndpointsIpv6Network
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<GetZeroTrustDnsLocationEndpointsIpv6Network>
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled boolean
    True if the endpoint is enabled for this location.
    networks GetZeroTrustDnsLocationEndpointsIpv6Network[]
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled bool
    True if the endpoint is enabled for this location.
    networks Sequence[GetZeroTrustDnsLocationEndpointsIpv6Network]
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.
    enabled Boolean
    True if the endpoint is enabled for this location.
    networks List<Property Map>
    A list of allowed source IPv6 network ranges for this endpoint. When empty, all source IPs are allowed. A non-empty list is only effective if the endpoint is enabled for this location.

    GetZeroTrustDnsLocationEndpointsIpv6Network

    Network string
    The IPv6 address or IPv6 CIDR.
    Network string
    The IPv6 address or IPv6 CIDR.
    network String
    The IPv6 address or IPv6 CIDR.
    network string
    The IPv6 address or IPv6 CIDR.
    network str
    The IPv6 address or IPv6 CIDR.
    network String
    The IPv6 address or IPv6 CIDR.

    GetZeroTrustDnsLocationNetwork

    Network string
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.
    Network string
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.
    network String
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.
    network string
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.
    network str
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24.
    network String
    The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited 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.1.2 published on Monday, Apr 28, 2025 by Pulumi