Skip to content

f5xc_external_connector Resource - terraform-provider-f5xc

Manages an External Connector resource in F5 Distributed Cloud for external_connector configuration specification. configuration.

~> Note For more information about this resource, please refer to the F5 XC API Documentation.

# External Connector Resource Example
# Manages an External Connector resource in F5 Distributed Cloud for external_connector configuration specification. configuration.
terraform {
required_version = ">= 1.0"
required_providers {
f5xc = {
source = "f5xc-salesdemos/f5xc"
version = ">= 0.1.0"
}
}
}
# Basic External Connector configuration
resource "f5xc_external_connector" "example" {
name = "example-external-connector"
namespace = "staging"
labels = {
environment = "production"
managed_by = "terraform"
}
annotations = {
"owner" = "platform-team"
}
# Resource-specific configuration
# Type establishes a direct reference from one object(the r...
ce_site_reference {
# Configure ce_site_reference settings
}
# GRE. External Connector with GRE tunnel.
gre {
# Configure gre settings
}
# X-displayName: 'GRE Tunnel Parameters' GRE configuration ...
gre_parameters {
# Configure gre_parameters settings
}
}

🔶 High Risk Operations — Some operations on this resource have high danger level. Destructive operations may require confirmation.

name - Required String
Name of the External Connector. Must be unique within the namespace

namespace - Required String
Namespace where the External Connector will be created

annotations - Optional Map
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata

description - Optional String
Human readable description for the object

disable - Optional Bool
A value of true will administratively disable the object

labels - Optional Map
Labels is a user defined key value map that can be attached to resources for organization and filtering

ce_site_reference - Optional Block
Type establishes a direct reference from one object(the referrer) to another(the referred). Such a reference is in form of tenant/namespace/name
See CE Site Reference below for details.

gre - Optional Block
GRE. External Connector with GRE tunnel
See Gre below for details.

ipsec - Optional Block
IPsec. External Connector with IPsec tunnel
See Ipsec below for details.

timeouts - Optional Block
See Timeouts below for details.

In addition to all arguments above, the following attributes are exported:

id - Optional String
Unique identifier for the resource


A ce_site_reference block supports the following:

name - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name

namespace - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace

tenant - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant

A gre block supports the following:

gre_parameters - Optional Block
X-displayName: ‘GRE Tunnel Parameters’ GRE configuration parameters required for GRE Connection type
See Gre Parameters below.

A gre_parameters block (within gre) supports the following:

peer_ip_address - Optional Block
IPv4 Address. IPv4 Address in dot-decimal notation
See Peer IP Address below.

segment - Optional Block
Segment Reference Type. Reference to Segment Object
See Segment below.

site_local_inside_network - Optional Block
Enable this option

site_local_network - Optional Block
Enable this option

tunnel_eps - Optional Block
X-displayName: ‘Tunnel Endpoint’Configure tunnel parameters, source, destination, IP addresses
See Tunnel Eps below.

tunnel_mtu - Optional Number
X-displayName: ‘Tunnel MTU’ Configure MTU for the GRE tunnel interface

A peer_ip_address block (within gre.gre_parameters) supports the following:

addr - Optional String
IPv4 Address in string form with dot-decimal notation

A segment block (within gre.gre_parameters) supports the following:

refs - Optional Block
Reference to Segment Object
See Refs below.

A refs block (within gre.gre_parameters.segment) supports the following:

kind - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then kind will hold the referred object’s kind (e.g. ‘route’)

name - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name

namespace - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace

tenant - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant

uid - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then uid will hold the referred object’s(e.g. Route’s) uid

A tunnel_eps block (within gre.gre_parameters) supports the following:

interface - Optional String
For the chosen node, specify the interface that will be the tunnel source

local_tunnel_ip - Optional String
For a particular tunnel on a node, specify the local tunnel IP Address i.e. The IP address of the tunnel on the CE node itself and a subnet prefix length

node - Optional String
CE site is composed of multiple nodes. Choose a node that will be part of this external connection

remote_tunnel_ip - Optional String
For a particular tunnel on a node, specify the remote tunnel IP Address i.e. The IP address of the tunnel on the remote gateway and a subnet prefix length

