# IManagementGrain.GetHosts(bool)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.imanagementgrain/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.imanagementgrain/methods/)

```csharp
public abstract Task<Dictionary<SiloAddress, SiloStatus>> GetHosts(bool onlyActive = false)
```

Get the list of silo hosts and statuses currently known about in this cluster.

### Parameters

- `onlyActive` (`bool`): Whether data on just current active silos should be returned, or by default data for all current and previous silo instances [including those in Joining or Dead status].

### Returns

The hosts and their corresponding statuses.
