---
title: Spectrum
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Spectrum

##### ModelsExpand Collapse

<details>

<summary>

DNS {name, type }

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

</summary>

name?: string

The name of the DNS record associated with the application.

formathostname

<a href="#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type?: "CNAME"| "ADDRESS"

The type of DNS record associated with the application.

</summary>

One of the following:

"CNAME"

<a href="#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"ADDRESS"

<a href="#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)>)

<details>

<summary>

EdgeIPs = Dynamic {connectivity, type } | Static {ips, type }

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

</summary>

One of the following:

<details>

<summary>

Dynamic {connectivity, type }

</summary>

<details>

<summary>

connectivity?: "all"| "ipv4"| "ipv6"

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

</summary>

One of the following:

"all"

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%200">Link to this property</a>

"ipv4"

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%201">Link to this property</a>

"ipv6"

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity">Link to this property</a>

type?: "dynamic"

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.

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Static {ips, type }

</summary>

ips?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20ips">Link to this property</a>

type?: "static"

The type of edge IP configuration specified. Statically allocated edge IPs use customer IPs in accordance with the ips array you specify. Only valid with ADDRESS DNS names.

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)>)

<details>

<summary>

OriginDNS {name, ttl, type }

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

</summary>

name?: string

The name of the DNS record associated with the origin.

formathostname

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

ttl?: number

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

minimum600

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20ttl">Link to this property</a>

<details>

<summary>

type?: ""| "A"| "AAAA"| "SRV"

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

</summary>

One of the following:

""

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"A"

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"AAAA"

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"SRV"

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)>)

<details>

<summary>

OriginPort = number| 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 <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

</summary>

One of the following:

number

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

string

<a href="#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)>)

#### SpectrumAnalytics

#### SpectrumAnalyticsAggregates

#### SpectrumAnalyticsAggregatesCurrents

##### [Get current aggregated analytics](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/analytics/subresources/aggregates/subresources/currents/methods/get)

client.spectrum.analytics.aggregates.currents.get(CurrentGetParams {zone\_id, appID, colo\_name } params, RequestOptionsoptions?): [CurrentGetResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)>) {appID, bytesEgress, bytesIngress, 2 more }

GET/zones/{zone\_id}/spectrum/analytics/aggregate/current

##### ModelsExpand Collapse

<details>

<summary>

CurrentGetResponse = Array&lt;CurrentGetResponseItem&gt;

</summary>

appID: string

Application identifier.

maxLength32

<a href="#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20appID">Link to this property</a>

bytesEgress: number

Number of bytes sent.

<a href="#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20bytesEgress">Link to this property</a>

bytesIngress: number

Number of bytes received.

<a href="#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20bytesIngress">Link to this property</a>

connections: number

Number of connections.

<a href="#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20connections">Link to this property</a>

durationAvg: number

Average duration of connections.

<a href="#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20durationAvg">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.analytics.aggregates.currents%20%3E%20(model)%20current_get_response%20%3E%20(schema)>)

#### SpectrumAnalyticsEvents

##### ModelsExpand Collapse

<details>

<summary>

Dimension = "event"| "appID"| "coloName"| "ipVersion"

</summary>

One of the following:

"event"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"appID"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"coloName"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"ipVersion"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)>)

#### SpectrumAnalyticsEventsBytimes

##### [Get analytics by time](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/analytics/subresources/events/subresources/bytimes/methods/get)

client.spectrum.analytics.events.bytimes.get(BytimeGetParams {zone\_id, time\_delta, dimensions, 5 more } params, RequestOptionsoptions?): [BytimeGetResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)>) {data, data\_lag, max, 5 more }

GET/zones/{zone\_id}/spectrum/analytics/events/bytime

##### ModelsExpand Collapse

<details>

<summary>

BytimeGetResponse {data, data\_lag, max, 5 more }

</summary>

<details>

<summary>

data: Array&lt;Data&gt;

List of columns returned by the analytics query.

</summary>

dimensions?: Array&lt;string&gt;

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metrics?: Array&lt;number&gt;| Array&lt;Array&lt;number&gt;&gt;

</summary>

One of the following:

Array&lt;number&gt;

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics%20%3E%20(variant)%200">Link to this property</a>

Array&lt;Array&lt;number&gt;&gt;

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

