Operations of the usage tag of the native REST API.
Usage ledger for chargeback: vCPU, memory, storage and network per VM, tenant and day
GET/v1/usage
The usage ledger over a date range, grouped by VM, tenant, resource pool, folder or host, per day, month or for the whole range; scope restricts it to the VMs of one container. format=csv answers text/csv.
vm (default), tenant, resourcePool, folder or host.
period
query
string or null
day (default), month or total.
format
query
string or null
json (default) or csv.
scope
query
string or null
Container id (datacenter, folder, cluster, host, resource pool, datastore or network): only the VMs in it count, with the same rule as GET /v1/inventory/vms?scope=. Tenant, pool, folder and host lines are then computed over those VMs only. Requires System.View on the container.