# ExecActionV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
