1.5
Table Of Contents
- vCenter Chargeback API Programming Guide
- Contents
- About This Book
- vCenter Chargeback APIs
- Understanding the Workflow
- Using vCenter Chargeback with a Billing System
- Index
VMware, Inc. 11
2
ThischapterexplainshowtoperformsomeofthebasicvCenterChargebacktasksusingtheAPIs.Youcan
createahierarchyandaddentities,addfixedcostandgenerateareportonresourceutilization.
Thechapterincludesthefollowingtopics:
“RequirementsforCodeExamples”onpage 11
“LogIntovCenterChargebackServer”onpage 14
“A d d vCenterServerInformation”onpage 15
“A d d aCustomChargebackHierarchy”onpage 16
“A d d avCenterServerEntitytotheChargebackHierarchy”onpage 17
“A d d aFixedCost”onpage 19
“ModifyaFixedCostValue”onpage 20
“GenerateaReport”onpage 21
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.
Understanding the Workflow
2