v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Fleet Automation

Get detailed information about an agent

Retrieve detailed information about a specific Datadog Agent. This endpoint returns comprehensive information about an agent including:

  • Agent details and metadata
  • Configured integrations organized by status (working, warning, error, missing)
  • Detected integrations
  • Configuration files and layers
get/api/unstable/fleet/agents/{agent_key}

Path parameters

agent_keystring required

The unique identifier (agent key) for the Datadog Agent.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "agent_infos": {
        "agent_version": "7.50.0",
        "api_key_name": "Production API Key",
        "api_key_uuid": "a1b2c3d4-e5f6-4321-a123-123456789abc",
        "cloud_provider": "aws",
        "datadog_agent_key": "my-agent-hostname",
        "hostname": "my-hostname",
        "install_method_installer_version": "1.2.3",
        "install_method_tool": "chef",
        "os": "linux",
        "os_version": "Ubuntu 20.04",
        "python_version": "3.9.5",
        "remote_agent_management": "enabled",
        "remote_config_status": "connected"
      },
      "detected_integrations": [
        {
          "escaped_name": "postgresql",
          "prefix": "postgres"
        }
      ],
      "integrations": {
        "configuration_files": [
          {
            "file_path": "/conf.d/postgres.d/postgres.yaml",
            "filename": "postgres.yaml"
          }
        ],
        "error_integrations": [
          {
            "data_type": "metrics",
            "type": "postgres"
          }
        ],
        "missing_integrations": [
          {
            "escaped_name": "postgresql",
            "prefix": "postgres"
          }
        ],
        "warning_integrations": [
          {
            "data_type": "metrics",
            "type": "postgres"
          }
        ],
        "working_integrations": [
          {
            "data_type": "metrics",
            "type": "postgres"
          }
        ]
      }
    },
    "id": "my-agent-hostname",
    "type": "datadog_agent_key"
  }
}