4.2.1
Table Of Contents
- Using VMware vCenter Orchestrator Plug-Ins
- Contents
- Using VMware vCenter Orchestrator Plug-Ins
- Introduction to Orchestrator Plug-Ins
- Using the vCenter Server 5.0.1 Plug-In
- Configure the vCenter Server 5.0.1 Plug-In
- vCenter Server 5.0.1 Plug-In Scripting API
- Using the vCenter Server Plug-In Inventory
- Access the vCenter Server Plug-In Workflow Library
- vCenter Server Plug-In Workflow Library
- Batch Workflows
- Cluster and Compute Resource Workflows
- Custom Attributes Workflows
- Datacenter Workflows
- Datastore and Files Workflows
- Datacenter Folder Management Workflows
- Host Folder Management Workflows
- Virtual Machine Folder Management Workflows
- Basic Host Management Workflows
- Power Host Management Workflows
- Host Management Registration Workflows
- Networking Workflows
- Distributed Virtual Port Group Workflows
- Distributed Virtual Switch Workflows
- Standard Virtual Switch Workflows
- Resource Pool Workflows
- Storage Workflows
- Storage DRS Workflows
- Basic Virtual Machine Management Workflows
- Clone Workflows
- Linked Clone Workflows
- Linux Customization Clone Workflows
- Tools Clone Workflows
- Windows Customization Clone Workflows
- Device Management Workflows
- Move and Migrate Workflows
- Other Workflows
- Power Management Workflows
- Snapshot Workflows
- VMware Tools Workflows
- Using the vCO Library Plug-In
- Using the Database Plug-In
- Using the SSH Plug-In
- Using the XML Plug-In
- Using the Mail Plug-In
- Using the Net Plug-In
- Using the Enumeration Plug-In
- Index
Using the Database Plug-In 4
You can use the API that the Database plug-in provides to implement connectivity to SQL databases and other
tabular data sources, such as spreadsheets or flat files.
The Database plug-in API which is based on JDBC, provides a call-level API for SQL-based database access.
The Database plug-in also provides sample workflows that demonstrate how to use the API in workflows.
This chapter includes the following topics:
n
“Database Plug-In Scripting API,” on page 33
n
“Running the JDBC Sample Workflows,” on page 35
Database Plug-In Scripting API
The Database scripting API contains classes, with their respective methods, that enable interaction between
vCenter Orchestrator and SQL-based databases. You can use the API to create workflows that read data from
and write data to SQL-based databases.
Connection Class
The Connection class contains methods that control the connection to a database.
The Connection class defines the following methods.
Method Returns Description
close():Object Object
Releases the database and JDBC
resources for a Connection object.
createStatement():Object Object
Creates a Statement object for sending
SQL statements to the database.
prepareCall(string):PreparedSta
tement
PreparedStatement
Creates a CallableStatement object
for calling database stored procedures.
prepareStatement(string):Prepar
edStatement
PreparedStatement
Creates a PreparedStatement object
for sending parameterized SQL
statements to the database.
JDBCConnection Class
The JDBCConnection class contains a method that specifies the URL and credentials for a connection to a
database.
The Connection class defines the following method.
VMware, Inc.
33