# Aspire.Hosting.DevTunnels

- Module: `Aspire.Hosting.DevTunnels`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `7`
- Types: `1`

## Handles

- [DevTunnelResource](/reference/api/go/aspire.hosting.devtunnels/devtunnelresource.md) -- `handle` - 6 members

## Functions

- [GetTunnelEndpoint](/reference/api/go/aspire.hosting.devtunnels/gettunnelendpoint.md) -- `method` - on `DevTunnelResource` -- Gets the tunnel endpoint reference for the specified target endpoint.
- [WithAnonymousAccess](/reference/api/go/aspire.hosting.devtunnels/withanonymousaccess.md) -- `method` - on `DevTunnelResource` -- Allows the tunnel to be publicly accessed without authentication.
- [WithExpiration](/reference/api/go/aspire.hosting.devtunnels/withexpiration.md) -- `method` - on `DevTunnelResource` -- Configures how long the tunnel can remain unused or unmodified before it expires.
- [WithTunnelReference](/reference/api/go/aspire.hosting.devtunnels/withtunnelreference.md) -- `method` - on `DevTunnelResource` -- Exposes the specified endpoint via the dev tunnel.
- [WithTunnelReferenceAll](/reference/api/go/aspire.hosting.devtunnels/withtunnelreferenceall.md) -- `method` - on `DevTunnelResource` -- Adds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.
- [WithTunnelReferenceAnonymous](/reference/api/go/aspire.hosting.devtunnels/withtunnelreferenceanonymous.md) -- `method` - on `DevTunnelResource` -- Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
- [AddDevTunnel](/reference/api/go/aspire.hosting.devtunnels/adddevtunnel.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Dev Tunnel resource to the distributed application model.
