# ElasticsearchResource Properties

- Package: [Aspire.Hosting.Elasticsearch](/reference/api/csharp/aspire.hosting.elasticsearch.md)
- Type: [ElasticsearchResource](/reference/api/csharp/aspire.hosting.elasticsearch/elasticsearchresource.md)
- Kind: `Properties`
- Members: `4`

A resource that represents a Elasticsearch

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/elastic/elastic-aspire-dotnet/blob/cb75438c68bc9385b00564d69ba8f537c26a696d/src/Aspire.Hosting.Elasticsearch/ElasticsearchResource.cs#L49)

Gets the connection string expression for the Elasticsearch

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

## InternalEndpoint

- Name: `InternalEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/elastic/elastic-aspire-dotnet/blob/cb75438c68bc9385b00564d69ba8f537c26a696d/src/Aspire.Hosting.Elasticsearch/ElasticsearchResource.cs#L38)

Gets the internal endpoint for the Elasticsearch. This endpoint used for communications between nodes in a cluster

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

## PasswordParameter

- Name: `PasswordParameter`
- Modifiers: `get`
- Returns: `ParameterResource`
- Source: [GitHub](https://github.com/elastic/elastic-aspire-dotnet/blob/cb75438c68bc9385b00564d69ba8f537c26a696d/src/Aspire.Hosting.Elasticsearch/ElasticsearchResource.cs#L43)

Gets the parameter that contains the Elasticsearch superuser password.

```csharp
public ParameterResource PasswordParameter { get; }
```

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/elastic/elastic-aspire-dotnet/blob/cb75438c68bc9385b00564d69ba8f537c26a696d/src/Aspire.Hosting.Elasticsearch/ElasticsearchResource.cs#L33)

Gets the primary endpoint for the Elasticsearch. This endpoint is used for all API calls over HTTP.

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