VEXXHOSTDocumentation
CLI referenceopenstack cost report

openstack cost report create

Compute an estimated cost and usage report (not a stored resource).

Usage

openstack cost report create \
    --start START \
    --end END \
    [--granularity {hourly,daily,monthly}] \
    [--project PROJECT_ID] ... \
    [--region REGIONS] ... \
    [--service {compute,volume,image}] ... \
    [--usage-type USAGE_TYPES] ... \
    [--as-of AS_OF] \
    [--metric {cost,usage_quantity}] ... \
    [--group-by {project_id,region,service,usage_type,resource_id}] ... \
    [--no-group] \
    [--detail]

Arguments

  • --start START (required)

    Inclusive start date/time; date-only values use UTC.

  • --end END (required)

    Exclusive end date/time.

  • --granularity <granularity>

    One of: hourly, daily, monthly.

    Default: daily.

  • --project PROJECT_ID (repeatable)

    Filter project ID (repeatable); subject to token scope.

  • --region REGIONS (repeatable)

    Filter usage region (repeatable); independent of --os-region-name.

  • --service <service> (repeatable)

    One of: compute, volume, image.

  • --usage-type USAGE_TYPES (repeatable)

    Filter usage type/flavor (repeatable).

  • --as-of AS_OF

    Reporting cutoff timestamp.

  • --metric <metric> (repeatable)

    One of: cost, usage_quantity.

  • --group-by <group-by> (repeatable)

    One of: project_id, region, service, usage_type, resource_id.

  • --no-group

    Request cost totals only (defaults metric to cost).

  • --detail

    Show each group/metric instead of period totals.

Output

This command also takes the common output options, such as -f json and -c <column>. See Set up the CLI.

On this page