---
title: "Get finding"
method: POST
path: "/compliance/api/v1/compliance_result/resource"
tags: ["compliance"]
---

# Get finding

`POST /compliance/api/v1/compliance_result/resource`

Retrieving a single finding

## Request body

- GithubComOpengovernOpengovernancePkgComplianceApiGetSingleResourceFindingRequest
  - `platformResourceID` string
  - `resourceType` string

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgComplianceApiGetSingleResourceFindingResponse
  - `complianceResultDriftEvents` GithubComOpengovernOpengovernancePkgComplianceApiComplianceResultDriftEvent[]
    - `benchmarkID` string
    - `complianceJobID` integer
    - `complianceResultID` string
    - `complianceStatus` 'failed' | 'passed'
    - `controlID` string
    - `evaluatedAt` string
    - `id` string
    - `integrationID` string
    - `integrationName` string
    - `integrationType` string
    - `parentComplianceJobID` integer
    - `platformResourceID` string
    - `previousComplianceStatus` 'failed' | 'passed'
    - `previousStateActive` boolean
    - `providerID` string
    - `reason` string
    - `resourceID` string
    - `resourceLocation` string
    - `resourceName` string
    - `resourceType` string
    - `resourceTypeName` string — Fake fields (won't be stored in ES)
    - `severity` 'none' | 'low' | 'medium' | 'high' | 'critical'
    - `sortKey` unknown[]
      - unknown
    - `stateActive` boolean
  - `controls` 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
  - `resource` EsResource
    - `canonical_tags` EsTag[] — CanonicalTags is the list of tags associated with the resource
      - `key` string
      - `value` string
    - `described_at` integer — DescribedAt is when the DescribeSourceJob is created
    - `described_by` string — DescribedBy is the resource describe job id
    - `description` unknown
    - `es_id` string
    - `es_index` string
    - `integration_id` string — IntegrationID is the integration ID that the resource belongs to
    - `integration_type` string — IntegrationType is the type of the integration source of the resource, i.e. AWS Cloud, Azure Cloud.
    - `metadata` object — Metadata is arbitrary data associated with each resource
    - `platform_id` string — PlatformID is the unique Global ID of the resource inside the platform
    - `resource_id` string — ResourceID is the unique ID of the resource in the integration.
    - `resource_name` string — ResourceName is the name of the resource.
    - `resource_type` string — ResourceType is the type of the resource.

---

[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)
