1.5

VMware, Inc. 23
3
ThischapterexplainssomeofthetasksthatyoucanperformbyusingvCenterChargebackAPIsinan
environmentwherevCenterChargebackisintegratedwithathirdpartybillingsystem.YoucanusevCenter
Chargebacktoperformcostmeasurementandgenerateresourceutilizationreports,whichareprovidedtothe
billingsystem
tochargecustomers.
Thechapterincludesthefollowingtopics:
“RequirementsforCodeExamples”onpage 23
“A d d CostModels”onpage 26
“A d d aBillingPolicyonpage 27
“RetrieveListofHierarchies”onpage 28
“GetDetailsofaHierarchy”onpage 29
“A d d ReportScheduleforHierarchy”onpage 30
“GetReportSchedulebyHierarchyName”onpage 33
“RescheduleaReport”onpage 35
“DeleteReportSchedule”onpage 36
“GetListofArchivedReportsforaHierarchy”onpage 37
“GetaReportasXML”onpage 38
Requirements for Code Examples
ThischapterprovidescodeexamplestoexplainhowyoucancalltheAPIs.Torunthesecodeexamples,you
requirethefollowingJARandhelperclassfiles.
JAR Files
ThecodeexamplesneedthefollowingJARfiles.
commons-httpclient-3.1.jar
commons-logging-1.1.1.jar
jdom.jar
YoumustplacetheseJARfilesintheclasspath.
Using vCenter Chargeback with a
Billing System
3