cloudflare.ZeroTrustTunnelCloudflaredRoute
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustTunnelCloudflaredRoute = new cloudflare.ZeroTrustTunnelCloudflaredRoute("example_zero_trust_tunnel_cloudflared_route", {
accountId: "699d98642c564d2e855e9661899b7252",
network: "172.16.0.0/16",
tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
comment: "Example comment for this route.",
virtualNetworkId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_tunnel_cloudflared_route = cloudflare.ZeroTrustTunnelCloudflaredRoute("example_zero_trust_tunnel_cloudflared_route",
account_id="699d98642c564d2e855e9661899b7252",
network="172.16.0.0/16",
tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
comment="Example comment for this route.",
virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
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.NewZeroTrustTunnelCloudflaredRoute(ctx, "example_zero_trust_tunnel_cloudflared_route", &cloudflare.ZeroTrustTunnelCloudflaredRouteArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Network: pulumi.String("172.16.0.0/16"),
TunnelId: pulumi.String("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
Comment: pulumi.String("Example comment for this route."),
VirtualNetworkId: pulumi.String("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
})
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 exampleZeroTrustTunnelCloudflaredRoute = new Cloudflare.ZeroTrustTunnelCloudflaredRoute("example_zero_trust_tunnel_cloudflared_route", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Network = "172.16.0.0/16",
TunnelId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
Comment = "Example comment for this route.",
VirtualNetworkId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredRoute;
import com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredRouteArgs;
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 exampleZeroTrustTunnelCloudflaredRoute = new ZeroTrustTunnelCloudflaredRoute("exampleZeroTrustTunnelCloudflaredRoute", ZeroTrustTunnelCloudflaredRouteArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.network("172.16.0.0/16")
.tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.comment("Example comment for this route.")
.virtualNetworkId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.build());
}
}
resources:
exampleZeroTrustTunnelCloudflaredRoute:
type: cloudflare:ZeroTrustTunnelCloudflaredRoute
name: example_zero_trust_tunnel_cloudflared_route
properties:
accountId: 699d98642c564d2e855e9661899b7252
network: 172.16.0.0/16
tunnelId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
comment: Example comment for this route.
virtualNetworkId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Create ZeroTrustTunnelCloudflaredRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustTunnelCloudflaredRoute(name: string, args: ZeroTrustTunnelCloudflaredRouteArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustTunnelCloudflaredRoute(resource_name: str,
args: ZeroTrustTunnelCloudflaredRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustTunnelCloudflaredRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
network: Optional[str] = None,
tunnel_id: Optional[str] = None,
comment: Optional[str] = None,
virtual_network_id: Optional[str] = None)
func NewZeroTrustTunnelCloudflaredRoute(ctx *Context, name string, args ZeroTrustTunnelCloudflaredRouteArgs, opts ...ResourceOption) (*ZeroTrustTunnelCloudflaredRoute, error)
public ZeroTrustTunnelCloudflaredRoute(string name, ZeroTrustTunnelCloudflaredRouteArgs args, CustomResourceOptions? opts = null)
public ZeroTrustTunnelCloudflaredRoute(String name, ZeroTrustTunnelCloudflaredRouteArgs args)
public ZeroTrustTunnelCloudflaredRoute(String name, ZeroTrustTunnelCloudflaredRouteArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustTunnelCloudflaredRoute
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 ZeroTrustTunnelCloudflaredRouteArgs
- 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 ZeroTrustTunnelCloudflaredRouteArgs
- 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 ZeroTrustTunnelCloudflaredRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustTunnelCloudflaredRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustTunnelCloudflaredRouteArgs
- 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 zeroTrustTunnelCloudflaredRouteResource = new Cloudflare.ZeroTrustTunnelCloudflaredRoute("zeroTrustTunnelCloudflaredRouteResource", new()
{
AccountId = "string",
Network = "string",
TunnelId = "string",
Comment = "string",
VirtualNetworkId = "string",
});
example, err := cloudflare.NewZeroTrustTunnelCloudflaredRoute(ctx, "zeroTrustTunnelCloudflaredRouteResource", &cloudflare.ZeroTrustTunnelCloudflaredRouteArgs{
AccountId: pulumi.String("string"),
Network: pulumi.String("string"),
TunnelId: pulumi.String("string"),
Comment: pulumi.String("string"),
VirtualNetworkId: pulumi.String("string"),
})
var zeroTrustTunnelCloudflaredRouteResource = new ZeroTrustTunnelCloudflaredRoute("zeroTrustTunnelCloudflaredRouteResource", ZeroTrustTunnelCloudflaredRouteArgs.builder()
.accountId("string")
.network("string")
.tunnelId("string")
.comment("string")
.virtualNetworkId("string")
.build());
zero_trust_tunnel_cloudflared_route_resource = cloudflare.ZeroTrustTunnelCloudflaredRoute("zeroTrustTunnelCloudflaredRouteResource",
account_id="string",
network="string",
tunnel_id="string",
comment="string",
virtual_network_id="string")
const zeroTrustTunnelCloudflaredRouteResource = new cloudflare.ZeroTrustTunnelCloudflaredRoute("zeroTrustTunnelCloudflaredRouteResource", {
accountId: "string",
network: "string",
tunnelId: "string",
comment: "string",
virtualNetworkId: "string",
});
type: cloudflare:ZeroTrustTunnelCloudflaredRoute
properties:
accountId: string
comment: string
network: string
tunnelId: string
virtualNetworkId: string
ZeroTrustTunnelCloudflaredRoute 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 ZeroTrustTunnelCloudflaredRoute resource accepts the following input properties:
- Account
Id string - Cloudflare account ID
- Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tunnel
Id string - UUID of the tunnel.
- Comment string
- Optional remark describing the route.
- Virtual
Network stringId - UUID of the virtual network.
- Account
Id string - Cloudflare account ID
- Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tunnel
Id string - UUID of the tunnel.
- Comment string
- Optional remark describing the route.
- Virtual
Network stringId - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id String - UUID of the tunnel.
- comment String
- Optional remark describing the route.
- virtual
Network StringId - UUID of the virtual network.
- account
Id string - Cloudflare account ID
- network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id string - UUID of the tunnel.
- comment string
- Optional remark describing the route.
- virtual
Network stringId - UUID of the virtual network.
- account_
id str - Cloudflare account ID
- network str
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel_
id str - UUID of the tunnel.
- comment str
- Optional remark describing the route.
- virtual_
network_ strid - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id String - UUID of the tunnel.
- comment String
- Optional remark describing the route.
- virtual
Network StringId - UUID of the virtual network.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustTunnelCloudflaredRoute resource produces the following output properties:
- created_
at str - Timestamp of when the resource was created.
- deleted_
at str - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - id str
- The provider-assigned unique ID for this managed resource.
Look up Existing ZeroTrustTunnelCloudflaredRoute Resource
Get an existing ZeroTrustTunnelCloudflaredRoute 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?: ZeroTrustTunnelCloudflaredRouteState, opts?: CustomResourceOptions): ZeroTrustTunnelCloudflaredRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
comment: Optional[str] = None,
created_at: Optional[str] = None,
deleted_at: Optional[str] = None,
network: Optional[str] = None,
tunnel_id: Optional[str] = None,
virtual_network_id: Optional[str] = None) -> ZeroTrustTunnelCloudflaredRoute
func GetZeroTrustTunnelCloudflaredRoute(ctx *Context, name string, id IDInput, state *ZeroTrustTunnelCloudflaredRouteState, opts ...ResourceOption) (*ZeroTrustTunnelCloudflaredRoute, error)
public static ZeroTrustTunnelCloudflaredRoute Get(string name, Input<string> id, ZeroTrustTunnelCloudflaredRouteState? state, CustomResourceOptions? opts = null)
public static ZeroTrustTunnelCloudflaredRoute get(String name, Output<String> id, ZeroTrustTunnelCloudflaredRouteState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustTunnelCloudflaredRoute 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.
- Account
Id string - Cloudflare account ID
- Comment string
- Optional remark describing the route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- Account
Id string - Cloudflare account ID
- Comment string
- Optional remark describing the route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- comment String
- Optional remark describing the route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
- account
Id string - Cloudflare account ID
- comment string
- Optional remark describing the route.
- created
At string - Timestamp of when the resource was created.
- deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id string - UUID of the tunnel.
- virtual
Network stringId - UUID of the virtual network.
- account_
id str - Cloudflare account ID
- comment str
- Optional remark describing the route.
- created_
at str - Timestamp of when the resource was created.
- deleted_
at str - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - network str
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel_
id str - UUID of the tunnel.
- virtual_
network_ strid - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- comment String
- Optional remark describing the route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
Import
$ pulumi import cloudflare:index/zeroTrustTunnelCloudflaredRoute:ZeroTrustTunnelCloudflaredRoute example '<account_id>/<route_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.