data\_lag: number

Number of seconds between current time and last processed event, i.e. how many seconds of data could be missing.

minimum0

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20data_lag">Link to this property</a>

max: Record&lt;string, number&gt;

Maximum result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20max">Link to this property</a>

min: Record&lt;string, number&gt;

Minimum result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20min">Link to this property</a>

<details>

<summary>

query: Query {dimensions, filters, limit, 4 more }

</summary>

<details>

<summary>

dimensions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)">Dimension</a>&gt;

Can be used to break down the data by given attributes. Options are:

| Dimension | Name | Example |
| --- | --- | --- |
| event | Connection Event | connect, progress, disconnect, originError, clientFiltered |
| appID | Application ID | 40d67c87c6cd4b889a4fd57805225e85 |
| coloName | Colo Name | SFO |
| ipVersion | IP version used by the client | 4, 6. |

</summary>

One of the following:

"event"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"appID"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"coloName"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"ipVersion"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20dimensions">Link to this property</a>

filters?: string

Used to filter rows by one or more dimensions. Filters can be combined using OR and AND boolean logic. AND takes precedence over OR in all the expressions. The OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. The AND operator is defined using a semicolon (;) or AND keyword surrounded by whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) and needs to be percent-encoded as %3B. Comparison options are:

| Operator | Name | URL Encoded |
| --- | --- | --- |
| == | Equals | %3D%3D |
| != | Does not equals | !%3D |
| &gt; | Greater Than | %3E |
| &lt; | Less Than | %3C |
| &gt;= | Greater than or equal to | %3E%3D |
| &lt;= | Less than or equal to | %3C%3D |

Use the above to construct filters.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20filters">Link to this property</a>

limit?: number

Limit number of returned metrics.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20limit">Link to this property</a>

<details>

<summary>

metrics?: Array&lt;"count"| "bytesIngress"| "bytesEgress"| 4 more&gt;

One or more metrics to compute. Options are:

| Metric | Name | Example | Unit |
| --- | --- | --- | --- |
| count | Count of total events | 1000 | Count |
| bytesIngress | Sum of ingress bytes | 1000 | Sum |
| bytesEgress | Sum of egress bytes | 1000 | Sum |
| durationAvg | Average connection duration | 1.0 | Time in milliseconds |
| durationMedian | Median connection duration | 1.0 | Time in milliseconds |
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |

</summary>

One of the following:

"count"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"bytesIngress"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"bytesEgress"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"durationAvg"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"durationMedian"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"duration90th"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"duration99th"

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics">Link to this property</a>

since?: string

Start of time interval to query, defaults to <code>until</code> - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.

formatdate-time

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20since">Link to this property</a>

sort?: Array&lt;string&gt;

The sort order for the result set; sort fields must be included in <code>metrics</code> or <code>dimensions</code>.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20sort">Link to this property</a>

until?: string

End of time interval to query, defaults to current time. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.

formatdate-time

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20until">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20query">Link to this property</a>

rows: number

Total number of rows in the result.

minimum0

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20rows">Link to this property</a>

totals: Record&lt;string, number&gt;

Total result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20totals">Link to this property</a>

time\_intervals?: Array&lt;Array&lt;string&gt;&gt;

List of time interval buckets: \[start, end].

<a href="#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)%20%3E%20(property)%20time_intervals">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.analytics.events.bytimes%20%3E%20(model)%20bytime_get_response%20%3E%20(schema)>)

#### SpectrumAnalyticsEventsSummaries

##### [Get analytics summary](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/analytics/subresources/events/subresources/summaries/methods/get)

client.spectrum.analytics.events.summaries.get(SummaryGetParams {zone\_id, dimensions, filters, 4 more } params, RequestOptionsoptions?): [SummaryGetResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)>) {data, data\_lag, max, 5 more }

GET/zones/{zone\_id}/spectrum/analytics/events/summary

##### ModelsExpand Collapse

<details>

<summary>

SummaryGetResponse {data, data\_lag, max, 5 more }

</summary>

<details>

<summary>

data: Array&lt;Data&gt;

List of columns returned by the analytics query.

</summary>

dimensions?: Array&lt;string&gt;

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metrics?: Array&lt;number&gt;| Array&lt;Array&lt;number&gt;&gt;

</summary>

One of the following:

