# RedPandaServerResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.RedPanda](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda.md)
- Type: [RedPandaServerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md)
- Kind: `Properties`
- Members: `7`

A resource that represents a Redpanda streaming platform container.

<a id="adminendpoint"></a>

## AdminEndpoint

- Name: `AdminEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L52)

Gets the Admin API HTTP endpoint for the Redpanda broker.

```csharp
public EndpointReference AdminEndpoint { get; }
```

<a id="connectionstringexpression"></a>

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L69)

Gets the connection string expression for the Redpanda broker in the form of `host:port`, suitable for use as the Kafka bootstrap servers value.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

<a id="host"></a>

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L57)

Gets the host of the primary Kafka endpoint.

```csharp
public EndpointReferenceExpression Host { get; }
```

<a id="internalendpoint"></a>

## InternalEndpoint

- Name: `InternalEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L42)

Gets the internal Kafka API endpoint used for container-to-container communication.

```csharp
public EndpointReference InternalEndpoint { get; }
```

<a id="port"></a>

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L62)

Gets the port of the primary Kafka endpoint.

```csharp
public EndpointReferenceExpression Port { get; }
```

<a id="primaryendpoint"></a>

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L37)

Gets the primary (Kafka API) endpoint for the Redpanda broker. This endpoint is reachable from the host.

```csharp
public EndpointReference PrimaryEndpoint { get; }
```

## Remarks

The endpoint is pinned to the localhost network so that it always resolves to the published host address, even when the expression is evaluated for the Redpanda container itself (which otherwise resolves endpoints over the container network and would yield the container's own broker port).

<a id="schemaregistryendpoint"></a>

## SchemaRegistryEndpoint

- Name: `SchemaRegistryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.RedPanda/RedPandaServerResource.cs#L47)

Gets the Schema Registry HTTP endpoint for the Redpanda broker.

```csharp
public EndpointReference SchemaRegistryEndpoint { get; }
```
