Harness Recommendations API
Recommendations for workloads and node pools.
Operations 12
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
POST
/ccm/api/recommendation/overview/stats/applied
Get savings from applied recommendations by resource · Returns Applied Recommendations statistics grouped by Resource type with total…
#
Ask an LLM
“How much have we saved from cost recommendations we already applied, per resource type?”
“Which resource types delivered the biggest savings after applying recommendations?”
Tell an agent
Show applied recommendation savings by resource type for account {account}.
Get applied savings by resource type over the last {days} days.
POST
/ccm/api/recommendation/overview/change-inference-status
Verify or reject an inferred recommendation · Return void
#
Ask an LLM
“Can I mark an inferred cost recommendation as verified or rejected?”
“Is there a way to leave a comment when rejecting an inferred recommendation?”
Tell an agent
Set inference status of recommendation {rec} to {status}.
Reject inferred recommendation {rec} with status {status} and comment {comment}.
POST
/ccm/api/recommendation/overview/change-state
Mark a recommendation as applied or open · Return void
#
Ask an LLM
“How do I mark a cost recommendation as applied?”
“Can I record the savings I actually got when applying a recommendation?”
Tell an agent
Mark recommendation {rec} as {state}.
Set recommendation {rec} to {state} with applied savings {savings}.
POST
/ccm/api/recommendation/overview/count
Count cost recommendations · Return the number of Recommendations
#
Ask an LLM
“How many cost recommendations do we have right now?”
“Can I count only recommendations above a minimum saving?”
Tell an agent
Count recommendations for account {account}.
Count recommendations saving at least {min}.
POST
/ccm/api/recommendation/overview/filter-values
List values for recommendation filters · Return the list of filter values for the Recommendations
#
Ask an LLM
“What values can I pick for each recommendation filter column?”
“Which clusters or namespaces show up as recommendation filter values?”
Tell an agent
Get recommendation filter values for columns {columns}.
List distinct recommendation filter values in account {account}.
GET
/ccm/api/recommendation/overview/supported-filters
List supported recommendation filter fields · Return list of supported recommendation filters
#
Ask an LLM
“Which fields am I allowed to filter recommendations on?”
“What filter field IDs does the recommendations API support?”
Tell an agent
List supported recommendation filter fields for account {account}.
Show which filter IDs recommendations accept in account {account}.
POST
/ccm/api/recommendation/overview/iacm
Get recommendations for IaCM-managed resources · Return Recommendations for IaCM Resources
#
Ask an LLM
“Can I get cost recommendations for resources managed by Terraform in IaCM?”
“Which recommendations apply to cloud resources identified by their ARNs?”
Tell an agent
Get recommendations for IaCM resources {resources}.
Find recommendations in state {states} for IaCM resources {resources}.
POST
/ccm/api/recommendation/overview/list
List cost recommendations · Return the list of Recommendations
#
Ask an LLM
“What cost-saving recommendations are open for my cloud resources?”
“Can I list recommendations sorted by potential savings?”
Tell an agent
List recommendations for account {account}.
List recommendations with minimum cost {cost}, sorted by {sort}.
PUT
/ccm/api/recommendation/overview/override-savings
Override a recommendation's savings figure · Return boolean
#
Ask an LLM
“Can I correct the savings amount shown on a recommendation?”
“Is it possible to override estimated savings with my own number?”
Tell an agent
Override savings on recommendation {rec} to {amount}.
Set recommendation {rec} savings to {amount}.
POST
/ccm/api/recommendation/overview/realized-savings
Get realized savings over time · Return time series statistics for realized savings with date information
#
Ask an LLM
“How have realized savings from applied recommendations grown over time?”
“Can I see realized savings aggregated by week or month?”
Tell an agent
Show realized savings as a time series aggregated by {period}.
Get the realized savings timeline for account {account}.
POST
/ccm/api/recommendation/overview/resource-type/stats
Get recommendation stats by resource type · Return Recommendations statistics Grouped on Resource Type
#
Ask an LLM
“How are open recommendations spread across resource types?”
“Which resource type has the most potential savings in open recommendations?”
Tell an agent
Break down recommendation stats by resource type for account {account}.
Group recommendation statistics by resource type for the last {days} days.
POST
/ccm/api/recommendation/overview/stats
Get overall recommendation statistics · Return Recommendations statistics
#
Ask an LLM
“What are the total potential savings across all my recommendations?”
“Can I get summary statistics for recommendations matching a filter?”
Tell an agent
Get overall recommendation statistics for account {account}.
Summarize recommendation stats with minimum saving {min}.
Documentation
Documentation
https://apidocs.harness.io
APIReference
https://apidocs.harness.io
GettingStarted
https://developer.harness.io/docs/platform/automation/api/api-quickstart/
Authentication
https://artifacts.apis.io/harness/authentication/harness-authentication.yml
RateLimits
https://artifacts.apis.io/harness/rate-limits/harness-rate-limits.yml
Specifications
Other Resources
OAuthScopes
https://artifacts.apis.io/harness/scopes/harness-scopes.yml
ErrorCatalog
https://artifacts.apis.io/harness/errors/harness-error-codes.yml
Conventions
https://artifacts.apis.io/harness/conventions/harness-conventions.yml
Idempotency
https://artifacts.apis.io/harness/conventions/harness-conventions.yml