---
title: List active Agent Health issues
description: Returns the active Agent Health issues for a node Agent or Cluster Agent resource.
breadcrumbs: ドキュメント > API > List active Agent Health issues
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# List active Agent Health issues

## v2 (latest)

| Datadog site      | API endpoint                                                                    |
| ----------------- | ------------------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/agenthealth/hosts/{resource_id}/issues      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/agenthealth/hosts/{resource_id}/issues      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/agenthealth/hosts/{resource_id}/issues  |

### Overview

Returns the active Agent Health issues for a node Agent or Cluster Agent resource.

### Arguments

#### Path Parameters

| Field                    | Type   | Description                                                                                                                                      |
| ------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| resource_id [*required*] | string | Resource identifier whose active Agent Health issues should be returned: a DaemonSet UID for a node Agent or a cluster UUID for a Cluster Agent. |

#### Query Strings

| Field      | Type | Description                                                                                                                        |
| ---------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------- |
| agent_type | enum | Agent type associated with the resource. Defaults to `node` when omitted. Allowed enum values: `node`, `cluster`. Default: `node`. |

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Response containing the active Agent Health issues for a resource.

| Parent field | Field                   | Type     | Description                                                                                                       |
| ------------ | ----------------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
|              | data [*required*]       | object   | Agent Health issue data for a resource.                                                                           |
| data         | attributes [*required*] | object   | Active Agent Health issues for a resource.                                                                        |
| attributes   | issues [*required*]     | [object] | The active issues and their reconciliation metadata.                                                              |
| issues       | category [*required*]   | string   | The category used by the Agent to group and reconcile the issue.                                                  |
| issues       | issue_id [*required*]   | string   | The unique identifier of the issue.                                                                               |
| issues       | issue_name [*required*] | string   | The human-readable name of the issue.                                                                             |
| issues       | issue_type [*required*] | string   | The machine-readable type of the issue.                                                                           |
| data         | id [*required*]         | string   | The resource identifier.                                                                                          |
| data         | type [*required*]       | enum     | The Agent Health issue resource type. Allowed enum values: `agent_health_issues`. Default: `agent_health_issues`. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "issues": [
        {
          "category": "configuration",
          "issue_id": "invalid-config:4828e7d6c704c4a3",
          "issue_name": "Invalid Config",
          "issue_type": "invalid_config"
        }
      ]
    },
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "type": "agent_health_issues"
  }
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Path parameters
export resource_id="123e4567-e89b-12d3-a456-426614174000"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
export DD_API_KEY="<DD_API_KEY>"

curl -X GET "https://api.${DD_SITE}/api/v2/agenthealth/hosts/${resource_id}/issues" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}"
```
{% /tab %}
{% /tabs %}
