Insights

List resource results for an insight

Returns a paginated list of individual resource-level results for a specific insight. Each resource result represents a single cloud resource (e.g. an EC2 instance, a GCS bucket) affected by the insight, along with its risk scores or potential savings.

get/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

sourceIDstring required

The identifier of the source that generated the insight.

insightKeystring required

The unique key identifying the insight.

Query parameters

pageTokenstring

Token from a previous response to fetch the next page.

maxResultsinteger

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

Response

Successful operation

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.