# DevTunnelResource Properties

- Package: [Aspire.Hosting.DevTunnels](/reference/api/csharp/aspire.hosting.devtunnels.md)
- Type: [DevTunnelResource](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelresource.md)
- Kind: `Properties`
- Members: `2`

A resource representing a persistent dev tunnel that runs for the life of the AppHost.

## Options

- Name: `Options`
- Modifiers: `get`
- Returns: [DevTunnelOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelResource.cs#L25)

Options controlling how this tunnel is created and managed.

```csharp
public DevTunnelOptions Options { get; }
```

## TunnelId

- Name: `TunnelId`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelResource.cs)

The unique ID for the dev tunnel.

```csharp
public string TunnelId { get; init; }
```
