3
Using vCenter Chargeback with a
Billing System
This chapter explains some of the tasks that you can perform by using vCenter Chargeback APIs in an
environment where vCenter Chargeback is integrated with a third party billing system. You can use vCenter
Chargeback to perform cost measurement and generate resource utilization reports, which are provided to the
billing system to charge customers.
The chapter includes the following topics:
"Requirements for Code Examples" on page 23
"Add Cost Models" on page 26
"Add a Billing Policy" on page 27
"Retrieve List of Hierarchies" on page 28
"Get Details of a Hierarchy" on page 29
"Add Report Schedule for Hierarchy" on page 30
"Get Report Schedule by Hierarchy Name" on page 33
"Reschedule a Report" on page 35
"Delete Report Schedule" on page 36
"Get List of Archived Reports for a Hierarchy" on page 37
"Get a Report as XML" on page 38
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.
3
23