# ExternalServiceResource

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

## 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 AppHosts.
    ```typescript
  withHttpHealthCheck(path?: string, statusCode?: number, endpointName?: string): ExternalServiceResource
  ```
