cloudflare.SpectrumApplication
Explore with Pulumi AI
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
Spectrum
Application Dns - 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"
. - Zone
Id string - Zone identifier.
- Argo
Smart boolRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- Edge
Ips SpectrumApplication Edge Ips - 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 List<string> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- Origin
Dns SpectrumApplication Origin Dns - The name and type of DNS record for the Spectrum application.
- Origin
Port 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. - Proxy
Protocol 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".
- Traffic
Type 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
Spectrum
Application Dns Args - 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"
. - Zone
Id string - Zone identifier.
- Argo
Smart boolRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- Edge
Ips SpectrumApplication Edge Ips Args - 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 []string - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- Origin
Dns SpectrumApplication Origin Dns Args - The name and type of DNS record for the Spectrum application.
- Origin
Port 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. - Proxy
Protocol 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".
- Traffic
Type 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
Spectrum
Application Dns - 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"
. - zone
Id String - Zone identifier.
- argo
Smart BooleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- edge
Ips SpectrumApplication Edge Ips - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall Boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- origin
Directs List<String> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns SpectrumApplication Origin Dns - The name and type of DNS record for the Spectrum application.
- origin
Port 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. - proxy
Protocol 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".
- traffic
Type 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
Spectrum
Application Dns - 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"
. - zone
Id string - Zone identifier.
- argo
Smart booleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- edge
Ips SpectrumApplication Edge Ips - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- origin
Directs string[] - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns SpectrumApplication Origin Dns - 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 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".
- traffic
Type 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
Spectrum
Application Dns Args - 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_ boolrouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- edge_
ips SpectrumApplication Edge Ips Args - 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 SpectrumApplication Origin Dns Args - 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"
. - zone
Id String - Zone identifier.
- argo
Smart BooleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- edge
Ips Property Map - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall Boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- origin
Directs List<String> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns Property Map - 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 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".
- traffic
Type 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:
- Created
On string - When the Application was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - When the Application was last modified.
- Created
On string - When the Application was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - When the Application was last modified.
- created
On String - When the Application was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - When the Application was last modified.
- created
On string - When the Application was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On 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.
- created
On String - When the Application was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On 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.
- Argo
Smart boolRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- Created
On string - When the Application was created.
- Dns
Spectrum
Application Dns - The name and type of DNS record for the Spectrum application.
- Edge
Ips SpectrumApplication Edge Ips - 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 string - When the Application was last modified.
- Origin
Directs List<string> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- Origin
Dns SpectrumApplication Origin Dns - The name and type of DNS record for the Spectrum application.
- Origin
Port 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"
. - Proxy
Protocol 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".
- Traffic
Type 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". - Zone
Id string - Zone identifier.
- Argo
Smart boolRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- Created
On string - When the Application was created.
- Dns
Spectrum
Application Dns Args - The name and type of DNS record for the Spectrum application.
- Edge
Ips SpectrumApplication Edge Ips Args - 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 string - When the Application was last modified.
- Origin
Directs []string - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- Origin
Dns SpectrumApplication Origin Dns Args - The name and type of DNS record for the Spectrum application.
- Origin
Port 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"
. - Proxy
Protocol 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".
- Traffic
Type 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". - Zone
Id string - Zone identifier.
- argo
Smart BooleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- created
On String - When the Application was created.
- dns
Spectrum
Application Dns - The name and type of DNS record for the Spectrum application.
- edge
Ips SpectrumApplication Edge Ips - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall Boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- modified
On String - When the Application was last modified.
- origin
Directs List<String> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns SpectrumApplication Origin Dns - The name and type of DNS record for the Spectrum application.
- origin
Port 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"
. - proxy
Protocol 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".
- traffic
Type 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". - zone
Id String - Zone identifier.
- argo
Smart booleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- created
On string - When the Application was created.
- dns
Spectrum
Application Dns - The name and type of DNS record for the Spectrum application.
- edge
Ips SpectrumApplication Edge Ips - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- modified
On string - When the Application was last modified.
- origin
Directs string[] - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns SpectrumApplication Origin Dns - 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 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"
. - proxy
Protocol 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".
- traffic
Type 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". - zone
Id string - Zone identifier.
- argo_
smart_ boolrouting - 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
Spectrum
Application Dns Args - The name and type of DNS record for the Spectrum application.
- edge_
ips SpectrumApplication Edge Ips Args - 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 SpectrumApplication Origin Dns Args - 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.
- argo
Smart BooleanRouting - Enables Argo Smart Routing for this application. Notes: Only available for TCP applications with traffic_type set to "direct".
- created
On String - When the Application was created.
- dns Property Map
- The name and type of DNS record for the Spectrum application.
- edge
Ips Property Map - The anycast edge IP configuration for the hostname of this application.
- ip
Firewall Boolean - Enables IP Access Rules for this application. Notes: Only available for TCP applications.
- modified
On String - When the Application was last modified.
- origin
Directs List<String> - List of origin IP addresses. Array may contain multiple IP addresses for load balancing.
- origin
Dns Property Map - 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 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"
. - proxy
Protocol 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".
- traffic
Type 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". - zone
Id String - Zone identifier.
Supporting Types
SpectrumApplicationDns, SpectrumApplicationDnsArgs
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
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.