v1

latestOpenAPI 3.0.12026-07-26152262362.2 KB
Insights

Replace resource results for an insight

Replaces all resource results for the specified insight. Any existing unresolved resource results not present in the new set will be removed. The response includes server-computed fields (severity, resolved, enhancement) for each resource result. To delete all resource results, send an empty array.

post/insights/v1/results/source/{sourceID}/insight/{insightKey}/resource-results

Path parameters

sourceID'public-api' required

Only insights created via the public API can be managed. Currently only "public-api" is supported.

insightKeystring required

The unique key identifying the insight.

Query parameters

maxResultsinteger

Maximum number of results per page in the response (default 1000, max 5000).

Request body

Example request

{
  "resourceResults": [
    {
      "resourceType": "instance, disk, cache",
      "cloudProvider": "aws",
      "location": "eu-west-2"
    }
  ]
}

Response

Resource results created/replaced successfully

pageTokenstring
rowCountinteger required

Example response

{
  "resourceResults": [
    {
      "resourceType": "instance, disk, cache",
      "cloudProvider": "aws",
      "location": "eu-west-2"
    }
  ]
}