# ZooKeeperGatewayListProvider.GetGatewaysAsync(CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.zookeeper/orleans.runtime.membership.zookeepergatewaylistprovider/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.zookeeper/orleans.runtime.membership.zookeepergatewaylistprovider/methods/)

[Source](https://github.com/dotnet/orleans/blob/997f2589e814db85c6a451b59c081c88e50b8944/src/Orleans.Clustering.ZooKeeper/ZooKeeperGatewayListProvider.cs#L100-L109)

```csharp
public Task<IList<Uri>> GetGatewaysAsync(CancellationToken cancellationToken = default(CancellationToken))
```

Gets the gateway endpoints which clients can use to connect to the cluster.

### Parameters

- `cancellationToken` (`CancellationToken`): The token used to cancel gateway discovery.

### Returns

The list of gateway endpoints.
