---
title: List active Agent Health issues
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Agent Health
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# List active Agent Health issues{% #list-active-agent-health-issues %}

{% tab title="v2" %}

| Datadog site      | API endpoint                                                                    |
| ----------------- | ------------------------------------------------------------------------------- |
| 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 |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/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  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/agenthealth/hosts/{resource_id}/issues |
| 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 |

### Overview

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

### Arguments

#### Path Parameters

| Name                          | 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

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

### Response

{% tab title="200" %}
OK
{% tab title="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` |

{% /tab %}

{% tab title="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 %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export resource_id="123e4567-e89b-12d3-a456-426614174000" \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/agenthealth/hosts/${resource_id}/issues" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" 

                
{% /tab %}
