1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getSpectrumApplication
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getSpectrumApplication

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleSpectrumApplication = cloudflare.getSpectrumApplication({
    zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    appId: "023e105f4ecef8ad9ca31a8372d0c353",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_spectrum_application = cloudflare.get_spectrum_application(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
    app_id="023e105f4ecef8ad9ca31a8372d0c353")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  exampleSpectrumApplication:
    fn::invoke:
      function: cloudflare:getSpectrumApplication
      arguments:
        zoneId: 023e105f4ecef8ad9ca31a8372d0c353
        appId: 023e105f4ecef8ad9ca31a8372d0c353
Copy

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>
Copy
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]
Copy
func LookupSpectrumApplication(ctx *Context, args *LookupSpectrumApplicationArgs, opts ...InvokeOption) (*LookupSpectrumApplicationResult, error)
func LookupSpectrumApplicationOutput(ctx *Context, args *LookupSpectrumApplicationOutputArgs, opts ...InvokeOption) LookupSpectrumApplicationResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSpectrumApplicationResult> getSpectrumApplication(GetSpectrumApplicationArgs args, InvokeOptions options)
public static Output<GetSpectrumApplicationResult> getSpectrumApplication(GetSpectrumApplicationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getSpectrumApplication:getSpectrumApplication
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AppId This property is required. string
App identifier.
ZoneId This property is required. string
Zone identifier.
AppId This property is required. string
App identifier.
ZoneId This property is required. string
Zone identifier.
appId This property is required. String
App identifier.
zoneId This property is required. String
Zone identifier.
appId This property is required. string
App identifier.
zoneId This property is required. string
Zone identifier.
app_id This property is required. str
App identifier.
zone_id This property is required. str
Zone identifier.
appId This property is required. String
App identifier.
zoneId This property is required. 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 This property is required. string
The name of the DNS record associated with the application.
Type This property is required. string
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
Name This property is required. string
The name of the DNS record associated with the application.
Type This property is required. string
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
name This property is required. String
The name of the DNS record associated with the application.
type This property is required. String
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
name This property is required. string
The name of the DNS record associated with the application.
type This property is required. string
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
name This property is required. str
The name of the DNS record associated with the application.
type This property is required. str
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".
name This property is required. String
The name of the DNS record associated with the application.
type This property is required. String
The type of DNS record associated with the application. Available values: "CNAME", "ADDRESS".

GetSpectrumApplicationEdgeIps

Connectivity This property is required. string
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
Ips This property is required. List<string>
The array of customer owned IPs we broadcast via anycast for this hostname and application.
Type This property is required. 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 This property is required. string
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
Ips This property is required. []string
The array of customer owned IPs we broadcast via anycast for this hostname and application.
Type This property is required. 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 This property is required. String
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
ips This property is required. List<String>
The array of customer owned IPs we broadcast via anycast for this hostname and application.
type This property is required. 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 This property is required. string
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
ips This property is required. string[]
The array of customer owned IPs we broadcast via anycast for this hostname and application.
type This property is required. 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 This property is required. str
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
ips This property is required. Sequence[str]
The array of customer owned IPs we broadcast via anycast for this hostname and application.
type This property is required. 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 This property is required. String
The IP versions supported for inbound connections on Spectrum anycast IPs. Available values: "all", "ipv4", "ipv6".
ips This property is required. List<String>
The array of customer owned IPs we broadcast via anycast for this hostname and application.
type This property is required. 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 This property is required. string
The name of the DNS record associated with the origin.
Ttl This property is required. int
The TTL of our resolution of your DNS record in seconds.
Type This property is required. 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 This property is required. string
The name of the DNS record associated with the origin.
Ttl This property is required. int
The TTL of our resolution of your DNS record in seconds.
Type This property is required. 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 This property is required. String
The name of the DNS record associated with the origin.
ttl This property is required. Integer
The TTL of our resolution of your DNS record in seconds.
type This property is required. 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 This property is required. string
The name of the DNS record associated with the origin.
ttl This property is required. number
The TTL of our resolution of your DNS record in seconds.
type This property is required. 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 This property is required. str
The name of the DNS record associated with the origin.
ttl This property is required. int
The TTL of our resolution of your DNS record in seconds.
type This property is required. 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 This property is required. String
The name of the DNS record associated with the origin.
ttl This property is required. Number
The TTL of our resolution of your DNS record in seconds.
type This property is required. 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.