# ExternalServiceResource

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

## Definition

```typescript
interface ExternalServiceResource extends IResource {
  withHttpHealthCheck(
      path?: string,
      statusCode?: number,
      endpointName?: string): ExternalServiceResource;
}
```

## Methods

- [withHttpHealthCheck](/reference/api/typescript/aspire.hosting/externalserviceresource/withhttphealthcheck.md) -- `method` -- Adds an HTTP health check to the external service for polyglot app hosts.
    ```typescript
  withHttpHealthCheck(path?: string, statusCode?: number, endpointName?: string): ExternalServiceResource
  ```
