# getEndpointForNetworkExport

- Module: [Aspire.Hosting.Testing](/reference/api/typescript/aspire.hosting.testing.md)
- Version: `13.3.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Gets the endpoint for the specified resource in the specified network context.

## Definition

```typescript
interface DistributedApplication {
  // ... omitted for brevity
  getEndpointForNetworkExport(
    resourceName: string,
    networkIdentifier?: string,
    endpointName?: string): uri
}
```

## Parameters

- `resourceName` (`string`)
- `networkIdentifier` (`string`) `optional`
- `endpointName` (`string`) `optional`

## Returns

`uri`

## Applies to

- [DistributedApplication](/reference/api/typescript/aspire.hosting.testing/distributedapplication.md)
