dcloud billing costs lines

The usage lines behind a bar, a group or a resource

IAM billing:GetCostAndUsageRead

One line per (resource, usage type, unit price): quantity, unit, rate, amount, first and last metered. Pass `bucket` (the ISO start of a bar) with its `granularity` to see one bar.

Synopsis

dcloud billing costs lines --start start --end end [flags]

Flags

  • --startRequired

    string

    First day of the window, YYYY-MM-DD, UTC, inclusive

    Constraints: /^\d{4}-\d{2}-\d{2}$/

  • --endRequired

    string

    Last day of the window, YYYY-MM-DD, UTC, inclusive

    Constraints: /^\d{4}-\d{2}-\d{2}$/

  • --filtersOptional

    array of json

    Narrow to rows matching every filter, at most 20, as in cost-explorer/query; default none

    Default: []

  • --bucketOptional

    string

    Only the bar starting at this ISO 8601 instant (a `series` point’s start), one granularity wide; default the whole window

    Constraints: datetime

  • --granularityOptional

    enum

    How wide `bucket` is: hour, day (default) or month; ignored without bucket

    One of: hour, day, month

    Default: "day"

  • --limitOptional

    number

    At most this many lines, 1–2000 (default 200), largest amount first; `truncated` says when more exist

    Constraints: integer, 1-2000

    Default: 200

Example

dcloud billing costs lines --start example --end example

Generated from the API description, the same one the API checks requests against and the CLI is built from.