# HttpGetActionV1

- 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/HTTPGetActionV1.cs)

HTTPGetActionV1 represents an HTTP GET request action in Kubernetes resources.

## Definition

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

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

## Remarks

This action is typically used within Kubernetes probes or handlers to perform HTTP GET requests for purposes such as health checks or event triggering. A URL is constructed using the specified scheme, host, port, and path, and optional HTTP headers can also be included in the request.

## Constructors

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

## Properties

- [Host](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1/properties.md#host) : `string` `get; set` -- Gets or sets the hostname to use for the HTTP GET request. This specifies the DNS name or IP address of the server to connect to.
- [HttpHeaders](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1/properties.md#httpheaders) : [List<HttpHeaderV1>](/reference/api/csharp/aspire.hosting.kubernetes/httpheaderv1.md) `get` -- Represents a collection of HTTP headers that can be added to an HTTP request in the context of a Kubernetes HTTPGetActionV1 resource.
- [Path](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1/properties.md#path) : `string` `get; set` -- Gets or sets the relative path for the HTTP request. The path specifies the endpoint to be accessed on the server.
- [Port](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1/properties.md#port) : [Int32OrStringV1?](/reference/api/csharp/aspire.hosting.kubernetes/int32orstringv1.md) `get; set` -- Gets or sets the port number on which the HTTP request will be sent.
- [Scheme](/reference/api/csharp/aspire.hosting.kubernetes/httpgetactionv1/properties.md#scheme) : `string` `get; set` -- Gets or sets the scheme to use for the HTTP request. This property determines whether the request is sent using "HTTP" or "HTTPS".
