# DownwardApiVolumeFileV1 Properties

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

Represents a Downward API file projected into a volume.

<a id="fieldref"></a>

## FieldRef

- Name: `FieldRef`
- Modifiers: `nullable` `get; set`
- Returns: [ObjectFieldSelectorV1?](/reference/api/csharp/aspire.hosting.kubernetes/objectfieldselectorv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/69db530a4816698cf1d5fa4557933e0ac4f127c6/src/Aspire.Hosting.Kubernetes/Resources/DownwardApiVolumeFileV1.cs)

Gets or sets the pod field to project into the file.

```csharp
public ObjectFieldSelectorV1? FieldRef { get; set; }
```

<a id="mode"></a>

## Mode

- Name: `Mode`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/69db530a4816698cf1d5fa4557933e0ac4f127c6/src/Aspire.Hosting.Kubernetes/Resources/DownwardApiVolumeFileV1.cs)

Gets or sets the file mode for the projected file.

```csharp
public int? Mode { get; set; }
```

<a id="path"></a>

## Path

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

Gets or sets the relative path of the projected file.

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

<a id="resourcefieldref"></a>

## ResourceFieldRef

- Name: `ResourceFieldRef`
- Modifiers: `nullable` `get; set`
- Returns: [ResourceFieldSelectorV1?](/reference/api/csharp/aspire.hosting.kubernetes/resourcefieldselectorv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/69db530a4816698cf1d5fa4557933e0ac4f127c6/src/Aspire.Hosting.Kubernetes/Resources/DownwardApiVolumeFileV1.cs)

Gets or sets the container resource field to project into the file.

```csharp
public ResourceFieldSelectorV1? ResourceFieldRef { get; set; }
```
