# DevTunnelResource.getTunnelEndpoint

- Module: [Aspire.Hosting.DevTunnels](/reference/api/typescript/aspire.hosting.devtunnels.md)
- Defined on: [DevTunnelResource](/reference/api/typescript/aspire.hosting.devtunnels/devtunnelresource.md)
- Version: `13.4.0`
- Kind: `method`

Gets the tunnel endpoint reference for the specified target endpoint.

## Definition

```typescript
interface DevTunnelResource {
  // ... omitted for brevity
  getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference;
}
```

## Signature

```typescript
getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference
```

## Parameters

- `targetEndpointReference` (`EndpointReference`)

## Returns

`EndpointReference`

## Defined on

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