# PersistentVolumeClaimVolumeSourceV1 Properties

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

Represents the configuration for mounting a PersistentVolumeClaim as a volume source.

## ClaimName

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

Gets or sets the name of the Persistent Volume Claim (PVC). This property specifies the name of the PVC that will be used as a volume source.

```csharp
public string ClaimName { 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/PersistentVolumeClaimVolumeSourceV1.cs)

Specifies whether the volume is mounted as read-only. If set to true, write operations on the volume are disabled. If not set or set to false, the volume can be mounted with write permissions.

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