DATABRICKS
Databricks
Databricks Clusters

Get cluster cost data

Get cost data for a specific cluster.

get/api/v1/databricks/clusters/{cluster_id}/cost

Path parameters

cluster_idstring required

Query parameters

start_datestring date required

Start date for cost data

Start date for cost data

end_datestring date

End date for cost data

End date for cost data

granularitystring

Time granularity (day, week, month)

Time granularity (day, week, month)

navigationSourcestring nullable

Headers

x-tenantstring required

Response

Successful Response

cluster_idstring required
total_dbusnumber
estimated_costnumber
daily_average_dbusnumber
daily_average_costnumber
window_daysinteger

Denominator behind daily_average_dbus/daily_average_cost — the inclusive day count of the requested [start_date, end_date] window, NOT the count of days the cluster actually had billing. A cluster billed on only 3 of a 30-day window shows its true $/day rate across the window, not an inflated per-active-day rate.

Changes

Changed in 1 of the 28 revisions of this API.1

    • added the optional property window_days to the response with the 200 status

      response-optional-property-added