# GatewayAllowedRoutesV1 Properties

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

Defines which routes are allowed to attach to a Gateway listener.

## Namespaces

- Name: `Namespaces`
- Modifiers: `nullable` `get; set`
- Returns: [GatewayRouteNamespacesV1?](/reference/api/csharp/aspire.hosting.kubernetes/gatewayroutenamespacesv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/GatewayV1.cs)

Gets or sets the namespace selector for allowed routes.

```csharp
public GatewayRouteNamespacesV1? Namespaces { get; set; }
```
