# VolumeDeviceV1 Properties

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

Represents a raw block device that is mapped into a Kubernetes container. This class is used to define the name of a volume and the device path in which the volume is mapped on the container.

## DevicePath

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

Gets or sets the path inside the container where the device will be accessible. This property is required to specify the location in the container's file system where the device should be mounted or linked.

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

## Name

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

Represents the name of the volume device. This is a unique identifier for the volume device and is used to reference the device within the context of a Kubernetes resource.

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