2.5

VMware, Inc. 13
2
ThischapterexplainshowtoperformsomeofthebasicvCenterChargebackManagertasksusingtheAPIs.
Youcancreateahierarchyandaddentities,addfixedcostandgenerateareportonresourceutilization.
Thechapterincludesthefollowingtopics:
“RequirementsforCodeExamples”onpage 13
“LogIntovCenterChargebackManageronpage 16
“A d d vCenterServerInformation”onpage 17
“A d d aCustomChargebackHierarchy”onpage 18
“A d d avCenterServerEntitytotheChargebackHierarchy”onpage 19
“A d d aFixedCost”onpage 21
“ModifyaFixedCostValueonpage 22
“GenerateaReport”onpage 23
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