Array&lt;number&gt;

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics%20%3E%20(variant)%200">Link to this property</a>

Array&lt;Array&lt;number&gt;&gt;

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(items)%20%3E%20(property)%20metrics">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

data\_lag: number

Number of seconds between current time and last processed event, i.e. how many seconds of data could be missing.

minimum0

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20data_lag">Link to this property</a>

max: Record&lt;string, number&gt;

Maximum result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20max">Link to this property</a>

min: Record&lt;string, number&gt;

Minimum result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20min">Link to this property</a>

<details>

<summary>

query: Query {dimensions, filters, limit, 4 more }

</summary>

<details>

<summary>

dimensions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)">Dimension</a>&gt;

Can be used to break down the data by given attributes. Options are:

| Dimension | Name | Example |
| --- | --- | --- |
| event | Connection Event | connect, progress, disconnect, originError, clientFiltered |
| appID | Application ID | 40d67c87c6cd4b889a4fd57805225e85 |
| coloName | Colo Name | SFO |
| ipVersion | IP version used by the client | 4, 6. |

</summary>

One of the following:

"event"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"appID"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"coloName"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"ipVersion"

<a href="#(resource)%20spectrum.analytics.events%20%3E%20(model)%20dimension%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20dimensions">Link to this property</a>

filters?: string

Used to filter rows by one or more dimensions. Filters can be combined using OR and AND boolean logic. AND takes precedence over OR in all the expressions. The OR operator is defined using a comma (,) or OR keyword surrounded by whitespace. The AND operator is defined using a semicolon (;) or AND keyword surrounded by whitespace. Note that the semicolon is a reserved character in URLs (rfc1738) and needs to be percent-encoded as %3B. Comparison options are:

| Operator | Name | URL Encoded |
| --- | --- | --- |
| == | Equals | %3D%3D |
| != | Does not equals | !%3D |
| &gt; | Greater Than | %3E |
| &lt; | Less Than | %3C |
| &gt;= | Greater than or equal to | %3E%3D |
| &lt;= | Less than or equal to | %3C%3D |

Use the above to construct filters.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20filters">Link to this property</a>

limit?: number

Limit number of returned metrics.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20limit">Link to this property</a>

<details>

<summary>

metrics?: Array&lt;"count"| "bytesIngress"| "bytesEgress"| 4 more&gt;

One or more metrics to compute. Options are:

| Metric | Name | Example | Unit |
| --- | --- | --- | --- |
| count | Count of total events | 1000 | Count |
| bytesIngress | Sum of ingress bytes | 1000 | Sum |
| bytesEgress | Sum of egress bytes | 1000 | Sum |
| durationAvg | Average connection duration | 1.0 | Time in milliseconds |
| durationMedian | Median connection duration | 1.0 | Time in milliseconds |
| duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
| duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |

</summary>

One of the following:

"count"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"bytesIngress"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"bytesEgress"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"durationAvg"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

"durationMedian"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

"duration90th"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

"duration99th"

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20metrics">Link to this property</a>

since?: string

Start of time interval to query, defaults to <code>until</code> - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.

formatdate-time

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20since">Link to this property</a>

sort?: Array&lt;string&gt;

The sort order for the result set; sort fields must be included in <code>metrics</code> or <code>dimensions</code>.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20sort">Link to this property</a>

until?: string

End of time interval to query, defaults to current time. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.

formatdate-time

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query%20%3E%20(property)%20until">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20query">Link to this property</a>

rows: number

Total number of rows in the result.

minimum0

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20rows">Link to this property</a>

totals: Record&lt;string, number&gt;

Total result for each selected metrics across all data.

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20totals">Link to this property</a>

time\_intervals?: Array&lt;Array&lt;string&gt;&gt;

List of time interval buckets: \[start, end].

<a href="#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)%20%3E%20(property)%20time_intervals">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.analytics.events.summaries%20%3E%20(model)%20summary_get_response%20%3E%20(schema)>)

#### SpectrumApps

##### [List Spectrum applications](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/apps/methods/list)

client.spectrum.apps.list(AppListParams {zone\_id, direction, order, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray< [AppListResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)>)>

GET/zones/{zone\_id}/spectrum/apps

##### [Get Spectrum application configuration](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/apps/methods/get)

client.spectrum.apps.get(stringappID, AppGetParams {zone\_id } params, RequestOptionsoptions?): [AppGetResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)>)