An ipsec block supports the following:

ike_parameters - Optional Block
IKE configuration parameters required for IPsec Connection type
See IKE Parameters below.

ipsec_tunnel_parameters - Optional Block
In this section, we will configure the tunnel parameters, source, destination, IP addresses, and segment
See Ipsec Tunnel Parameters below.

An ike_parameters block (within ipsec) supports the following:

dpd_disabled - Optional Block
Enable this option

dpd_keep_alive_timer - Optional Block
Configuration parameter for dpd keep alive timer
See Dpd Keep Alive Timer below.

ike_phase1_profile - Optional Block
Type establishes a direct reference from one object(the referrer) to another(the referred). Such a reference is in form of tenant/namespace/name
See IKE Phase1 Profile below.

ike_phase2_profile - Optional Block
Type establishes a direct reference from one object(the referrer) to another(the referred). Such a reference is in form of tenant/namespace/name
See IKE Phase2 Profile below.

initiator - Optional Block
Enable this option

responder - Optional Block
Enable this option

rm_hostname - Optional String
Configure an hostname Remote IKE ID

rm_ip_address - Optional Block
IP Address used to specify an IPv4 or IPv6 address
See Rm IP Address below.

use_default_local_ike_id - Optional Block
Enable this option

use_default_remote_ike_id - Optional Block
Enable this option

A dpd_keep_alive_timer block (within ipsec.ike_parameters) supports the following:

timeout - Optional Number
Keepalive Timer. Operation timeout duration

An ike_phase1_profile block (within ipsec.ike_parameters) supports the following:

name - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name

namespace - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace

tenant - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant

An ike_phase2_profile block (within ipsec.ike_parameters) supports the following:

name - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name

namespace - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace

tenant - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant

A rm_ip_address block (within ipsec.ike_parameters) supports the following:

ipv4 - Optional Block
IPv4 address in dotted decimal notation (e.g., 192.0.2.1)
See IPv4 below.

ipv6 - Optional Block
IPv6 Address specified as hexadecimal numbers separated by ’:‘
See IPv6 below.

An ipv4 block (within ipsec.ike_parameters.rm_ip_address) supports the following:

addr - Optional String
IPv4 Address in string form with dot-decimal notation

An ipv6 block (within ipsec.ike_parameters.rm_ip_address) supports the following:

addr - Optional String
IPv6 Address in form of string. IPv6 address must be specified as hexadecimal numbers separated by ’:’ The address can be compacted by suppressing zeros e.g. ‘2001:db8:0:0:0:0:2:1’ becomes ‘2001:db8::2:1’ or ‘2001:db8:0:0:0:2:0:0’ becomes ‘2001:db8::2::‘

An ipsec_tunnel_parameters block (within ipsec) supports the following:

peer_ip_address - Optional Block
IPv4 Address. IPv4 Address in dot-decimal notation
See Peer IP Address below.

psk - Optional String
The IKE pre-shared key (PSK) is required to ensure the IKE peers can authenticate one another within IKE phase 1 negotiation

segment - Optional Block
Segment Reference Type. Reference to Segment Object
See Segment below.

site_local_inside_network - Optional Block
Enable this option

site_local_network - Optional Block
Enable this option

tunnel_eps - Optional Block
Configure tunnel parameters, local and remote IP addresses
See Tunnel Eps below.

tunnel_mtu - Optional Number
The tunnel MTU defines the maximum size of the packet that can be sent through the tunnel without needing to be fragmented

Ipsec Ipsec Tunnel Parameters Peer IP Address

Section titled “Ipsec Ipsec Tunnel Parameters Peer IP Address”

A peer_ip_address block (within ipsec.ipsec_tunnel_parameters) supports the following:

addr - Optional String
IPv4 Address in string form with dot-decimal notation

A segment block (within ipsec.ipsec_tunnel_parameters) supports the following:

refs - Optional Block
Reference to Segment Object
See Refs below.

Ipsec Ipsec Tunnel Parameters Segment Refs

Section titled “Ipsec Ipsec Tunnel Parameters Segment Refs”

A refs block (within ipsec.ipsec_tunnel_parameters.segment) supports the following:

