/filters/alerts - Get the static alert catalog

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api.my.nethesis.it/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "my.nethesis.it MCP server": {
    "url": "https://api.my.nethesis.it/mcp"
  }
}

Close
GET /filters/alerts

Returns the static catalog of every alert a NethServer (NS8) or NethSecurity system can raise. Used to populate the "alert name" dropdown in the alerts views.

Systems and organizations dropdowns are populated by the dedicated /api/systems and /api/organizations endpoints; severities are a fixed enum (critical|warning|info) the UI hardcodes. None of those need a scope-aware aggregation here.

Responses

  • 200 application/json

    Alert filters retrieved successfully

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object
      Hide data attribute Show data attribute object
      • alerts array[object]

        Static catalog of every alert a NethServer (NS8) or NethSecurity system can raise.

        Hide alerts attributes Show alerts attributes object
        • name string

          Alert name (alertname label)

        • severity string

          Default severity for this alert type

          Values are critical, warning, or info.

        • service string

          Sub-service that raises the alert (omitted when not applicable)

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /filters/alerts
curl \
 --request GET 'https://api.your-domain.com/api/filters/alerts' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "alert filters retrieved successfully",
  "data": {
    "alerts": [
      {
        "name": "DiskSpaceLow",
        "severity": "warning",
        "service": "storage"
      },
      {
        "name": "ServiceDown",
        "severity": "critical"
      }
    ]
  }
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}