# SeqResource

- Module: [Aspire.Hosting.Seq](/reference/api/typescript/aspire.hosting.seq.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

An Aspire resource that is a Seq server.

## Definition

```typescript
interface SeqResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly host: EndpointReferenceExpression;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  withDataBindMount(
      source: string,
      isReadOnly?: boolean): SeqResource;
  withDataVolume(
      name?: string,
      isReadOnly?: boolean): SeqResource;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the connection string expression for the Seq server.
- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the Seq server.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the Seq server.

## Methods

- [withDataBindMount](/reference/api/typescript/aspire.hosting.seq/seqresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Seq container resource.
    ```typescript
  withDataBindMount(source: string, isReadOnly?: boolean): SeqResource
  ```
- [withDataVolume](/reference/api/typescript/aspire.hosting.seq/seqresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Seq container resource.
    ```typescript
  withDataVolume(name?: string, isReadOnly?: boolean): SeqResource
  ```
