# HttpGetActionV1 Properties

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

HTTPGetActionV1 represents an HTTP GET request action in Kubernetes resources.

## Host

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

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.

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

## HttpHeaders

- Name: `HttpHeaders`
- Modifiers: `get`
- Returns: [List<HttpHeaderV1>](/reference/api/csharp/aspire.hosting.kubernetes/httpheaderv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HTTPGetActionV1.cs#L43)

Represents a collection of HTTP headers that can be added to an HTTP request in the context of a Kubernetes HTTPGetActionV1 resource.

```csharp
public List<HttpHeaderV1> HttpHeaders { get; }
```

## Remarks

This property provides a list of HTTPHeaderV1 objects, where each object specifies the name and value of an HTTP header. These headers will be included in the HTTP request made by the Kubernetes resource.

## Path

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

Gets or sets the relative path for the HTTP request. The path specifies the endpoint to be accessed on the server.

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

## Port

- Name: `Port`
- Modifiers: `nullable` `get; set`
- Returns: [Int32OrStringV1?](/reference/api/csharp/aspire.hosting.kubernetes/int32orstringv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HTTPGetActionV1.cs)

Gets or sets the port number on which the HTTP request will be sent.

```csharp
public Int32OrStringV1? Port { get; set; }
```

## Scheme

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

Gets or sets the scheme to use for the HTTP request. This property determines whether the request is sent using "HTTP" or "HTTPS".

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