# K6Resource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.k6](/reference/api/csharp/communitytoolkit.aspire.hosting.k6.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.k6/K6Resource.cs)
- Inherits: `ContainerResource`

A resource that represents a Grafana k6 instance

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class K6Resource
    : Aspire.Hosting.ApplicationModel.ContainerResource
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.k6/K6Resource`

## Constructors

- [K6Resource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.k6/k6resource/constructors.md#constructor-string) -- A resource that represents a Grafana k6 instance

## Properties

- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.k6/k6resource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary endpoint for the Grafana k6 instance. This endpoint is used for all API calls over HTTP.
