# Check Health

Let’s start with a basic health check, which we can use to see how our instance is doing. We’ll be using `curl` to do this but you can use any tool that allows you to make HTTP/REST calls. Let’s assume that we are still on the same node where we started Snow Owl on and open another command shell window.

To check the instance status/health, we will be using the [Admin API](https://github.com/b2ihealthcare/snow-owl/tree/cc94ccccbd4a1e84b00493e040523574f8a78d35/docs/api/admin.md). You can run the command by clicking the "Copy" link on the right side and pasting it into a terminal.

```
curl http://localhost:8080/snowowl/admin/info
```

And the response:

```
{
  "version": "<version>",
  "description": "You Know, for Terminologies",
  "repositories": {
    "items": [
      {
        "id": "snomedStore",
        "health": "GREEN"
      }
    ]
  }
}
```

In the response, we can see the version of our instance along with the available repositories and their health status (eg. `SNOMED CT` with status `GREEN`).

Whenever we ask for the status, we either get `GREEN`, `YELLOW`, or `RED` and an optional `diagnosis` message.

* Green - everything is good (repository is fully functional)
* Yellow - some data or functionality is not available, or diagnostic operation is in progress (repository is partially functional)
* Red - diagnostic operation required in order to continue (repository is not functional)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2ihealthcare.com/snow-owl/7.x/index/explore/check-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
