Cloud Cost Management

Search cost recommendations

List cost recommendations matching a filter, with pagination and sorting.

post/api/v2/cost/recommendations

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/cost/recommendations
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: cloud_cost_management_read

Query parameters

page[size]string

Number of results per page (1–10000).

page[token]string

Pagination token from a previous response.

Request body

filterstring

Filter expression applied to the recommendations.

viewstring

Active view name (for example, active, dismissed, open, in-progress, or completed).

Example request

{
  "filter": "@resource_table:aws_ec2_instance",
  "sort": [
    {
      "expression": "potential_daily_savings.amount",
      "order": "DESC"
    }
  ]
}

Response

OK

Example response

{
  "data": [
    {
      "type": "recommendation"
    }
  ]
}

Changes

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