Spectrum
SpectrumApps
resource cloudflare_spectrum_application
required
optional
List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
The destination port at the origin. Only specified in conjunction with origin_dns. May use an integer to specify a single origin port, for example 1000, or a string to specify a range of origin ports, for example "1000-2000".
Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the "protocol" field.
Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
Enables IP Access Rules for this application. Notes: Only available for TCP applications.
Enables Proxy Protocol to the origin. Refer to Enable Proxy protocol for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the protocol. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
cloudflare_spectrum_application
resource "cloudflare_spectrum_application" "example_spectrum_application" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
dns = {
name = "ssh.example.com"
type = "CNAME"
}
protocol = "tcp/22"
traffic_type = "direct"
argo_smart_routing = true
edge_ips = {
connectivity = "all"
type = "dynamic"
}
ip_firewall = false
origin_direct = ["tcp://127.0.0.1:8080"]
origin_dns = {
name = "origin.example.com"
ttl = 600
type = ""
}
origin_port = 22
proxy_protocol = "off"
tls = "off"
}
data cloudflare_spectrum_application
computed
Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
Enables IP Access Rules for this application. Notes: Only available for TCP applications.
The port configuration at Cloudflare's edge. May specify a single port, for example "tcp/1000", or a range of ports, for example "tcp/1000-2000".
Enables Proxy Protocol to the origin. Refer to Enable Proxy protocol for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application's type is derived from the protocol. When set to "http" or "https", Spectrum will apply Cloudflare's HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
The destination port at the origin. Only specified in conjunction with origin_dns. May use an integer to specify a single origin port, for example 1000, or a string to specify a range of origin ports, for example "1000-2000".
Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the "protocol" field.
cloudflare_spectrum_application
data "cloudflare_spectrum_application" "example_spectrum_application" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
app_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
data cloudflare_spectrum_applications
optional
cloudflare_spectrum_applications
data "cloudflare_spectrum_applications" "example_spectrum_applications" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}