Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getZeroTrustDnsLocations
Explore with Pulumi AI
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:
- account_
id str - max_
items int - Max items to fetch, default: 1000
getZeroTrustDnsLocations Result
The following output properties are available:
- Account
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Zero Trust Dns Locations Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Zero Trust Dns Locations Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Zero Trust Dns Locations Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Zero Trust Dns Locations Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- account_
id str - id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Zero Trust Dns Locations Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- account
Id String - id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetZeroTrustDnsLocationsResult
- Client
Default bool - True if the location is the default location.
- Created
At string - Dns
Destination stringIps Id - The identifier of the pair of IPv4 addresses assigned to this location.
- Dns
Destination stringIpv6Block Id - 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 string - 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
Get
Zero Trust Dns Locations Result Endpoints - 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
- 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.
- Ipv4Destination
Backup 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<Get
Zero Trust Dns Locations Result Network> - 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 string
- Client
Default bool - True if the location is the default location.
- Created
At string - Dns
Destination stringIps Id - The identifier of the pair of IPv4 addresses assigned to this location.
- Dns
Destination stringIpv6Block Id - 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 string - 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
Get
Zero Trust Dns Locations Result Endpoints - 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
- 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.
- Ipv4Destination
Backup 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
[]Get
Zero Trust Dns Locations Result Network - 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 string
- client
Default Boolean - True if the location is the default location.
- created
At String - dns
Destination StringIps Id - The identifier of the pair of IPv4 addresses assigned to this location.
- dns
Destination StringIpv6Block Id - 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 String - The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
- ecs
Support Boolean - True if the location needs to resolve EDNS queries.
- endpoints
Get
Zero Trust Dns Locations Result Endpoints - 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
- 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.
- ipv4Destination
Backup 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<Get
Zero Trust Dns Locations Result Network> - 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 String
- client
Default boolean - True if the location is the default location.
- created
At string - dns
Destination stringIps Id - The identifier of the pair of IPv4 addresses assigned to this location.
- dns
Destination stringIpv6Block Id - 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 string - The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
- ecs
Support boolean - True if the location needs to resolve EDNS queries.
- endpoints
Get
Zero Trust Dns Locations Result Endpoints - 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
- 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.
- ipv4Destination
Backup 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
Get
Zero Trust Dns Locations Result Network[] - 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 string
- client_
default bool - True if the location is the default location.
- created_
at str - dns_
destination_ strips_ id - The identifier of the pair of IPv4 addresses assigned to this location.
- dns_
destination_ stripv6_ block_ id - 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
Get
Zero Trust Dns Locations Result Endpoints - 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
- 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_ strbackup - 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[Get
Zero Trust Dns Locations Result Network] - 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
- client
Default Boolean - True if the location is the default location.
- created
At String - dns
Destination StringIps Id - The identifier of the pair of IPv4 addresses assigned to this location.
- dns
Destination StringIpv6Block Id - 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 String - The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
- ecs
Support 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
- 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.
- ipv4Destination
Backup 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.
- updated
At String
GetZeroTrustDnsLocationsResultEndpoints
GetZeroTrustDnsLocationsResultEndpointsDoh
- Enabled bool
- True if the endpoint is enabled for this location.
- Networks
List<Get
Zero Trust Dns Locations Result Endpoints Doh Network> - 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 bool
- True if the endpoint is enabled for this location.
- Networks
[]Get
Zero Trust Dns Locations Result Endpoints Doh Network - 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<Get
Zero Trust Dns Locations Result Endpoints Doh Network> - 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 Boolean - True if the endpoint requires user identity authentication.
- enabled boolean
- True if the endpoint is enabled for this location.
- networks
Get
Zero Trust Dns Locations Result Endpoints Doh Network[] - 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 boolean - True if the endpoint requires user identity authentication.
- enabled bool
- True if the endpoint is enabled for this location.
- networks
Sequence[Get
Zero Trust Dns Locations Result Endpoints Doh Network] - 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.
- require
Token Boolean - True if the endpoint requires user identity authentication.
GetZeroTrustDnsLocationsResultEndpointsDohNetwork
- 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.
GetZeroTrustDnsLocationsResultEndpointsDot
- Enabled bool
- True if the endpoint is enabled for this location.
- Networks
List<Get
Zero Trust Dns Locations Result Endpoints Dot Network> - 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
[]Get
Zero Trust Dns Locations Result Endpoints Dot Network - 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<Get
Zero Trust Dns Locations Result Endpoints Dot Network> - 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
Get
Zero Trust Dns Locations Result Endpoints Dot Network[] - 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[Get
Zero Trust Dns Locations Result Endpoints Dot Network] - 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.
GetZeroTrustDnsLocationsResultEndpointsDotNetwork
- 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.
GetZeroTrustDnsLocationsResultEndpointsIpv4
- 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.
GetZeroTrustDnsLocationsResultEndpointsIpv6
- Enabled bool
- True if the endpoint is enabled for this location.
- Networks
List<Get
Zero Trust Dns Locations Result Endpoints Ipv6Network> - 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
[]Get
Zero Trust Dns Locations Result Endpoints Ipv6Network - 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<Get
Zero Trust Dns Locations Result Endpoints Ipv6Network> - 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
Get
Zero Trust Dns Locations Result Endpoints Ipv6Network[] - 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[Get
Zero Trust Dns Locations Result Endpoints Ipv6Network] - 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.
GetZeroTrustDnsLocationsResultEndpointsIpv6Network
- 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.
GetZeroTrustDnsLocationsResultNetwork
- 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.