2
Understanding the Workflow
This chapter explains how to perform some of the basic vCenter Chargeback tasks using the APIs. You can
create a hierarchy and add entities, add fixed cost and generate a report on resource utilization.
The chapter includes the following topics:
"Requirements for Code Examples" on page 11
"Log In to vCenter Chargeback Server" on page 14
"Add vCenter Server Information" on page 15
"Add a Custom Chargeback Hierarchy" on page 16
"Add a vCenter Server Entity to the Chargeback Hierarchy" on page 17
"Add a Fixed Cost" on page 19
"Modify a Fixed Cost Value" on page 20
"Generate a Report" on page 21
Requirements for Code Examples
This chapter provides code examples to explain how you can call the APIs. To run these code examples, you
require the following JAR and helper class files.
JAR Files
The code examples need the following JAR files.
commons-httpclient-3.1.jar
commons-logging-1.1.1.jar
jdom.jar
You must place these JAR files in the classpath.
VMware, Inc.
2
11