1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getSpectrumApplication
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getSpectrumApplication

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleSpectrumApplication = cloudflare.getSpectrumApplication({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        appId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_spectrum_application = cloudflare.get_spectrum_application(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        app_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.LookupSpectrumApplication(ctx, &cloudflare.LookupSpectrumApplicationArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    			AppId:  "023e105f4ecef8ad9ca31a8372d0c353",
    		}, nil)
    		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 = Cloudflare.GetSpectrumApplication.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            AppId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetSpectrumApplicationArgs;
    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) {
            final var exampleSpectrumApplication = CloudflareFunctions.getSpectrumApplication(GetSpectrumApplicationArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .appId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleSpectrumApplication:
        fn::invoke:
          function: cloudflare:getSpectrumApplication
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            appId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getSpectrumApplication

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSpectrumApplication(args: GetSpectrumApplicationArgs, opts?: InvokeOptions): Promise<GetSpectrumApplicationResult>
    function getSpectrumApplicationOutput(args: GetSpectrumApplicationOutputArgs, opts?: InvokeOptions): Output<GetSpectrumApplicationResult>
    def get_spectrum_application(app_id: Optional[str] = None,
                                 zone_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSpectrumApplicationResult
    def get_spectrum_application_output(app_id: Optional[pulumi.Input[str]] = None,
                                 zone_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSpectrumApplicationResult]
    func LookupSpectrumApplication(ctx *Context, args *LookupSpectrumApplicationArgs, opts ...InvokeOption) (*LookupSpectrumApplicationResult, error)
    func LookupSpectrumApplicationOutput(ctx *Context, args *LookupSpectrumApplicationOutputArgs, opts ...InvokeOption) LookupSpectrumApplicationResultOutput

    > Note: This function is named LookupSpectrumApplication in the Go SDK.

    public static class GetSpectrumApplication 
    {
        public static Task<GetSpectrumApplicationResult> InvokeAsync(GetSpectrumApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetSpectrumApplicationResult> Invoke(GetSpectrumApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSpectrumApplicationResult> getSpectrumApplication(GetSpectrumApplicationArgs args, InvokeOptions options)
    public static Output<GetSpectrumApplicationResult> getSpectrumApplication(GetSpectrumApplicationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSpectrumApplication:getSpectrumApplication
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AppId string
    App identifier.
    ZoneId string
    Zone identifier.
    AppId string
    App identifier.
    ZoneId string
    Zone identifier.
    appId String
    App identifier.
    zoneId String
    Zone identifier.
    appId string
    App identifier.
    zoneId string
    Zone identifier.
    app_id str
    App identifier.
    zone_id str
    Zone identifier.
    appId String
    App identifier.
    zoneId String
    Zone identifier.

    getSpectrumApplication Result

    The following output properties are available:

    AppId string
    App 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 GetSpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    EdgeIps GetSpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    Id string
    App identifier.
    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 GetSpectrumApplicationOriginDns
    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.
    AppId string
    App 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 GetSpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    EdgeIps GetSpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    Id string
    App identifier.
    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 GetSpectrumApplicationOriginDns
    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.
    appId String
    App 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 GetSpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    edgeIps GetSpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    id String
    App identifier.
    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 GetSpectrumApplicationOriginDns
    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.
    appId string
    App 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 GetSpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    edgeIps GetSpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    id string
    App identifier.
    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 GetSpectrumApplicationOriginDns
    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.
    app_id str
    App identifier.
    argo_smart_routing bool
    Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
    created_on str
    When the Application was created.
    dns GetSpectrumApplicationDns
    The name and type of DNS record for the Spectrum application.
    edge_ips GetSpectrumApplicationEdgeIps
    The anycast edge IP configuration for the hostname of this application.
    id str
    App identifier.
    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 GetSpectrumApplicationOriginDns
    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.
    appId String
    App 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.
    id String
    App identifier.
    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

    GetSpectrumApplicationDns

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

    GetSpectrumApplicationEdgeIps

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

    GetSpectrumApplicationOriginDns

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

    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.2 published on Monday, Apr 28, 2025 by Pulumi