GET /api/billing/service-instance/{serviceInstanceId}/l2/{l2Id}/billed-usage

Operation:
GET /api/billing/service-instance/{serviceInstanceId}/l2/{l2Id}/billed-usage
Description:
Gets billed usage for the specified L2 for a given billing month; Usage is shown only for months for which the bill is generated. It includes details like bill duration, entity details, metric name, usage, unit, rate, currency and cost.

If query params are not specified, it will default to 'month={last billed month}, year={last billed year} and level=self'.

Input parameters:

serviceInstanceId - the id of the service instance to which l2 belongs.
l2Id - the id of l2 whose billed usage is to be fetched.
month - the billing month of billed usage.
year - the billing year of billed usage.
level - determines the data level. It's an enumeration, with possible values as
self : It will list billed usage of a given l2
one : It will list l2 billed usage along with child entities billed usage
Since:
5.7
Input parameters
Consume media type(s):
None
Input type:
None
Output parameters
and instance of BilledUsageType

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