dcloud billing costs resourceWhat one resource costs: this month, last month, per hour now, monthly cap
IAM billing:GetCostAndUsageRead
From the usage records the invoice is summed from. `currentHour` is null when the resource was not metered in the last two hours (stopped, deleted, or storage). `caps` has one row per machine (a 3-node database has three): charged this month against its monthly cap; once `reached`, its hours cost €0 until the month ends.
Synopsis
dcloud billing costs resource --kind kind --id idFlags
--kindRequiredenum
instance, database, cache, vpn, volume, distribution (CDN) or webAcl (WAF)
One of:
instance,database,cache,vpn,volume,distribution,webAcl--idRequiredstring
The resource id, as its own service names it
Constraints: 1-128 chars
Example
dcloud billing costs resource --kind instance --id exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.