---
title: "List the policy statuses for a system"
method: GET
path: "/systems/{system_id}/policystatuses"
tags: ["Graph", "Policies"]
---

# List the policy statuses for a system

`GET /systems/{system_id}/policystatuses`

## Request

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

This endpoint returns the policy results for a particular system.

##### Sample Request

```
curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'

```

## Query parameters

- `fields` string[]
- `filter` string[]
- `limit` integer
- `skip` integer
- `sort` string[]

## Headers

- `x-org-id` string

## Response `200`

OK

- PolicyResult[]
  - `detail` string: Details pertaining to the policy result.
  - `endedAt` string, date-time: The end of the policy application.
  - `exitStatus` integer: The 32-bit unsigned exit status from the applying the policy.
  - `id` string: ObjectId uniquely identifying a Policy Result.
  - `policyID` string: ObjectId uniquely identifying the parent Policy.
  - `startedAt` string, date-time: The start of the policy application.
  - `state` string: Enumeration describing the state of the policy. Success, failed, or pending.
  - `stdErr` string: The STDERR output from applying the policy.
  - `stdOut` string: The STDOUT output from applying the policy.
  - `success` boolean: True if the policy was successfully applied; false otherwise.
  - `systemID` string: ObjectId uniquely identifying the parent System.
  - `userObjectId` string: ObjectId uniquely identifying the parent User.

## Other responses

- `401`: Unauthenticated

---

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