---
title: "Get complianceResults"
method: POST
path: "/compliance/api/v3/compliance_result"
tags: ["compliance"]
---

# Get complianceResults

`POST /compliance/api/v3/compliance_result`

Retrieving all compliance run complianceResults with respect to filters.

## Request body

- GithubComOpengovernOpengovernancePkgComplianceApiGetComplianceResultsRequestV2
  - `afterSortKey` unknown[]
    - unknown
  - `filters` GithubComOpengovernOpengovernancePkgComplianceApiComplianceResultFiltersV2
    - `benchmark_id` string[]
    - `control_id` string[]
    - `integration` GithubComOpengovernOpengovernancePkgComplianceApiIntegrationInfoFilter[]
      - `integration_id` string
      - `integration_type` string
      - `name` string
      - `provider_id` string
    - `is_active` boolean[]
    - `is_compliant` boolean[]
    - `last_event` object
      - `from` integer
      - `to` integer
    - `not_benchmark_id` string[]
    - `not_control_id` string[]
    - `not_last_event` object
      - `from` integer
      - `to` integer
    - `not_resource_id` string[]
    - `not_resource_type` string[]
    - `not_severity` TypesComplianceResultSeverity[]
    - `resource_id` string[]
    - `resource_type` string[]
    - `severity` TypesComplianceResultSeverity[]
  - `limit` integer
  - `sort` GithubComOpengovernOpengovernancePkgComplianceApiComplianceResultsSortV2[]
    - `benchmark_id` 'asc' | 'desc'
    - `compliance_status` 'asc' | 'desc'
    - `control_id` 'asc' | 'desc'
    - `last_updated` 'asc' | 'desc'
    - `resource_type` 'asc' | 'desc'
    - `severity` 'asc' | 'desc'

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgComplianceApiGetComplianceResultsResponse
  - `complianceResults` GithubComOpengovernOpengovernancePkgComplianceApiComplianceResult[]
    - `benchmarkID` string
    - `complianceJobID` integer
    - `complianceStatus` 'failed' | 'passed'
    - `controlID` string
    - `controlPath` string
    - `controlTitle` string
    - `costImpact` number
    - `evaluatedAt` integer
    - `id` string
    - `integrationID` string
    - `integrationName` string — Connection ID
    - `integrationType` string
    - `lastEvent` string
    - `parentBenchmarkNames` string[]
    - `platformResourceID` string
    - `providerID` string — Connection ID
    - `reason` string
    - `resourceID` string
    - `resourceName` string
    - `resourceType` string
    - `resourceTypeName` string
    - `runnerID` integer
    - `severity` 'none' | 'low' | 'medium' | 'high' | 'critical'
    - `sortKey` unknown[]
      - unknown
    - `stateActive` boolean
  - `totalCount` integer

---

[API](https://skmtc.net/opengovern/apis/opengovernance-service-api.md) · [All operations](https://skmtc.net/opengovern/apis/opengovernance-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opengovern/opengovernance-service-api/revisions/ab05295c4094/schema)
