---
title: "Get the Aggregated Policy Stats for a System"
method: GET
path: "/api/v2/systems/{systemObjectId}/aggregated-policy-stats"
tags: ["Aggregated Policy Stats"]
---

# Get the Aggregated Policy Stats for a System

`GET /api/v2/systems/{systemObjectId}/aggregated-policy-stats`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/systems/{systemObjectId}/aggregated-policy-stats`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/systems/:systemObjectId/aggregated-policy-stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets the aggregated policy stats for a system.

#### Sample Request
```
curl -X GET https://console.jumpcloud.com/api/v2/systems/{system_object_id}/aggregated-policy-stats \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key:{API_KEY}'
```

## Path parameters

- `systemObjectId` string, byte, required

## Query parameters

- `organizationObjectId` string, byte

## Response `200`

A successful response.

- DevicesAggregatedPolicyResultResponse
  - `failedPolicies` string[]
  - `pendingPolicies` string[]
  - `policyCountData` DevicesAggregatedPolicyCount
    - `duplicate` integer: the count of duplicate policies.
    - `failed` integer: the count of failing policies.
    - `pending` integer: the count of pending policies.
    - `success` integer: the count of successful policies.
    - `total` integer: the count of all the policies attached to the system.
    - `unsupportedOs` integer: the count of policies for which os is unsupported.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
