Skip to content
Start here

Spectrum

SpectrumApps

resource cloudflare_spectrum_application

required Expand Collapse
zone_id: String

Zone identifier.

protocol: String

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".

dns: Attributes

The name and type of DNS record for the Spectrum application.

name?: String

The name of the DNS record associated with the application.

type?: String

The type of DNS record associated with the application.

optional Expand Collapse
origin_direct?: List[String]

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

origin_dns?: Attributes

The name and type of DNS record for the Spectrum application.

name?: String

The name of the DNS record associated with the origin.

ttl?: Int64

The TTL of our resolution of your DNS record in seconds.

type?: String

The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.

origin_port?: Dynamic Int64 | String

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.

argo_smart_routing?: Bool

Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".

ip_firewall?: Bool

Enables IP Access Rules for this application. Notes: Only available for TCP applications.

proxy_protocol?: String

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.

tls?: String

The type of TLS termination associated with the application.

traffic_type?: String

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.

edge_ips?: Attributes

The anycast edge IP configuration for the hostname of this application.

connectivity?: String

The IP versions supported for inbound connections on Spectrum anycast IPs.

type?: String

The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.

ips?: List[String]

The array of customer owned IPs we broadcast via anycast for this hostname and application.

computed Expand Collapse
id: String

App identifier.

created_on: Time

When the Application was created.

modified_on: Time

When the Application was last modified.

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

required Expand Collapse
zone_id: String

Zone identifier.

optional Expand Collapse
app_id?: String

App identifier.

filter?: Attributes
direction?: String

Sets the direction by which results are ordered.

order?: String

Application field by which results are ordered.

computed Expand Collapse
id: String

App identifier.

argo_smart_routing: Bool

Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".

created_on: Time

When the Application was created.

ip_firewall: Bool

Enables IP Access Rules for this application. Notes: Only available for TCP applications.

modified_on: Time

When the Application was last modified.

protocol: String

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".

proxy_protocol: String

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.

tls: String

The type of TLS termination associated with the application.

traffic_type: String

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.

origin_direct: List[String]

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

dns: Attributes

The name and type of DNS record for the Spectrum application.

name: String

The name of the DNS record associated with the application.

type: String

The type of DNS record associated with the application.

edge_ips: Attributes

The anycast edge IP configuration for the hostname of this application.

connectivity: String

The IP versions supported for inbound connections on Spectrum anycast IPs.

type: String

The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.

ips: List[String]

The array of customer owned IPs we broadcast via anycast for this hostname and application.

origin_dns: Attributes

The name and type of DNS record for the Spectrum application.

name: String

The name of the DNS record associated with the origin.

ttl: Int64

The TTL of our resolution of your DNS record in seconds.

type: String

The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.

origin_port: Dynamic Int64 | String

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

required Expand Collapse
zone_id: String

Zone identifier.

optional Expand Collapse
direction?: String

Sets the direction by which results are ordered.

order?: String

Application field by which results are ordered.

max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: String

App identifier.

created_on: Time

When the Application was created.

dns: Attributes

The name and type of DNS record for the Spectrum application.

name: String

The name of the DNS record associated with the application.

type: String

The type of DNS record associated with the application.

modified_on: Time

When the Application was last modified.

protocol: String

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".

traffic_type: String

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.

argo_smart_routing: Bool

Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".

edge_ips: Attributes

The anycast edge IP configuration for the hostname of this application.

connectivity: String

The IP versions supported for inbound connections on Spectrum anycast IPs.

type: String

The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.

ips: List[String]

The array of customer owned IPs we broadcast via anycast for this hostname and application.

ip_firewall: Bool

Enables IP Access Rules for this application. Notes: Only available for TCP applications.

origin_direct: List[String]

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

origin_dns: Attributes

The name and type of DNS record for the Spectrum application.

name: String

The name of the DNS record associated with the origin.

ttl: Int64

The TTL of our resolution of your DNS record in seconds.

type: String

The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.

origin_port: Dynamic Int64 | String

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.

proxy_protocol: String

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.

tls: String

The type of TLS termination associated with the application.

cloudflare_spectrum_applications

data "cloudflare_spectrum_applications" "example_spectrum_applications" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}