1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustTunnelRoute
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.ZeroTrustTunnelRoute

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel routes are used to direct IP traffic through Cloudflare Tunnels.

    Create ZeroTrustTunnelRoute Resource

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

    Constructor syntax

    new ZeroTrustTunnelRoute(name: string, args: ZeroTrustTunnelRouteArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustTunnelRoute(resource_name: str,
                             args: ZeroTrustTunnelRouteArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustTunnelRoute(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 NewZeroTrustTunnelRoute(ctx *Context, name string, args ZeroTrustTunnelRouteArgs, opts ...ResourceOption) (*ZeroTrustTunnelRoute, error)
    public ZeroTrustTunnelRoute(string name, ZeroTrustTunnelRouteArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustTunnelRoute(String name, ZeroTrustTunnelRouteArgs args)
    public ZeroTrustTunnelRoute(String name, ZeroTrustTunnelRouteArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustTunnelRoute
    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 ZeroTrustTunnelRouteArgs
    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 ZeroTrustTunnelRouteArgs
    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 ZeroTrustTunnelRouteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustTunnelRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustTunnelRouteArgs
    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 zeroTrustTunnelRouteResource = new Cloudflare.ZeroTrustTunnelRoute("zeroTrustTunnelRouteResource", new()
    {
        AccountId = "string",
        Network = "string",
        TunnelId = "string",
        Comment = "string",
        VirtualNetworkId = "string",
    });
    
    example, err := cloudflare.NewZeroTrustTunnelRoute(ctx, "zeroTrustTunnelRouteResource", &cloudflare.ZeroTrustTunnelRouteArgs{
    	AccountId:        pulumi.String("string"),
    	Network:          pulumi.String("string"),
    	TunnelId:         pulumi.String("string"),
    	Comment:          pulumi.String("string"),
    	VirtualNetworkId: pulumi.String("string"),
    })
    
    var zeroTrustTunnelRouteResource = new ZeroTrustTunnelRoute("zeroTrustTunnelRouteResource", ZeroTrustTunnelRouteArgs.builder()
        .accountId("string")
        .network("string")
        .tunnelId("string")
        .comment("string")
        .virtualNetworkId("string")
        .build());
    
    zero_trust_tunnel_route_resource = cloudflare.ZeroTrustTunnelRoute("zeroTrustTunnelRouteResource",
        account_id="string",
        network="string",
        tunnel_id="string",
        comment="string",
        virtual_network_id="string")
    
    const zeroTrustTunnelRouteResource = new cloudflare.ZeroTrustTunnelRoute("zeroTrustTunnelRouteResource", {
        accountId: "string",
        network: "string",
        tunnelId: "string",
        comment: "string",
        virtualNetworkId: "string",
    });
    
    type: cloudflare:ZeroTrustTunnelRoute
    properties:
        accountId: string
        comment: string
        network: string
        tunnelId: string
        virtualNetworkId: string
    

    ZeroTrustTunnelRoute 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 ZeroTrustTunnelRoute resource accepts the following input properties:

    AccountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    TunnelId string
    The ID of the tunnel that will service the tunnel route.
    Comment string
    Description of the tunnel route.
    VirtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    AccountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    TunnelId string
    The ID of the tunnel that will service the tunnel route.
    Comment string
    Description of the tunnel route.
    VirtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    network String
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId String
    The ID of the tunnel that will service the tunnel route.
    comment String
    Description of the tunnel route.
    virtualNetworkId String
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId string
    The ID of the tunnel that will service the tunnel route.
    comment string
    Description of the tunnel route.
    virtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    account_id str
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    network str
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnel_id str
    The ID of the tunnel that will service the tunnel route.
    comment str
    Description of the tunnel route.
    virtual_network_id str
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    network String
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId String
    The ID of the tunnel that will service the tunnel route.
    comment String
    Description of the tunnel route.
    virtualNetworkId String
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ZeroTrustTunnelRoute Resource

    Get an existing ZeroTrustTunnelRoute 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?: ZeroTrustTunnelRouteState, opts?: CustomResourceOptions): ZeroTrustTunnelRoute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            comment: Optional[str] = None,
            network: Optional[str] = None,
            tunnel_id: Optional[str] = None,
            virtual_network_id: Optional[str] = None) -> ZeroTrustTunnelRoute
    func GetZeroTrustTunnelRoute(ctx *Context, name string, id IDInput, state *ZeroTrustTunnelRouteState, opts ...ResourceOption) (*ZeroTrustTunnelRoute, error)
    public static ZeroTrustTunnelRoute Get(string name, Input<string> id, ZeroTrustTunnelRouteState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustTunnelRoute get(String name, Output<String> id, ZeroTrustTunnelRouteState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Comment string
    Description of the tunnel route.
    Network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    TunnelId string
    The ID of the tunnel that will service the tunnel route.
    VirtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    AccountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    Comment string
    Description of the tunnel route.
    Network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    TunnelId string
    The ID of the tunnel that will service the tunnel route.
    VirtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    comment String
    Description of the tunnel route.
    network String
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId String
    The ID of the tunnel that will service the tunnel route.
    virtualNetworkId String
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId string
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    comment string
    Description of the tunnel route.
    network string
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId string
    The ID of the tunnel that will service the tunnel route.
    virtualNetworkId string
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    account_id str
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    comment str
    Description of the tunnel route.
    network str
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnel_id str
    The ID of the tunnel that will service the tunnel route.
    virtual_network_id str
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.
    accountId String
    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    comment String
    Description of the tunnel route.
    network String
    The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
    tunnelId String
    The ID of the tunnel that will service the tunnel route.
    virtualNetworkId String
    The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.

    Import

    $ pulumi import cloudflare:index/zeroTrustTunnelRoute:ZeroTrustTunnelRoute example <account_id>/<network_cidr>/<virtual_network_id>
    

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

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi