- Home
- Documentation
- resources
- f5xc_external_connector Resource - terraform-provider-f5xc
f5xc_external_connector Resource - terraform-provider-f5xc
f5xc_external_connector (Resource)
Section titled “f5xc_external_connector (Resource)”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.
Example Usage
Section titled “Example Usage”# 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 configurationresource "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 }}Argument Reference
Section titled “Argument Reference”🔶 High Risk Operations — Some operations on this resource have high danger level. Destructive operations may require confirmation.
Metadata Argument Reference
Section titled “Metadata Argument Reference”• 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
Spec Argument Reference
Section titled “Spec Argument Reference”• 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.
Attributes Reference
Section titled “Attributes Reference”In addition to all arguments above, the following attributes are exported:
• id - Optional String
Unique identifier for the resource
CE Site Reference
Section titled “CE Site Reference”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.
Gre Gre Parameters
Section titled “Gre Gre Parameters”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
Gre Gre Parameters Peer IP Address
Section titled “Gre Gre Parameters Peer IP Address”A peer_ip_address block (within gre.gre_parameters) supports the following:
• addr - Optional String
IPv4 Address in string form with dot-decimal notation
Gre Gre Parameters Segment
Section titled “Gre Gre Parameters Segment”A segment block (within gre.gre_parameters) supports the following:
• refs - Optional Block
Reference to Segment Object
See Refs below.
Gre Gre Parameters Segment Refs
Section titled “Gre Gre Parameters Segment Refs”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
Gre Gre Parameters Tunnel Eps
Section titled “Gre Gre Parameters Tunnel Eps”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.
Ipsec IKE Parameters
Section titled “Ipsec IKE Parameters”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
Ipsec IKE Parameters Dpd Keep Alive Timer
Section titled “Ipsec IKE Parameters Dpd Keep Alive Timer”A dpd_keep_alive_timer block (within ipsec.ike_parameters) supports the following:
• timeout - Optional Number
Keepalive Timer. Operation timeout duration
Ipsec IKE Parameters IKE Phase1 Profile
Section titled “Ipsec IKE Parameters IKE Phase1 Profile”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
Ipsec IKE Parameters IKE Phase2 Profile
Section titled “Ipsec IKE Parameters IKE Phase2 Profile”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
Ipsec IKE Parameters Rm IP Address
Section titled “Ipsec IKE Parameters Rm IP Address”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.
Ipsec IKE Parameters Rm IP Address IPv4
Section titled “Ipsec IKE Parameters Rm IP Address IPv4”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
Ipsec IKE Parameters Rm IP Address IPv6
Section titled “Ipsec IKE Parameters Rm IP Address IPv6”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::‘
Ipsec Ipsec Tunnel Parameters
Section titled “Ipsec Ipsec Tunnel Parameters”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
Ipsec Ipsec Tunnel Parameters Segment
Section titled “Ipsec Ipsec Tunnel Parameters Segment”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
Ipsec Ipsec Tunnel Parameters Tunnel Eps
Section titled “Ipsec Ipsec Tunnel Parameters Tunnel Eps”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
Timeouts
Section titled “Timeouts”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
Common Types
Section titled “Common Types”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.
| Field | Type | Description |
|---|---|---|
name | String | Name of the referenced object |
namespace | String | Namespace containing the referenced object |
tenant | String | Tenant of the referenced object (system-managed) |
Transformers {#common-transformers}
Section titled “Transformers {#common-transformers}”Transformers apply transformations to input values before matching. Multiple transformers can be applied in order.
| Value | Description |
|---|---|
LOWER_CASE | Convert to lowercase |
UPPER_CASE | Convert to uppercase |
BASE64_DECODE | Decodebase64 content |
NORMALIZE_PATH | Normalize URL path |
REMOVE_WHITESPACE | Remove whitespace characters |
URL_DECODE | Decode URL-encoded characters |
TRIM_LEFT | Trim leading whitespace |
TRIM_RIGHT | Trim trailing whitespace |
TRIM | Trim both leading and trailing whitespace |
HTTP Methods {#common-http-methods}
Section titled “HTTP Methods {#common-http-methods}”HTTP methods used for request matching.
| Value | Description |
|---|---|
ANY | Match any HTTP method |
GET | HTTP GET request |
HEAD | HTTP HEAD request |
POST | HTTP POST request |
PUT | HTTP PUT request |
DELETE | HTTP DELETE request |
CONNECT | HTTP CONNECT request |
OPTIONS | HTTP OPTIONS request |
TRACE | HTTP TRACE request |
PATCH | HTTP PATCH request |
COPY | HTTP COPY request (WebDAV) |
TLS Fingerprints {#common-tls-fingerprints}
Section titled “TLS Fingerprints {#common-tls-fingerprints}”TLS fingerprint categories for malicious client detection.
| Value | Description |
|---|---|
TLS_FINGERPRINT_NONE | No fingerprint matching |
ANY_MALICIOUS_FINGERPRINT | Match any known malicious fingerprint |
ADWARE | Adware-associated fingerprints |
DRIDEX | Dridex malware fingerprints |
GOOTKIT | Gootkit malware fingerprints |
RANSOMWARE | Ransomware-associated fingerprints |
TRICKBOT | Trickbot 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.
| Value | Description |
|---|---|
SPAM_SOURCES | Known spam sources |
WINDOWS_EXPLOITS | Windows exploit sources |
WEB_ATTACKS | Web attack sources |
BOTNETS | Known botnet IPs |
SCANNERS | Network scanner IPs |
REPUTATION | Poor reputation IPs |
PHISHING | Phishing-related IPs |
PROXY | Anonymous proxy IPs |
MOBILE_THREATS | Mobile threat sources |
TOR_PROXY | Tor exit nodes |
DENIAL_OF_SERVICE | DoS attack sources |
NETWORK | Known bad network ranges |
Import
Section titled “Import”Import is supported using the following syntax:
# Import using namespace/name formatterraform import f5xc_external_connector.example system/example