TeamsLocation

class TeamsLocation : KotlinCustomResource

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

Link copied to clipboard
val accountId: Output<String>
Link copied to clipboard
val clientDefault: Output<Boolean>?

True if the location is the default location.

Link copied to clipboard
val createdAt: Output<String>
Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
val dohSubdomain: Output<String>

The DNS over HTTPS domain to send DNS requests to. This field is auto-generated by Gateway.

Link copied to clipboard
val ecsSupport: Output<Boolean>?

True if the location needs to resolve EDNS queries.

Link copied to clipboard

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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ip: Output<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.

Link copied to clipboard
val ipv4Destination: Output<String>

The primary destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.

Link copied to clipboard

The backup destination IPv4 address from the pair identified by the dnsdestinationips_id. This field is read-only.

Link copied to clipboard
val name: Output<String>

The name of the location.

Link copied to clipboard

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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val updatedAt: Output<String>
Link copied to clipboard
val urn: Output<String>