# RedPandaServerResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.RedPanda](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda.md)
- Version: `13.5.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

A resource that represents a Redpanda streaming platform container.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class RedPandaServerResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource`
- Public instance properties are exported as ATS capabilities.

## Remarks

Redpanda is a Kafka API compatible streaming platform. The [RedPandaServerResource.ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#connectionstringexpression) returns the bootstrap broker address ( `host:port`) that Kafka clients use to connect.

## Constructors

- [RedPandaServerResource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/constructors.md#constructor-string) -- A resource that represents a Redpanda streaming platform container.

## Properties

- [AdminEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#adminendpoint) : `EndpointReference` `get` -- Gets the Admin API HTTP endpoint for the Redpanda broker.
- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Redpanda broker in the form of `host:port`, suitable for use as the Kafka bootstrap servers value.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#host) : `EndpointReferenceExpression` `get` -- Gets the host of the primary Kafka endpoint.
- [InternalEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#internalendpoint) : `EndpointReference` `get` -- Gets the internal Kafka API endpoint used for container-to-container communication.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#port) : `EndpointReferenceExpression` `get` -- Gets the port of the primary Kafka endpoint.
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#primaryendpoint) : `EndpointReference` `get` -- Gets the primary (Kafka API) endpoint for the Redpanda broker. This endpoint is reachable from the host.
- [SchemaRegistryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource/properties.md#schemaregistryendpoint) : `EndpointReference` `get` -- Gets the Schema Registry HTTP endpoint for the Redpanda broker.
