# KnownResourceStates Fields

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [KnownResourceStates](/reference/api/csharp/aspire.hosting/knownresourcestates.md)
- Kind: `Fields`
- Members: `15`

The set of well known resource states.

## Active

- Name: `Active`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The not active state. Useful for resources without a lifetime.

```csharp
public static readonly string Active
```

## BuildableStates

- Name: `BuildableStates`
- Modifiers: `static` `readonly`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

List of states in which a resource can be rebuilt.

```csharp
public static readonly IReadOnlyList<string> BuildableStates
```

## Building

- Name: `Building`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The building state. Useful for showing the resource is being rebuilt.

```csharp
public static readonly string Building
```

## Exited

- Name: `Exited`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The exited state. Useful for showing the resource has exited.

```csharp
public static readonly string Exited
```

## FailedToStart

- Name: `FailedToStart`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The failed to start state. Useful for showing the resource has failed to start successfully.

```csharp
public static readonly string FailedToStart
```

## Finished

- Name: `Finished`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The finished state. Useful for showing the resource has finished.

```csharp
public static readonly string Finished
```

## Hidden

> **Obsolete:** Use CustomResourceSnapshot.IsHidden instead.

- Name: `Hidden`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The hidden state. Useful for hiding the resource.

```csharp
public static readonly string Hidden
```

## NotStarted

- Name: `NotStarted`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The not started state. Useful for showing the resource was created without being started.

```csharp
public static readonly string NotStarted
```

## Running

- Name: `Running`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The running state. Useful for showing the resource is running.

```csharp
public static readonly string Running
```

## RuntimeUnhealthy

- Name: `RuntimeUnhealthy`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The runtime unhealthy state. Indicates that a resource could not be started because the runtime is not in a healthy state.

```csharp
public static readonly string RuntimeUnhealthy
```

## Starting

- Name: `Starting`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The starting state. Useful for showing the resource is starting.

```csharp
public static readonly string Starting
```

## Stopping

- Name: `Stopping`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The stopping state. Useful for showing the resource is stopping.

```csharp
public static readonly string Stopping
```

## TerminalStates

- Name: `TerminalStates`
- Modifiers: `static` `readonly`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

List of terminal states.

```csharp
public static readonly IReadOnlyList<string> TerminalStates
```

## ValueMissing

- Name: `ValueMissing`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The value missing state. Useful for showing a parameter resource is waiting for a value.

```csharp
public static readonly string ValueMissing
```

## Waiting

- Name: `Waiting`
- Modifiers: `static` `readonly`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The waiting state. Useful for showing the resource is waiting for a dependency.

```csharp
public static readonly string Waiting
```
