1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ArgoTunnel
Viewing docs for Cloudflare v4.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v4.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Argo Tunnel exposes applications running on your local web server on any network with an internet connection without manually adding DNS records or configuring a firewall or router.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Cloudflare.ArgoTunnel("example", new()
        {
            AccountId = "d41d8cd98f00b204e9800998ecf8427e",
            Name = "my-tunnel",
            Secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v4/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewArgoTunnel(ctx, "example", &cloudflare.ArgoTunnelArgs{
    			AccountId: pulumi.String("d41d8cd98f00b204e9800998ecf8427e"),
    			Name:      pulumi.String("my-tunnel"),
    			Secret:    pulumi.String("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ArgoTunnel;
    import com.pulumi.cloudflare.ArgoTunnelArgs;
    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 example = new ArgoTunnel("example", ArgoTunnelArgs.builder()        
                .accountId("d41d8cd98f00b204e9800998ecf8427e")
                .name("my-tunnel")
                .secret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.ArgoTunnel("example", {
        accountId: "d41d8cd98f00b204e9800998ecf8427e",
        name: "my-tunnel",
        secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.ArgoTunnel("example",
        account_id="d41d8cd98f00b204e9800998ecf8427e",
        name="my-tunnel",
        secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
    
    resources:
      example:
        type: cloudflare:ArgoTunnel
        properties:
          accountId: d41d8cd98f00b204e9800998ecf8427e
          name: my-tunnel
          secret: AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=
    

    Create ArgoTunnel Resource

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

    Constructor syntax

    new ArgoTunnel(name: string, args: ArgoTunnelArgs, opts?: CustomResourceOptions);
    @overload
    def ArgoTunnel(resource_name: str,
                   args: ArgoTunnelArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ArgoTunnel(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_id: Optional[str] = None,
                   name: Optional[str] = None,
                   secret: Optional[str] = None)
    func NewArgoTunnel(ctx *Context, name string, args ArgoTunnelArgs, opts ...ResourceOption) (*ArgoTunnel, error)
    public ArgoTunnel(string name, ArgoTunnelArgs args, CustomResourceOptions? opts = null)
    public ArgoTunnel(String name, ArgoTunnelArgs args)
    public ArgoTunnel(String name, ArgoTunnelArgs args, CustomResourceOptions options)
    
    type: cloudflare:ArgoTunnel
    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 ArgoTunnelArgs
    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 ArgoTunnelArgs
    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 ArgoTunnelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ArgoTunnelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ArgoTunnelArgs
    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 argoTunnelResource = new Cloudflare.ArgoTunnel("argoTunnelResource", new()
    {
        AccountId = "string",
        Name = "string",
        Secret = "string",
    });
    
    example, err := cloudflare.NewArgoTunnel(ctx, "argoTunnelResource", &cloudflare.ArgoTunnelArgs{
    	AccountId: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Secret:    pulumi.String("string"),
    })
    
    var argoTunnelResource = new ArgoTunnel("argoTunnelResource", ArgoTunnelArgs.builder()
        .accountId("string")
        .name("string")
        .secret("string")
        .build());
    
    argo_tunnel_resource = cloudflare.ArgoTunnel("argoTunnelResource",
        account_id="string",
        name="string",
        secret="string")
    
    const argoTunnelResource = new cloudflare.ArgoTunnel("argoTunnelResource", {
        accountId: "string",
        name: "string",
        secret: "string",
    });
    
    type: cloudflare:ArgoTunnel
    properties:
        accountId: string
        name: string
        secret: string
    

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

    AccountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    Name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    Secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    AccountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    Name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    Secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    accountId String
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    name String
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret String
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    accountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    account_id str
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    name str
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret str
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    accountId String
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    name String
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret String
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.

    Outputs

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

    Cname string
    Usable CNAME for accessing the Argo Tunnel.
    Id string
    The provider-assigned unique ID for this managed resource.
    TunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    Cname string
    Usable CNAME for accessing the Argo Tunnel.
    Id string
    The provider-assigned unique ID for this managed resource.
    TunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    cname String
    Usable CNAME for accessing the Argo Tunnel.
    id String
    The provider-assigned unique ID for this managed resource.
    tunnelToken String
    Token used by a connector to authenticate and run the tunnel.
    cname string
    Usable CNAME for accessing the Argo Tunnel.
    id string
    The provider-assigned unique ID for this managed resource.
    tunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    cname str
    Usable CNAME for accessing the Argo Tunnel.
    id str
    The provider-assigned unique ID for this managed resource.
    tunnel_token str
    Token used by a connector to authenticate and run the tunnel.
    cname String
    Usable CNAME for accessing the Argo Tunnel.
    id String
    The provider-assigned unique ID for this managed resource.
    tunnelToken String
    Token used by a connector to authenticate and run the tunnel.

    Look up Existing ArgoTunnel Resource

    Get an existing ArgoTunnel 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?: ArgoTunnelState, opts?: CustomResourceOptions): ArgoTunnel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            cname: Optional[str] = None,
            name: Optional[str] = None,
            secret: Optional[str] = None,
            tunnel_token: Optional[str] = None) -> ArgoTunnel
    func GetArgoTunnel(ctx *Context, name string, id IDInput, state *ArgoTunnelState, opts ...ResourceOption) (*ArgoTunnel, error)
    public static ArgoTunnel Get(string name, Input<string> id, ArgoTunnelState? state, CustomResourceOptions? opts = null)
    public static ArgoTunnel get(String name, Output<String> id, ArgoTunnelState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ArgoTunnel    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.
    The following state arguments are supported:
    AccountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    Cname string
    Usable CNAME for accessing the Argo Tunnel.
    Name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    Secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    TunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    AccountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    Cname string
    Usable CNAME for accessing the Argo Tunnel.
    Name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    Secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    TunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    accountId String
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    cname String
    Usable CNAME for accessing the Argo Tunnel.
    name String
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret String
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    tunnelToken String
    Token used by a connector to authenticate and run the tunnel.
    accountId string
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    cname string
    Usable CNAME for accessing the Argo Tunnel.
    name string
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret string
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    tunnelToken string
    Token used by a connector to authenticate and run the tunnel.
    account_id str
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    cname str
    Usable CNAME for accessing the Argo Tunnel.
    name str
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret str
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    tunnel_token str
    Token used by a connector to authenticate and run the tunnel.
    accountId String
    The Cloudflare account ID that you wish to manage the Argo Tunnel on.
    cname String
    Usable CNAME for accessing the Argo Tunnel.
    name String
    A user-friendly name chosen when the tunnel is created. Cannot be empty.
    secret String
    32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password.
    tunnelToken String
    Token used by a connector to authenticate and run the tunnel.

    Import

    Argo Tunnels can be imported a composite ID of the account ID and tunnel UUID.

     $ pulumi import cloudflare:index/argoTunnel:ArgoTunnel example d41d8cd98f00b204e9800998ecf8427e/fd2455cb-5fcc-4c13-8738-8d8d2605237f
    

    where - d41d8cd98f00b204e9800998ecf8427e is the account ID - fd2455cb-5fcc-4c13-8738-8d8d2605237f is the Argo Tunnel UUID

    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
    Viewing docs for Cloudflare v4.16.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.