1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. SpectrumApplication
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

cloudflare.SpectrumApplication

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleSpectrumApplication = new cloudflare.SpectrumApplication("example_spectrum_application", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        dns: {
            name: "ssh.example.com",
            type: "CNAME",
        },
        ipFirewall: true,
        protocol: "tcp/22",
        proxyProtocol: "off",
        tls: "full",
        trafficType: "direct",
        argoSmartRouting: true,
        edgeIps: {
            connectivity: "all",
            type: "dynamic",
        },
        originDirects: ["tcp://127.0.0.1:8080"],
        originDns: {
            name: "origin.example.com",
            ttl: 600,
            type: "",
        },
        originPort: 22,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_spectrum_application = cloudflare.SpectrumApplication("example_spectrum_application",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        dns={
            "name": "ssh.example.com",
            "type": "CNAME",
        },
        ip_firewall=True,
        protocol="tcp/22",
        proxy_protocol="off",
        tls="full",
        traffic_type="direct",
        argo_smart_routing=True,
        edge_ips={
            "connectivity": "all",
            "type": "dynamic",
        },
        origin_directs=["tcp://127.0.0.1:8080"],
        origin_dns={
            "name": "origin.example.com",
            "ttl": 600,
            "type": "",
        },
        origin_port=22)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewSpectrumApplication(ctx, "example_spectrum_application", &cloudflare.SpectrumApplicationArgs{
    			ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Dns: &cloudflare.SpectrumApplicationDnsArgs{
    				Name: pulumi.String("ssh.example.com"),
    				Type: pulumi.String("CNAME"),
    			},
    			IpFirewall:       pulumi.Bool(true),
    			Protocol:         pulumi.String("tcp/22"),
    			ProxyProtocol:    pulumi.String("off"),
    			Tls:              pulumi.String("full"),
    			TrafficType:      pulumi.String("direct"),
    			ArgoSmartRouting: pulumi.Bool(true),
    			EdgeIps: &cloudflare.SpectrumApplicationEdgeIpsArgs{
    				Connectivity: pulumi.String("all"),
    				Type:         pulumi.String("dynamic"),
    			},
    			OriginDirects: pulumi.StringArray{
    				pulumi.String("tcp://127.0.0.1:8080"),
    			},
    			OriginDns: &cloudflare.SpectrumApplicationOriginDnsArgs{
    				Name: pulumi.String("origin.example.com"),
    				Ttl:  pulumi.Int(600),
    				Type: pulumi.String(""),
    			},
    			OriginPort: pulumi.Any(22),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSpectrumApplication = new Cloudflare.SpectrumApplication("example_spectrum_application", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Dns = new Cloudflare.Inputs.SpectrumApplicationDnsArgs
            {
                Name = "ssh.example.com",
                Type = "CNAME",
            },
            IpFirewall = true,
            Protocol = "tcp/22",
            ProxyProtocol = "off",
            Tls = "full",
            TrafficType = "direct",
            ArgoSmartRouting = true,
            EdgeIps = new Cloudflare.Inputs.SpectrumApplicationEdgeIpsArgs
            {
                Connectivity = "all",
                Type = "dynamic",
            },
            OriginDirects = new[]
            {
                "tcp://127.0.0.1:8080",
            },
            OriginDns = new Cloudflare.Inputs.SpectrumApplicationOriginDnsArgs
            {
                Name = "origin.example.com",
                Ttl = 600,
                Type = "",
            },
            OriginPort = 22,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.SpectrumApplication;
    import com.pulumi.cloudflare.SpectrumApplicationArgs;
    import com.pulumi.cloudflare.inputs.SpectrumApplicationDnsArgs;
    import com.pulumi.cloudflare.inputs.SpectrumApplicationEdgeIpsArgs;
    import com.pulumi.cloudflare.inputs.SpectrumApplicationOriginDnsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleSpectrumApplication = new SpectrumApplication("exampleSpectrumApplication", SpectrumApplicationArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .dns(SpectrumApplicationDnsArgs.builder()
                    .name("ssh.example.com")
                    .type("CNAME")
                    .build())
                .ipFirewall(true)
                .protocol("tcp/22")
                .proxyProtocol("off")
                .tls("full")
                .trafficType("direct")
                .argoSmartRouting(true)
                .edgeIps(SpectrumApplicationEdgeIpsArgs.builder()
                    .connectivity("all")
                    .type("dynamic")
                    .build())
                .originDirects("tcp://127.0.0.1:8080")
                .originDns(SpectrumApplicationOriginDnsArgs.builder()
                    .name("origin.example.com")
                    .ttl(600)
                    .type("")
                    .build())
                .originPort(22)
                .build());
    
        }
    }
    
    resources:
      exampleSpectrumApplication:
        type: cloudflare:SpectrumApplication
        name: example_spectrum_application
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          dns:
            name: ssh.example.com
            type: CNAME
          ipFirewall: true
          protocol: tcp/22
          proxyProtocol: off
          tls: full
          trafficType: direct
          argoSmartRouting: true
          edgeIps:
            connectivity: all
            type: dynamic
          originDirects:
            - tcp://127.0.0.1:8080
          originDns:
            name: origin.example.com
            ttl: 600
            type: ""
          originPort: 22
    

    Create SpectrumApplication Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SpectrumApplication(name: string, args: SpectrumApplicationArgs, opts?: CustomResourceOptions);
    @overload
    def SpectrumApplication(resource_name: str,
                            args: SpectrumApplicationArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SpectrumApplication(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dns: Optional[SpectrumApplicationDnsArgs] = None,
                            protocol: Optional[str] = None,
                            zone_id: Optional[str] = None,
                            argo_smart_routing: Optional[bool] = None,
                            edge_ips: Optional[SpectrumApplicationEdgeIpsArgs] = None,
                            ip_firewall: Optional[bool] = None,
                            origin_directs: Optional[Sequence[str]] = None,
                            origin_dns: Optional[SpectrumApplicationOriginDnsArgs] = None,
                            origin_port: Optional[Any] = None,
                            proxy_protocol: Optional[str] = None,
                            tls: Optional[str] = None,
                            traffic_type: Optional[str] = None)
    func NewSpectrumApplication(ctx *Context, name string, args SpectrumApplicationArgs, opts ...ResourceOption) (*SpectrumApplication, error)
    public SpectrumApplication(string name, SpectrumApplicationArgs args, CustomResourceOptions? opts = null)
    public SpectrumApplication(String name, SpectrumApplicationArgs args)
    public SpectrumApplication(String name, SpectrumApplicationArgs args, CustomResourceOptions options)
    
    type: cloudflare:SpectrumApplication
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SpectrumApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SpectrumApplicationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SpectrumApplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SpectrumApplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SpectrumApplicationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var spectrumApplicationResource = new Cloudflare.SpectrumApplication("spectrumApplicationResource", new()
    {
        Dns = new Cloudflare.Inputs.SpectrumApplicationDnsArgs
        {
            Name = "string",
            Type = "string",
        },
        Protocol = "string",
        ZoneId = "string",
        ArgoSmartRouting = false,
        EdgeIps = new Cloudflare.Inputs.SpectrumApplicationEdgeIpsArgs
        {
            Connectivity = "string",
            Ips = new[]
            {
                "string",
            },
            Type = "string",
        },
        IpFirewall = false,
        OriginDirects = new[]
        {
            "string",
        },
        OriginDns = new Cloudflare.Inputs.SpectrumApplicationOriginDnsArgs
        {
            Name = "string",
            Ttl = 0,
            Type = "string",
        },
        OriginPort = "any",
        ProxyProtocol = "string",
        Tls = "string",
        TrafficType = "string",
    });
    
    example, err := cloudflare.NewSpectrumApplication(ctx, "spectrumApplicationResource", &cloudflare.SpectrumApplicationArgs{
    	Dns: &cloudflare.SpectrumApplicationDnsArgs{
    		Name: pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	Protocol:         pulumi.String("string"),
    	ZoneId:           pulumi.String("string"),
    	ArgoSmartRouting: pulumi.Bool(false),
    	EdgeIps: &cloudflare.SpectrumApplicationEdgeIpsArgs{
    		Connectivity: pulumi.String("string"),
    		Ips: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Type: pulumi.String("string"),
    	},
    	IpFirewall: pulumi.Bool(false),
    	OriginDirects: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OriginDns: &cloudflare.SpectrumApplicationOriginDnsArgs{
    		Name: pulumi.String("string"),
    		Ttl:  pulumi.Int(0),
    		Type: pulumi.String("string"),
    	},
    	OriginPort:    pulumi.Any("any"),
    	ProxyProtocol: pulumi.String("string"),
    	Tls:           pulumi.String("string"),
    	TrafficType:   pulumi.String("string"),
    })
    
    var spectrumApplicationResource = new SpectrumApplication("spectrumApplicationResource", SpectrumApplicationArgs.builder()
        .dns(SpectrumApplicationDnsArgs.builder()
            .name("string")
            .type("string")
            .build())
        .protocol("string")
        .zoneId("string")
        .argoSmartRouting(false)
        .edgeIps(SpectrumApplicationEdgeIpsArgs.builder()
            .connectivity("string")
            .ips("string")
            .type("string")
            .build())
        .ipFirewall(false)
        .originDirects("string")
        .originDns(SpectrumApplicationOriginDnsArgs.builder()
            .name("string")
            .ttl(0)
            .type("string")
            .build())
        .originPort("any")
        .proxyProtocol("string")
        .tls("string")
        .trafficType("string")
        .build());
    
    spectrum_application_resource = cloudflare.SpectrumApplication("spectrumApplicationResource",
        dns={
            "name": "string",
            "type": "string",
        },
        protocol="string",
        zone_id="string",
        argo_smart_routing=False,
        edge_ips={
            "connectivity": "string",
            "ips": ["string"],
            "type": "string",
        },
        ip_firewall=False,
        origin_directs=["string"],
        origin_dns={
            "name": "string",
            "ttl": 0,
            "type": "string",
        },
        origin_port="any",
        proxy_protocol="string",
        tls="string",
        traffic_type="string")
    
    const spectrumApplicationResource = new cloudflare.SpectrumApplication("spectrumApplicationResource", {
        dns: {
            name: "string",
            type: "string",
        },
        protocol: "string",
        zoneId: "string",
        argoSmartRouting: false,
        edgeIps: {
            connectivity: "string",
            ips: ["string"],
            type: "string",
        },
        ipFirewall: false,
        originDirects: ["string"],
        originDns: {
            name: "string",
            ttl: 0,
            type: "string",
        },
        originPort: "any",
        proxyProtocol: "string",
        tls: "string",
        trafficType: "string",
    });
    
    type: cloudflare:SpectrumApplication
    properties:
        argoSmartRouting: false
        dns:
            name: string
            type: string
        edgeIps:
            connectivity: string
            ips:
                - string
            type: string
        ipFirewall: false
        originDirects:
            - string
        originDns:
            name: string
            ttl: 0
            type: string
        originPort: any
        protocol: string
        proxyProtocol: string
        tls: string
        trafficType: string
        zoneId: string
    

    SpectrumApplication Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SpectrumApplication resource accepts the following input properties:

    Dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    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".
    ZoneId string
    Zone identifier.
    ArgoSmartRouting bool
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    EdgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    IpFirewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    OriginDirects List<string>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    OriginDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    OriginPort object
    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.
    ProxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    Tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    TrafficType 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. Available values: "direct", "http", "https".
    Dns SpectrumApplicationDnsArgs
    The name and type of DNS record for the Spectrum application.
    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".
    ZoneId string
    Zone identifier.
    ArgoSmartRouting bool
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    EdgeIps SpectrumApplicationEdgeIpsArgs
    The anycast edge IP configuration for the hostname of this application.
    IpFirewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    OriginDirects []string
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    OriginDns SpectrumApplicationOriginDnsArgs
    The name and type of DNS record for the Spectrum application.
    OriginPort interface{}
    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.
    ProxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    Tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    TrafficType 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. Available values: "direct", "http", "https".
    dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    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".
    zoneId String
    Zone identifier.
    argoSmartRouting Boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    edgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall Boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    originDirects List<String>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    originPort Object
    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.
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls String
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".
    dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    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".
    zoneId string
    Zone identifier.
    argoSmartRouting boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    edgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    originDirects string[]
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    originPort any
    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.
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".
    dns SpectrumApplicationDnsArgs
    The name and type of DNS record for the Spectrum application.
    protocol str
    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".
    zone_id str
    Zone identifier.
    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 SpectrumApplicationEdgeIpsArgs
    The anycast edge IP configuration for the hostname of this application.
    ip_firewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    origin_directs Sequence[str]
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    origin_dns SpectrumApplicationOriginDnsArgs
    The name and type of DNS record for the Spectrum application.
    origin_port Any
    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 str
    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. Available values: "off", "v1", "v2", "simple".
    tls str
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    traffic_type str
    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. Available values: "direct", "http", "https".
    dns Property Map
    The name and type of DNS record for the Spectrum application.
    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".
    zoneId String
    Zone identifier.
    argoSmartRouting Boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    edgeIps Property Map
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall Boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    originDirects List<String>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns Property Map
    The name and type of DNS record for the Spectrum application.
    originPort Any
    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.
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls String
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SpectrumApplication resource produces the following output properties:

    CreatedOn string
    When the Application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedOn string
    When the Application was last modified.
    CreatedOn string
    When the Application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedOn string
    When the Application was last modified.
    createdOn String
    When the Application was created.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedOn String
    When the Application was last modified.
    createdOn string
    When the Application was created.
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedOn string
    When the Application was last modified.
    created_on str
    When the Application was created.
    id str
    The provider-assigned unique ID for this managed resource.
    modified_on str
    When the Application was last modified.
    createdOn String
    When the Application was created.
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedOn String
    When the Application was last modified.

    Look up Existing SpectrumApplication Resource

    Get an existing SpectrumApplication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SpectrumApplicationState, opts?: CustomResourceOptions): SpectrumApplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            argo_smart_routing: Optional[bool] = None,
            created_on: Optional[str] = None,
            dns: Optional[SpectrumApplicationDnsArgs] = None,
            edge_ips: Optional[SpectrumApplicationEdgeIpsArgs] = None,
            ip_firewall: Optional[bool] = None,
            modified_on: Optional[str] = None,
            origin_directs: Optional[Sequence[str]] = None,
            origin_dns: Optional[SpectrumApplicationOriginDnsArgs] = None,
            origin_port: Optional[Any] = None,
            protocol: Optional[str] = None,
            proxy_protocol: Optional[str] = None,
            tls: Optional[str] = None,
            traffic_type: Optional[str] = None,
            zone_id: Optional[str] = None) -> SpectrumApplication
    func GetSpectrumApplication(ctx *Context, name string, id IDInput, state *SpectrumApplicationState, opts ...ResourceOption) (*SpectrumApplication, error)
    public static SpectrumApplication Get(string name, Input<string> id, SpectrumApplicationState? state, CustomResourceOptions? opts = null)
    public static SpectrumApplication get(String name, Output<String> id, SpectrumApplicationState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:SpectrumApplication    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ArgoSmartRouting bool
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    CreatedOn string
    When the Application was created.
    Dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    EdgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    IpFirewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    ModifiedOn string
    When the Application was last modified.
    OriginDirects List<string>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    OriginDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    OriginPort object
    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.
    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".
    ProxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    Tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    TrafficType 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. Available values: "direct", "http", "https".
    ZoneId string
    Zone identifier.
    ArgoSmartRouting bool
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    CreatedOn string
    When the Application was created.
    Dns SpectrumApplicationDnsArgs
    The name and type of DNS record for the Spectrum application.
    EdgeIps SpectrumApplicationEdgeIpsArgs
    The anycast edge IP configuration for the hostname of this application.
    IpFirewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    ModifiedOn string
    When the Application was last modified.
    OriginDirects []string
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    OriginDns SpectrumApplicationOriginDnsArgs
    The name and type of DNS record for the Spectrum application.
    OriginPort interface{}
    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.
    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".
    ProxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    Tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    TrafficType 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. Available values: "direct", "http", "https".
    ZoneId string
    Zone identifier.
    argoSmartRouting Boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    createdOn String
    When the Application was created.
    dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    edgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall Boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    modifiedOn String
    When the Application was last modified.
    originDirects List<String>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    originPort Object
    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.
    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".
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls String
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".
    zoneId String
    Zone identifier.
    argoSmartRouting boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    createdOn string
    When the Application was created.
    dns SpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    edgeIps SpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    modifiedOn string
    When the Application was last modified.
    originDirects string[]
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns SpectrumApplicationOriginDns
    The name and type of DNS record for the Spectrum application.
    originPort any
    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.
    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".
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls string
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".
    zoneId string
    Zone 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 str
    When the Application was created.
    dns SpectrumApplicationDnsArgs
    The name and type of DNS record for the Spectrum application.
    edge_ips SpectrumApplicationEdgeIpsArgs
    The anycast edge IP configuration for the hostname of this application.
    ip_firewall bool
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    modified_on str
    When the Application was last modified.
    origin_directs Sequence[str]
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    origin_dns SpectrumApplicationOriginDnsArgs
    The name and type of DNS record for the Spectrum application.
    origin_port Any
    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.
    protocol str
    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 str
    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. Available values: "off", "v1", "v2", "simple".
    tls str
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    traffic_type str
    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. Available values: "direct", "http", "https".
    zone_id str
    Zone identifier.
    argoSmartRouting Boolean
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    createdOn String
    When the Application was created.
    dns Property Map
    The name and type of DNS record for the Spectrum application.
    edgeIps Property Map
    The anycast edge IP configuration for the hostname of this application.
    ipFirewall Boolean
    Enables IP Access Rules for this application. Notes: Only available for TCP applications.
    modifiedOn String
    When the Application was last modified.
    originDirects List<String>
    List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
    originDns Property Map
    The name and type of DNS record for the Spectrum application.
    originPort Any
    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.
    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".
    proxyProtocol 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. Available values: "off", "v1", "v2", "simple".
    tls String
    The type of TLS termination associated with the application. Available values: "off", "flexible", "full", "strict".
    trafficType 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. Available values: "direct", "http", "https".
    zoneId String
    Zone identifier.

    Supporting Types

    SpectrumApplicationDns, SpectrumApplicationDnsArgs

    Name string
    The name of the DNS record associated with the application.
    Type string
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
    Name string
    The name of the DNS record associated with the application.
    Type string
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
    name String
    The name of the DNS record associated with the application.
    type String
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
    name string
    The name of the DNS record associated with the application.
    type string
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
    name str
    The name of the DNS record associated with the application.
    type str
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
    name String
    The name of the DNS record associated with the application.
    type String
    The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".

    SpectrumApplicationEdgeIps, SpectrumApplicationEdgeIpsArgs

    Connectivity string
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    Ips List<string>
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    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. Available values: "dynamic".
    Connectivity string
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    Ips []string
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    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. Available values: "dynamic".
    connectivity String
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    ips List<String>
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    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. Available values: "dynamic".
    connectivity string
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    ips string[]
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    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. Available values: "dynamic".
    connectivity str
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    ips Sequence[str]
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    type str
    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. Available values: "dynamic".
    connectivity String
    The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
    ips List<String>
    The array of customer owned IPs we broadcast via anycast for this hostname and application.
    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. Available values: "dynamic".

    SpectrumApplicationOriginDns, SpectrumApplicationOriginDnsArgs

    Name string
    The name of the DNS record associated with the origin.
    Ttl int
    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. Available values: "", "A", "AAAA", "SRV".
    Name string
    The name of the DNS record associated with the origin.
    Ttl int
    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. Available values: "", "A", "AAAA", "SRV".
    name String
    The name of the DNS record associated with the origin.
    ttl Integer
    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. Available values: "", "A", "AAAA", "SRV".
    name string
    The name of the DNS record associated with the origin.
    ttl number
    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. Available values: "", "A", "AAAA", "SRV".
    name str
    The name of the DNS record associated with the origin.
    ttl int
    The TTL of our resolution of your DNS record in seconds.
    type str
    The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records. Available values: "", "A", "AAAA", "SRV".
    name String
    The name of the DNS record associated with the origin.
    ttl Number
    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. Available values: "", "A", "AAAA", "SRV".

    Import

    $ pulumi import cloudflare:index/spectrumApplication:SpectrumApplication example '<zone_id>/<app_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi