# AllowedHostPathV1Beta1 Properties

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

Represents an allowed host path for a PodSecurityPolicy in Kubernetes.

## PathPrefix

- Name: `PathPrefix`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/AllowedHostPathV1Beta1.cs)

Gets or sets the path prefix for the allowed host path. This property specifies the path prefix that will be matched against a volume's path. Only paths with this prefix will be allowed.

```csharp
public string PathPrefix { get; set; }
```

## ReadOnly

- Name: `ReadOnly`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/AllowedHostPathV1Beta1.cs)

Gets or sets a value indicating whether the host path is read-only. When set to true, the associated path can only be accessed in read-only mode.

```csharp
public bool? ReadOnly { get; set; }
```
