| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/spectrum/subresources/apps/methods/get | [Back] [Original] |
Gets the application configuration of a specific application inside a zone.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Zone Settings WriteZone Settings ReadThe port configuration at Cloudflares edge. May specify a single port, for example "tcp/1000", or a range of ports, for example "tcp/1000-2000".
Determines how data travels from the edge to your origin. When set to direct, Spectrum will send traffic directly to your origin, and the applications type is derived from the protocol. When set to http or https, Spectrum will apply Cloudflares HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly.
Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic_type set to direct.
The anycast edge IP configuration for the hostname of this application.
Enables IP Access Rules for this application. Notes: Only available for TCP applications.
List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
The destination port at the origin. Only specified in conjunction with origin_dns. May use an integer to specify a single origin port, for example 1000, or a string to specify a range of origin ports, for example "1000-2000".
Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the protocol field.
Enables Proxy Protocol to the origin. Refer to Enable Proxy protocol for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/spectrum/apps/$APP_ID \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"created_on": "2014-01-01T05:20:00.12345Z",
"dns": {
"name": "ssh.example.com",
"type": "CNAME"
},
"modified_on": "2014-01-01T05:20:00.12345Z",
"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",
"virtual_network_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"created_on": "2014-01-01T05:20:00.12345Z",
"dns": {
"name": "ssh.example.com",
"type": "CNAME"
},
"modified_on": "2014-01-01T05:20:00.12345Z",
"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",
"virtual_network_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}| Web Proxy Viewer | New URL | Original Page |