1000
, or a string to specify a range of origin ports, for example "1000-2000"
."tcp/1000"
, or a range of ports, for example "tcp/1000-2000"
.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": true,
"dns": {
"name": "ssh.example.com",
"type": "CNAME"
},
"edge_ips": {
"connectivity": "all",
"type": "dynamic"
},
"ip_firewall": true,
"origin_dns": {
"name": "origin.example.com",
"ttl": 600,
"type": ""
},
"origin_port": 22,
"protocol": "tcp/22",
"proxy_protocol": "off",
"tls": "full",
"traffic_type": "direct"
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/zones//spectrum/apps' \
--header 'Content-Type: application/json' \
--data-raw '{
"argo_smart_routing": true,
"dns": {
"name": "ssh.example.com",
"type": "CNAME"
},
"edge_ips": {
"connectivity": "all",
"type": "dynamic"
},
"ip_firewall": true,
"origin_dns": {
"name": "origin.example.com",
"ttl": 600,
"type": ""
},
"origin_port": 22,
"protocol": "tcp/22",
"proxy_protocol": "off",
"tls": "full",
"traffic_type": "direct"
}'
{
"errors": [],
"messages": [],
"result": {
"argo_smart_routing": true,
"created_on": "2014-01-02T02:20:00Z",
"dns": {
"name": "ssh.example.com",
"type": "CNAME"
},
"edge_ips": {
"connectivity": "all",
"type": "dynamic"
},
"id": "ea95132c15732412d22c1476fa83f27a",
"ip_firewall": true,
"modified_on": "2014-01-02T02:20:00Z",
"origin_dns": {
"name": "origin.example.com",
"ttl": 600,
"type": ""
},
"origin_port": 22,
"protocol": "tcp/22",
"proxy_protocol": "off",
"tls": "full",
"traffic_type": "direct"
},
"success": true
}