published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Accepted Permissions
Cloudflare Zero Trust Secure DNS Locations WriteZero Trust ReadZero Trust Write
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.GetZeroTrustDnsLocation(ctx, &cloudflare.LookupZeroTrustDnsLocationArgs{
AccountId: pulumi.StringRef("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.ArrayList;
import java.util.Arrays;
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
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_zero_trust_dns_location" "exampleZeroTrustDnsLocation" {
account_id = "699d98642c564d2e855e9661899b7252"
location_id = "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?: InvokeOutputOptions): Output<GetZeroTrustDnsLocationResult>def get_zero_trust_dns_location(account_id: Optional[str] = None,
filter: Optional[GetZeroTrustDnsLocationFilter] = None,
location_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustDnsLocationResult
def get_zero_trust_dns_location_output(account_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetZeroTrustDnsLocationFilterArgs]] = None,
location_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = 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 Output<GetZeroTrustDnsLocationResult> Invoke(GetZeroTrustDnsLocationInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetZeroTrustDnsLocationResult> getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs args, InvokeOptions options)
public static Output<GetZeroTrustDnsLocationResult> getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs args, InvokeOptions options)
public static Output<GetZeroTrustDnsLocationResult> getZeroTrustDnsLocation(GetZeroTrustDnsLocationArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustDnsLocation:getZeroTrustDnsLocation
arguments:
# arguments dictionarydata "cloudflare_get_zero_trust_dns_location" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Filter
Get
Zero Trust Dns Location Filter - Location
Id string
- Account
Id string - Filter
Get
Zero Trust Dns Location Filter - Location
Id string
- account_
id string - filter object
- location_
id string
- account
Id String - filter
Get
Zero Trust Dns Location Filter - location
Id String
- account
Id string - filter
Get
Zero Trust Dns Location Filter - location
Id string
- account
Id String - filter Property Map
- location
Id String
getZeroTrustDnsLocation Result
The following output properties are available:
- Client
Default bool - Created
At string - Dns
Destination stringIps Id - Dns
Destination stringIpv6Block Id - Doh
Subdomain string - Ecs
Support bool - Endpoints
Get
Zero Trust Dns Location Endpoints - Id string
- Ip string
- Ipv4Destination string
- Ipv4Destination
Backup string - Max
Ttl GetZero Trust Dns Location Max Ttl - Name string
- Networks
List<Get
Zero Trust Dns Location Network> - Updated
At string - Account
Id string - Filter
Get
Zero Trust Dns Location Filter - Location
Id string
- Client
Default bool - Created
At string - Dns
Destination stringIps Id - Dns
Destination stringIpv6Block Id - Doh
Subdomain string - Ecs
Support bool - Endpoints
Get
Zero Trust Dns Location Endpoints - Id string
- Ip string
- Ipv4Destination string
- Ipv4Destination
Backup string - Max
Ttl GetZero Trust Dns Location Max Ttl - Name string
- Networks
[]Get
Zero Trust Dns Location Network - Updated
At string - Account
Id string - Filter
Get
Zero Trust Dns Location Filter - Location
Id string
- client_
default bool - created_
at string - dns_
destination_ stringips_ id - dns_
destination_ stringipv6_ block_ id - doh_
subdomain string - ecs_
support bool - endpoints object
- id string
- ip string
- ipv4_
destination string - ipv4_
destination_ stringbackup - max_
ttl object - name string
- networks list(object)
- updated_
at string - account_
id string - filter object
- location_
id string
- client
Default Boolean - created
At String - dns
Destination StringIps Id - dns
Destination StringIpv6Block Id - doh
Subdomain String - ecs
Support Boolean - endpoints
Get
Zero Trust Dns Location Endpoints - id String
- ip String
- ipv4Destination String
- ipv4Destination
Backup String - max
Ttl GetZero Trust Dns Location Max Ttl - name String
- networks
List<Get
Zero Trust Dns Location Network> - updated
At String - account
Id String - filter
Get
Zero Trust Dns Location Filter - location
Id String
- client
Default boolean - created
At string - dns
Destination stringIps Id - dns
Destination stringIpv6Block Id - doh
Subdomain string - ecs
Support boolean - endpoints
Get
Zero Trust Dns Location Endpoints - id string
- ip string
- ipv4Destination string
- ipv4Destination
Backup string - max
Ttl GetZero Trust Dns Location Max Ttl - name string
- networks
Get
Zero Trust Dns Location Network[] - updated
At string - account
Id string - filter
Get
Zero Trust Dns Location Filter - location
Id string
- client_
default bool - created_
at str - dns_
destination_ strips_ id - dns_
destination_ stripv6_ block_ id - doh_
subdomain str - ecs_
support bool - endpoints
Get
Zero Trust Dns Location Endpoints - id str
- ip str
- ipv4_
destination str - ipv4_
destination_ strbackup - max_
ttl GetZero Trust Dns Location Max Ttl - name str
- networks
Sequence[Get
Zero Trust Dns Location Network] - updated_
at str - account_
id str - filter
Get
Zero Trust Dns Location Filter - location_
id str
- client
Default Boolean - created
At String - dns
Destination StringIps Id - dns
Destination StringIpv6Block Id - doh
Subdomain String - ecs
Support Boolean - endpoints Property Map
- id String
- ip String
- ipv4Destination String
- ipv4Destination
Backup String - max
Ttl Property Map - name String
- networks List<Property Map>
- updated
At String - account
Id String - filter Property Map
- location
Id String
Supporting Types
GetZeroTrustDnsLocationEndpoints
GetZeroTrustDnsLocationEndpointsDoh
- Enabled bool
- Indicate whether the DOH endpoint is enabled for this location.
- Networks
List<Get
Zero 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 bool
- Indicate whether the DOH endpoint is enabled for this location.
- Networks
[]Get
Zero 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 bool
- Indicate whether the DOH endpoint is enabled for this location.
- networks list(object)
- 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<Get
Zero 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 Boolean - Specify whether the DOH endpoint requires user identity authentication.
- enabled boolean
- Indicate whether the DOH endpoint is enabled for this location.
- networks
Get
Zero 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 boolean - Specify whether the DOH endpoint requires user identity authentication.
- enabled bool
- Indicate whether the DOH endpoint is enabled for this location.
- networks
Sequence[Get
Zero 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.
- require
Token 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 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<Get
Zero 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
[]Get
Zero 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 list(object)
- 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<Get
Zero 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
Get
Zero 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[Get
Zero 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 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 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<Get
Zero 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
[]Get
Zero 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 list(object)
- 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<Get
Zero 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
Get
Zero 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[Get
Zero 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 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.
GetZeroTrustDnsLocationFilter
- Direction string
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- Filters List<string>
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- Order
By string - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- Search string
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- Direction string
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- Filters []string
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- Order
By string - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- Search string
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- direction string
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- filters list(string)
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- order_
by string - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- search string
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- direction String
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- filters List<String>
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- order
By String - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- search String
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- direction string
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- filters string[]
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- order
By string - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- search string
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- direction str
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- filters Sequence[str]
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- order_
by str - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- search str
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
- direction String
- Sort direction. Only takes effect when
orderByis also provided; it is ignored otherwise. Whendirectionis omitted the effective direction is field-specific:createdAtandupdatedAtdefault to descending (newest first);namedefaults to ascending.asc— ascending.desc— descending. Available values: "asc", "desc".
- filters List<String>
Filter the returned locations by one or more
field:valuepairs. Repeat the parameter to apply multiple filters; they are combined with logical AND (a location must satisfy every filter to be returned).Supported fields and their matching behaviour:
name— case-insensitive substring match on the location name.id— substring match on the location ID (UUID), with or without dashes.isDefault— whether it is the default for the account.
Each entry must match one of the per-field patterns below:
- the field must be one of
name,id, orisDefault; name/idaccept any value;isDefaultonly acceptstrueorfalse; any other value returns400
- order
By String - Field to sort the returned locations by. When omitted, the order of
results is unspecified. Supported values:
name— sort alphabetically by location name.createdAt— sort by creation time; defaults to descending unlessdirectionis set.updatedAt— sort by last-modified time; defaults to descending unlessdirectionis set. Available values: "name", "createdAt", "updatedAt".
- search String
- Case-insensitive substring match on the location name. When combined
with
filter, both must match (logical AND).
GetZeroTrustDnsLocationMaxTtl
- Mode string
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- Ttl
Secs int - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- Mode string
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- Ttl
Secs int - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- mode string
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- ttl_
secs number - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- mode String
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- ttl
Secs Integer - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- mode string
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- ttl
Secs number - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- mode str
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- ttl_
secs int - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
- mode String
inherituses the accountmaxTtlSecs.overrideuses this location'sttlSecs.disabledleaves returned TTLs unchanged. Available values: "inherit", "override", "disabled".- ttl
Secs Number - Location-specific cap on DNS response TTLs, in seconds. Required when
modeisoverride. Must be omitted whenmodeisinheritordisabled.
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 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.
published on Tuesday, Oct 13, 2026 by Pulumi