kind - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then kind will hold the referred object’s kind (e.g. ‘route’)

name - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then name will hold the referred object’s(e.g. Route’s) name

namespace - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then namespace will hold the referred object’s(e.g. Route’s) namespace

tenant - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then tenant will hold the referred object’s(e.g. Route’s) tenant

uid - Optional String
When a configuration object(e.g. Virtual_host) refers to another(e.g route) then uid will hold the referred object’s(e.g. Route’s) uid

A tunnel_eps block (within ipsec.ipsec_tunnel_parameters) supports the following:

interface - Optional String
For the chosen node, specify the interface that will be the tunnel source

local_tunnel_ip - Optional String
For a particular tunnel on a node, specify the local tunnel IP Address i.e. The IP address of the tunnel on the CE node itself and a subnet prefix length

node - Optional String
CE site is composed of multiple nodes. Choose a node that will be part of this external connection

remote_tunnel_ip - Optional String
For a particular tunnel on a node, specify the remote tunnel IP Address i.e. The IP address of the tunnel on the remote gateway and a subnet prefix length

A timeouts block supports the following:

create - Optional String (Defaults to 10 minutes)
Used when creating the resource

delete - Optional String (Defaults to 10 minutes)
Used when deleting the resource

read - Optional String (Defaults to 5 minutes)
Used when retrieving the resource

update - Optional String (Defaults to 10 minutes)
Used when updating the resource


The following type definitions are used throughout this resource. See the full definition here rather than repeated inline.

Object Reference {#common-object-reference}

Section titled “Object Reference {#common-object-reference}”

Object references establish a direct reference from one configuration object to another in F5 Distributed Cloud. References use the format tenant/namespace/name.

FieldTypeDescription
nameStringName of the referenced object
namespaceStringNamespace containing the referenced object
tenantStringTenant of the referenced object (system-managed)

Transformers apply transformations to input values before matching. Multiple transformers can be applied in order.

ValueDescription
LOWER_CASEConvert to lowercase
UPPER_CASEConvert to uppercase
BASE64_DECODEDecodebase64 content
NORMALIZE_PATHNormalize URL path
REMOVE_WHITESPACERemove whitespace characters
URL_DECODEDecode URL-encoded characters
TRIM_LEFTTrim leading whitespace
TRIM_RIGHTTrim trailing whitespace
TRIMTrim both leading and trailing whitespace

HTTP methods used for request matching.

ValueDescription
ANYMatch any HTTP method
GETHTTP GET request
HEADHTTP HEAD request
POSTHTTP POST request
PUTHTTP PUT request
DELETEHTTP DELETE request
CONNECTHTTP CONNECT request
OPTIONSHTTP OPTIONS request
TRACEHTTP TRACE request
PATCHHTTP PATCH request
COPYHTTP COPY request (WebDAV)

TLS Fingerprints {#common-tls-fingerprints}

Section titled “TLS Fingerprints {#common-tls-fingerprints}”

TLS fingerprint categories for malicious client detection.

ValueDescription
TLS_FINGERPRINT_NONENo fingerprint matching
ANY_MALICIOUS_FINGERPRINTMatch any known malicious fingerprint
ADWAREAdware-associated fingerprints
DRIDEXDridex malware fingerprints
GOOTKITGootkit malware fingerprints
RANSOMWARERansomware-associated fingerprints
TRICKBOTTrickbot malware fingerprints

IP Threat Categories {#common-ip-threat-categories}

Section titled “IP Threat Categories {#common-ip-threat-categories}”

IP address threat categories for security filtering.

ValueDescription
SPAM_SOURCESKnown spam sources
WINDOWS_EXPLOITSWindows exploit sources
WEB_ATTACKSWeb attack sources
BOTNETSKnown botnet IPs
SCANNERSNetwork scanner IPs
REPUTATIONPoor reputation IPs
PHISHINGPhishing-related IPs
PROXYAnonymous proxy IPs
MOBILE_THREATSMobile threat sources
TOR_PROXYTor exit nodes
DENIAL_OF_SERVICEDoS attack sources
NETWORKKnown bad network ranges

Import is supported using the following syntax:

Terminal window
# Import using namespace/name format
terraform import f5xc_external_connector.example system/example