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

Request

  • Base URL
    https://api.doit.com
  • URL
    https://api.doit.com/insights/v1/results/source/{sourceID}/insight/{insightKey}/resource-results
  • Auth
    • API key in header Authorization
    • or API key in header X-Tenant-Id and API key in header Authorization

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"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.