Skip to main content
Monitoring & Collection/Hardware

GetHardwareSummary

Requires a current platform administrator. Global counts include every registered Target once, including disabled and multi-source Targets; excludes unmanaged Discovery candidates. Reuses current Snapshot health, retaining reported health for old or disabled data and UNKNOWN without a Snapshot. Reads health and saved source links in one database transaction, then queries Federation's stored platform directory and discovery facts when source links exist. Query failures return an error, never partial counts. Does not query Victoria, BMC or live platform APIs. Each distinct active platform counts a Target once; multi-platform Targets appear in each group. Targets without an active source use empty platform fields in the last group. Empty groups are omitted; an empty database returns platforms: []. Groups are ordered by platform UUID. No filters or pagination; total is not the total of a filtered Target list.

GET/api/v1/hardware/summary

Operation ID

GetHardwareSummary

Since

1.3.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

This API requires no request parameters.

Responses

200 OK

A successful response.

Content-Type: application/json

Response body root type: object

HardwareSummary is independent of list pagination and statusCounts.

  • total
    String

    total counts registered Targets; equals the sum of health_counts.

    Example: 10

    {"format":"int64"}

  • healthCounts
    LinkedHashMap

    health_counts always contains NORMAL, WARNING, CRITICAL and UNKNOWN, including zero counts. These are existing hardware_health states.

  • platforms
    List

    Current valid source platforms; a Target may count in multiple groups.

    • platformUuid
      String

      Empty platform fields identify the unassociated group, returned last.

      Example: value

    • platformName
      String

      Platform name for this resource

      Example: value

    • productType
      String

      Product type for this resource

      Example: value

    • total
      String

      Total for this resource

      Example: 10

      {"format":"int64"}

    • healthCounts
      LinkedHashMap

      Health counts for this resource