GET /api/metering/service-instance/{serviceInstanceId}/l2/{l2Id}/billable-usage

Operation:
GET /api/metering/service-instance/{serviceInstanceId}/l2/{l2Id}/billable-usage
Description:
Gets current/unbilled usage for the specified L2; Usage is shown only for durations for which the bill is not yet generated. It includes details like entity details, metric name, usage, unit, rate, currency and cost.

If query params are not specified, it will default to 'duration=BillToDate'.
Query params start and end are mutually exclusive with duration.

Input parameters:

serviceInstanceId - the id of the service instance to which l2 belongs.
l2Id - the id of l2 whose unbilled usage is to be fetched.
duration - the unbilled usage duration. It's an enumeration, with possible values as BillToDate (last bill date to current time).
start - the start time in ISO 8601 UTC. The unbilled usage is collected from this time onwards. Only hour component of the time is considered, e.g. 2014-02-13T10:39:22.000Z will be considered as 2014-02-13T10:00:00.000Z.
end - the end time in ISO 8601 UTC. The unbilled usage is collected till this time. Only hour component of the time is considered, e.g. 2014-02-13T11:39:22.000Z will be considered as 2014-02-13T11:00:00.000Z.
Since:
5.7
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
the BillableUsageType

Produce media type(s):
application/json;class=com.vmware.vchs.metering.billableUsage;version=5.7
application/xml;class=com.vmware.vchs.metering.billableUsage;version=5.7
Output type:
BillableUsageType
Examples