GET/zones/{zone\_id}/spectrum/apps/{app\_id}

##### [Create Spectrum application using a name for the origin](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/apps/methods/create)

client.spectrum.apps.create(AppCreateParamsparams, RequestOptionsoptions?): [AppCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)>)

POST/zones/{zone\_id}/spectrum/apps

##### [Update Spectrum application configuration using a name for the origin](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/apps/methods/update)

client.spectrum.apps.update(stringappID, AppUpdateParamsparams, RequestOptionsoptions?): [AppUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)>)

PUT/zones/{zone\_id}/spectrum/apps/{app\_id}

##### [Delete Spectrum application](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/apps/methods/delete)

client.spectrum.apps.delete(stringappID, AppDeleteParams {zone\_id } params, RequestOptionsoptions?): [AppDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)>) {id } | null

DELETE/zones/{zone\_id}/spectrum/apps/{app\_id}

##### ModelsExpand Collapse

<details>

<summary>

AppListResponse = SpectrumConfigAppConfig {id, created\_on, dns, 13 more } | SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"| "http"| "https"| "worker"

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 <code>protocol</code>. 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. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing?: boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

edge\_ips?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall?: boolean

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

origin\_dns?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> {name, ttl, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

origin\_port?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

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 <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id?: string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol?: "off"| "v1"| "v2"| "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls?: "off"| "flexible"| "full"| "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id?: string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)>)

<details>

<summary>

AppGetResponse = SpectrumConfigAppConfig {id, created\_on, dns, 13 more } | SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"| "http"| "https"| "worker"

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 <code>protocol</code>. 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. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing?: boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

edge\_ips?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall?: boolean

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

origin\_dns?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> {name, ttl, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

origin\_port?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

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 <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id?: string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol?: "off"| "v1"| "v2"| "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls?: "off"| "flexible"| "full"| "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id?: string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(model)%20app_get_response%20%3E%20(schema)>)

<details>

<summary>

AppCreateResponse = SpectrumConfigAppConfig {id, created\_on, dns, 13 more } | SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"| "http"| "https"| "worker"

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 <code>protocol</code>. 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. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing?: boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

edge\_ips?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall?: boolean

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

origin\_dns?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> {name, ttl, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

origin\_port?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

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 <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id?: string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol?: "off"| "v1"| "v2"| "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls?: "off"| "flexible"| "full"| "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id?: string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)>)

<details>

<summary>

AppUpdateResponse = SpectrumConfigAppConfig {id, created\_on, dns, 13 more } | SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"| "http"| "https"| "worker"

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 <code>protocol</code>. 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. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing?: boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

edge\_ips?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall?: boolean

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

origin\_dns?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> {name, ttl, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

origin\_port?: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

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 <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id?: string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol?: "off"| "v1"| "v2"| "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls?: "off"| "flexible"| "full"| "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id?: string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

dns: <a href="https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> {name, type }

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct?: Array&lt;string&gt;

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

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)>)

<details>

<summary>

AppDeleteResponse {id }

</summary>

id: string

Identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)>)

#### SpectrumProtocols

##### [List Spectrum application protocols](https://developers.cloudflare.com/api/typescript/resources/spectrum/subresources/protocols/methods/list)

client.spectrum.protocols.list(ProtocolListParams {zone\_id } params, RequestOptionsoptions?): SinglePage< [ProtocolListResponse](<https://developers.cloudflare.com/api/typescript/resources/spectrum#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)>) {description, name, ports, transport } >

GET/zones/{zone\_id}/spectrum/protocols

##### ModelsExpand Collapse

<details>

<summary>

ProtocolListResponse {description, name, ports, transport }

</summary>

description: string

The full name of the application protocol.

<a href="#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

name: string

The short name of the application protocol.

<a href="#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

ports: Array&lt;number&gt;

The available listening ports for the given protocol.

<a href="#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)%20%3E%20(property)%20ports">Link to this property</a>

transport: string

The transport layer protocol used by the application protocol

<a href="#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)%20%3E%20(property)%20transport">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.protocols%20%3E%20(model)%20protocol_list_response%20%3E%20(schema)>)