@Generated public class BillableUsageAPI extends Object
| Constructor and Description |
|---|
BillableUsageAPI(ApiClient apiClient)
Regular-use constructor
|
BillableUsageAPI(BillableUsageService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
DownloadResponse |
download(DownloadRequest request)
Returns billable usage logs in CSV format for the specified account and date range.
|
DownloadResponse |
download(String startMonth,
String endMonth) |
BillableUsageService |
impl() |
public BillableUsageAPI(ApiClient apiClient)
public BillableUsageAPI(BillableUsageService mock)
public DownloadResponse download(String startMonth, String endMonth)
public DownloadResponse download(DownloadRequest request)
- AWS: [CSV file schema]. - GCP: [CSV file schema].
Note that this method might take multiple minutes to complete.
**Warning**: Depending on the queried date range, the number of workspaces in the account, the size of the response and the internet speed of the caller, this API may hit a timeout after a few minutes. If you experience this, try to mitigate by calling the API with narrower date ranges.
[CSV file schema]: https://docs.gcp.databricks.com/administration-guide/account-settings/usage-analysis.html#csv-file-schema
public BillableUsageService impl()
Copyright © 2026. All rights reserved.