Cost & Recommendations API
These endpoints expose the two things most integrations need: what you spent, and what KOSTRA recommends you do about it. All calls require thex-optscale-token header (see Authentication).
Query expenses
Because expenses are normalized, Huawei Cloud spend is returned in the same shape as AWS, Azure, and Google Cloud, so a single integration handles all providers.
Pool expense breakdown
List recommendations
Recommendations for one resource
A savings-report integration
A common pattern:GET .../optimizationsto retrieve current findings and their savings.- Filter to the categories or services your team owns.
- Push each finding to your tracker, and re-pull on a schedule so resolved items drop off as KOSTRA re-evaluates.