# HttpRouteSpecV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [HttpRouteSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/httproutespecv1.md)
- Kind: `Properties`
- Members: `3`

Represents the specification of an HTTPRoute resource.

## Hostnames

- Name: `Hostnames`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HttpRouteV1.cs#L38)

Gets the hostnames that this route matches. If empty, matches all hostnames.

```csharp
public List<string> Hostnames { get; }
```

## ParentRefs

- Name: `ParentRefs`
- Modifiers: `get`
- Returns: [List<HttpRouteParentRefV1>](/reference/api/csharp/aspire.hosting.kubernetes/httprouteparentrefv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HttpRouteV1.cs#L32)

Gets the parent references that this route attaches to (typically Gateway resources).

```csharp
public List<HttpRouteParentRefV1> ParentRefs { get; }
```

## Rules

- Name: `Rules`
- Modifiers: `get`
- Returns: [List<HttpRouteRuleV1>](/reference/api/csharp/aspire.hosting.kubernetes/httprouterulev1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HttpRouteV1.cs#L44)

Gets the routing rules for this HTTPRoute.

```csharp
public List<HttpRouteRuleV1> Rules { get; }
```
