# ExecActionV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/ExecActionV1.cs)

ExecActionV1 represents an action that executes a command within a container.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ExecActionV1
{
    // ...
}
```

## Remarks

This action defines the execution of a command line inside a container. It is commonly used in Kubernetes resources such as lifecycle hooks or probes to perform specific actions like health checks or custom scripts.

## Constructors

- [ExecActionV1](/reference/api/csharp/aspire.hosting.kubernetes/execactionv1/constructors.md#constructor)

## Properties

- [Command](/reference/api/csharp/aspire.hosting.kubernetes/execactionv1/properties.md#command) : `List<string>` `get` -- Gets the list of commands to be executed. This property represents the specific command-line arguments that will be invoked as part of the execution action.
