---
title: Retrieve monitored instance
description: Get a specific monitored instance along with its status. The default format is JSON. The servlet will use the HTTP Accept header as a hint if no specific format is specified.
component: pingdirectory
version: 9.3
page_id: pingdirectory:pingdatametrics_server_administration_guide:pd_met_retrieve_monitored_instance
canonical_url: https://docs.pingidentity.com/pingdirectory/9.3/pingdatametrics_server_administration_guide/pd_met_retrieve_monitored_instance.html
revdate: September 13, 2023
section_ids:
  example: Example
---

# Retrieve monitored instance

Get a specific monitored instance along with its status. The default format is JSON. The servlet will use the HTTP Accept header as a hint if no specific format is specified.

|                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| URL              | `/api/v1/instances`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Method           | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Formats          | JSON, XML                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Query parameters | N/A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Server state     | The PingDataMetrics server returns the server state status of the monitored instance, which is displayed by the `status` parameter. The `status` parameter can have one of the following values:- `OFFLINE`

  Server cannot be contacted

- `STARTING_UP`

  Server is starting

- `ONLINE`

  Server is available

- `DEAD_LOCKED`

  Server is deadlocked and not able to process more operations

- `UNAVAILABLE`

  Server is unavailable, but not offline. The server can be in lockdown mode, but still online

- `DEGRADED`

  Server is available but is incapable of providing services

- `CONNECTION_ERROR`

  Server could not connect or has lost connection to the host |

## Example

Instance with ID `metrics-server` in JSON format.

```shell
curl \
-X GET \
https://<metricsServerHost>:8080/api/v1/instances/metrics-server.json
```

|               |                                                                                                                                                                                                                                                                                    |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Response Code | 200 0K                                                                                                                                                                                                                                                                             |
| Response Body | ```json
{
  "displayName": "metrics-server",
  "hostname": "metrics-server.example.com",
  "id" : "metrics-server",
  "operatingSystem": "Linux",
  "status" : {
    "state" : "ONLINE"
  },
  "type" : "metrics-server",
  "version": "PingData PingDataMetrics Server 7.3"
}
``` |
