Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kubecost Model API

The Model API from Kubecost — 15 operation(s) for model.

Kubecost Model API is published by Kubecost on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 7 JSON Schema definitions.

Tagged areas include Model. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 7 JSON Schemas.

This API exposes 18 operations across 15 paths, and defines 7 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, http://{kubecost-address}.

18 operations 15 paths 7 schemas 1 DELETE15 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Server
http://{kubecost-address}
Contact
License
Resource Areas
1

Paths & Operations 18

Across 15 paths, the API surfaces 18 operations — 1 DELETE, 15 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Model 18
GET
/model/allocation
Kubecost Query allocation cost data
getAllocation 17 params → 200400
GET
/model/allocation/totals
Kubecost Query total allocation costs
getAllocationTotals 4 params → 200
GET
/model/assets
Kubecost Query asset cost data
getAssets 12 params → 200400
GET
/model/assets/totals
Kubecost Query total asset costs
getAssetsTotals 3 params → 200
GET
/model/budget
Kubecost List all budgets
listBudgets → 200
POST
/model/budget
Kubecost Create a budget
createBudget body → 200400
GET
/model/budget/{id}
Kubecost Get a specific budget
getBudget 1 param → 200404
PUT
/model/budget/{id}
Kubecost Update a budget
updateBudget 1 param body → 200400404
DELETE
/model/budget/{id}
Kubecost Delete a budget
deleteBudget 1 param → 200404
GET
/model/cloudCost
Kubecost Query cloud cost data
getCloudCost 8 params → 200400
GET
/model/cloudCost/view
Kubecost Query cloud cost view data
getCloudCostView 7 params → 200
GET
/model/cloudCost/top
Kubecost Query top cloud costs
getCloudCostTop 6 params → 200
GET
/model/forecast/allocation
Kubecost Forecast allocation costs
getForecastAllocation 6 params → 200400
GET
/model/savings/clusterSizingETL
Kubecost Get cluster right-sizing recommendations
getClusterRightSizing 1 param → 200
GET
/model/savings/requestSizingV2
Kubecost Get container request right-sizing recommendations
getContainerRequestRightSizing 7 params → 200
GET
/model/savings/abandonedWorkloads
Kubecost List abandoned workloads
getAbandonedWorkloads 1 param → 200
GET
/model/savings/orphanedDisks
Kubecost List orphaned disks
getOrphanedDisks → 200
GET
/model/savings/orphanedIPs
Kubecost List orphaned IP addresses
getOrphanedIPs → 200

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Allocation (37 properties), Budget (10 properties), RequestSizingRecommendation (10 properties), Asset (8 properties). Each schema is shown below with its type and property counts.

BudgetAction
object
3 properties
ClusterSizingRecommendation
object
8 properties
RequestSizingRecommendation
object
10 properties
Budget
object
10 properties
Asset
object
8 properties
BudgetInput
object
6 properties 3 required
Allocation
object
37 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kubecost-model-api-openapi.yml Raw ↑