Teams Location
Deprecated
cloudflare.index/teamslocation.TeamsLocation has been deprecated in favor of cloudflare.index/zerotrustdnslocation.ZeroTrustDnsLocation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustDnsLocation = new cloudflare.ZeroTrustDnsLocation("example_zero_trust_dns_location", {
accountId: "699d98642c564d2e855e9661899b7252",
name: "Austin Office Location",
clientDefault: false,
dnsDestinationIpsId: "0e4a32c6-6fb8-4858-9296-98f51631e8e6",
ecsSupport: false,
endpoints: {
doh: {
enabled: true,
networks: [{
network: "2001:85a3::/64",
}],
requireToken: true,
},
dot: {
enabled: true,
networks: [{
network: "2001:85a3::/64",
}],
},
ipv4: {
enabled: true,
},
ipv6: {
enabled: true,
networks: [{
network: "2001:85a3::/64",
}],
},
},
networks: [{
network: "192.0.2.1/32",
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_dns_location = cloudflare.ZeroTrustDnsLocation("example_zero_trust_dns_location",
account_id="699d98642c564d2e855e9661899b7252",
name="Austin Office Location",
client_default=False,
dns_destination_ips_id="0e4a32c6-6fb8-4858-9296-98f51631e8e6",
ecs_support=False,
endpoints={
"doh": {
"enabled": True,
"networks": [{
"network": "2001:85a3::/64",
}],
"require_token": True,
},
"dot": {
"enabled": True,
"networks": [{
"network": "2001:85a3::/64",
}],
},
"ipv4": {
"enabled": True,
},
"ipv6": {
"enabled": True,
"networks": [{
"network": "2001:85a3::/64",
}],
},
},
networks=[{
"network": "192.0.2.1/32",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustDnsLocation = new Cloudflare.ZeroTrustDnsLocation("example_zero_trust_dns_location", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Name = "Austin Office Location",
ClientDefault = false,
DnsDestinationIpsId = "0e4a32c6-6fb8-4858-9296-98f51631e8e6",
EcsSupport = false,
Endpoints = new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsArgs
{
Doh = new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsDohArgs
{
Enabled = true,
Networks = new[]
{
new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsDohNetworkArgs
{
Network = "2001:85a3::/64",
},
},
RequireToken = true,
},
Dot = new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsDotArgs
{
Enabled = true,
Networks = new[]
{
new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsDotNetworkArgs
{
Network = "2001:85a3::/64",
},
},
},
Ipv4 = new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsIpv4Args
{
Enabled = true,
},
Ipv6 = new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsIpv6Args
{
Enabled = true,
Networks = new[]
{
new Cloudflare.Inputs.ZeroTrustDnsLocationEndpointsIpv6NetworkArgs
{
Network = "2001:85a3::/64",
},
},
},
},
Networks = new[]
{
new Cloudflare.Inputs.ZeroTrustDnsLocationNetworkArgs
{
Network = "192.0.2.1/32",
},
},
});
});
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.NewZeroTrustDnsLocation(ctx, "example_zero_trust_dns_location", &cloudflare.ZeroTrustDnsLocationArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Name: pulumi.String("Austin Office Location"),
ClientDefault: pulumi.Bool(false),
DnsDestinationIpsId: pulumi.String("0e4a32c6-6fb8-4858-9296-98f51631e8e6"),
EcsSupport: pulumi.Bool(false),
Endpoints: &cloudflare.ZeroTrustDnsLocationEndpointsArgs{
Doh: &cloudflare.ZeroTrustDnsLocationEndpointsDohArgs{
Enabled: pulumi.Bool(true),
Networks: cloudflare.ZeroTrustDnsLocationEndpointsDohNetworkArray{
&cloudflare.ZeroTrustDnsLocationEndpointsDohNetworkArgs{
Network: pulumi.String("2001:85a3::/64"),
},
},
RequireToken: pulumi.Bool(true),
},
Dot: &cloudflare.ZeroTrustDnsLocationEndpointsDotArgs{
Enabled: pulumi.Bool(true),
Networks: cloudflare.ZeroTrustDnsLocationEndpointsDotNetworkArray{
&cloudflare.ZeroTrustDnsLocationEndpointsDotNetworkArgs{
Network: pulumi.String("2001:85a3::/64"),
},
},
},
Ipv4: &cloudflare.ZeroTrustDnsLocationEndpointsIpv4Args{
Enabled: pulumi.Bool(true),
},
Ipv6: &cloudflare.ZeroTrustDnsLocationEndpointsIpv6Args{
Enabled: pulumi.Bool(true),
Networks: cloudflare.ZeroTrustDnsLocationEndpointsIpv6NetworkArray{
&cloudflare.ZeroTrustDnsLocationEndpointsIpv6NetworkArgs{
Network: pulumi.String("2001:85a3::/64"),
},
},
},
},
Networks: cloudflare.ZeroTrustDnsLocationNetworkArray{
&cloudflare.ZeroTrustDnsLocationNetworkArgs{
Network: pulumi.String("192.0.2.1/32"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDnsLocation;
import com.pulumi.cloudflare.ZeroTrustDnsLocationArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationEndpointsArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationEndpointsDohArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationEndpointsDotArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationEndpointsIpv4Args;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationEndpointsIpv6Args;
import com.pulumi.cloudflare.inputs.ZeroTrustDnsLocationNetworkArgs;
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) {
var exampleZeroTrustDnsLocation = new ZeroTrustDnsLocation("exampleZeroTrustDnsLocation", ZeroTrustDnsLocationArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.name("Austin Office Location")
.clientDefault(false)
.dnsDestinationIpsId("0e4a32c6-6fb8-4858-9296-98f51631e8e6")
.ecsSupport(false)
.endpoints(ZeroTrustDnsLocationEndpointsArgs.builder()
.doh(ZeroTrustDnsLocationEndpointsDohArgs.builder()
.enabled(true)
.networks(ZeroTrustDnsLocationEndpointsDohNetworkArgs.builder()
.network("2001:85a3::/64")
.build())
.requireToken(true)
.build())
.dot(ZeroTrustDnsLocationEndpointsDotArgs.builder()
.enabled(true)
.networks(ZeroTrustDnsLocationEndpointsDotNetworkArgs.builder()
.network("2001:85a3::/64")
.build())
.build())
.ipv4(ZeroTrustDnsLocationEndpointsIpv4Args.builder()
.enabled(true)
.build())
.ipv6(ZeroTrustDnsLocationEndpointsIpv6Args.builder()
.enabled(true)
.networks(ZeroTrustDnsLocationEndpointsIpv6NetworkArgs.builder()
.network("2001:85a3::/64")
.build())
.build())
.build())
.networks(ZeroTrustDnsLocationNetworkArgs.builder()
.network("192.0.2.1/32")
.build())
.build());
}
}
resources:
exampleZeroTrustDnsLocation:
type: cloudflare:ZeroTrustDnsLocation
name: example_zero_trust_dns_location
properties:
accountId: 699d98642c564d2e855e9661899b7252
name: Austin Office Location
clientDefault: false
dnsDestinationIpsId: 0e4a32c6-6fb8-4858-9296-98f51631e8e6
ecsSupport: false
endpoints:
doh:
enabled: true
networks:
- network: 2001:85a3::/64
requireToken: true
dot:
enabled: true
networks:
- network: 2001:85a3::/64
ipv4:
enabled: true
ipv6:
enabled: true
networks:
- network: 2001:85a3::/64
networks:
- network: 192.0.2.1/32
Import
$ pulumi import cloudflare:index/teamsLocation:TeamsLocation example '<account_id>/<location_id>'
Properties
True if the location is the default location.
The identifier of the pair of IPv4 addresses assigned to this location. When creating a location, if this field is absent or set with null, the pair of shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned. When updating a location, if the field is absent or set with null, the pre-assigned pair remains unchanged.
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.
The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.
True if the location needs to resolve EDNS queries.
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.
The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.
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.