dcloud billing costs exportCSV of every (period, resource, usage type) row
Columns: period_start, service, service_name, usage_type, usage_type_name, resource_type, resource_id, resource_name, region, zone, projects, created_by, tags, quantity, unit, amount_eur (8 places, unrounded — sums reproduce the explorer exactly), runs_on. format=excel-de writes the same columns for a German Excel: semicolons, decimal commas, names in words, dates as DD.MM.YYYY, euros to the cent, UTF-8 with a BOM, CRLF.
Synopsis
dcloud billing costs export --start start --end end [flags]Flags
--formatOptionalenum
machine (default: commas, decimal points, column ids, 8 decimal places) or excel-de (semicolons, decimal commas, column names in words, euros to the cent, DD.MM.YYYY, UTF-8 with a BOM)
One of:
machine,excel-de--startRequiredstring
First day of the window, YYYY-MM-DD, UTC, inclusive
Constraints: /^\d{4}-\d{2}-\d{2}$/
--endRequiredstring
Last day of the window, YYYY-MM-DD, UTC, inclusive; not before start, and the window is at most 400 days
Constraints: /^\d{4}-\d{2}-\d{2}$/
--granularityOptionalenum
Width of each bar: hour (windows of at most 14 days), day (default) or month
One of:
hour,day,monthDefault:
"day"--group-byOptionalobject
What the bars are stacked by: {dimension, tagKey}; default {dimension: service}
Constraints: JSON
Default:
{"dimension":"service"}--filtersOptionalarray of json
Narrow to rows matching every filter, at most 20: {dimension, values, tagKey, exclude}; default none
Default:
[]--max-groupsOptionalnumber
Groups drawn on their own, 1–50 (default 8); the rest are summed into "Other"
Constraints: integer, 1-50
Default:
8
Example
dcloud billing costs export --start example --end exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.