v1

latestSwagger 2.02026-07-17172265595.1 KB
compliance

Get possible values for finding filters

Retrieving possible values for finding filters.

post/compliance/api/v1/compliance_result/filters

Request body

benchmarkIDstring[]
complianceStatusGithubComOpengovernOpengovernancePkgComplianceApiComplianceStatus[]
controlIDstring[]
integrationGroupstring[]
integrationIDstring[]
integrationTypestring[]
intervalstring
jobIDstring[]
notIntegrationIDstring[]
resourceIDstring[]
resourceTypeIDstring[]
severityTypesComplianceResultSeverity[]
stateActiveboolean[]

Example request

{
  "benchmarkID": [
    "azure_cis_v140"
  ],
  "complianceStatus": [
    "alarm"
  ],
  "controlID": [
    "azure_cis_v140_7_5"
  ],
  "integrationGroup": [
    "active"
  ],
  "integrationID": [
    "8e0f8e7a-1b1c-4e6f-b7e4-9c6af9d2b1c8"
  ],
  "integrationType": [
    "Azure"
  ],
  "interval": "5m",
  "notIntegrationID": [
    "8e0f8e7a-1b1c-4e6f-b7e4-9c6af9d2b1c8"
  ],
  "resourceID": [
    "/subscriptions/123/resourceGroups/rg-1/providers/Microsoft.Compute/virtualMachines/vm-1"
  ],
  "resourceTypeID": [
    "/subscriptions/123/resourceGroups/rg-1/providers/Microsoft.Compute/virtualMachines"
  ],
  "severity": [
    "low"
  ],
  "stateActive": [
    true
  ]
}

Response

OK

Example response

{
  "benchmarkID": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "complianceStatus": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "controlID": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "integrationID": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "integrationType": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "resourceCollection": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "resourceTypeID": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "severity": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ],
  "stateActive": [
    {
      "count": 10,
      "displayName": "displayName",
      "key": "key"
    }
  ]
}