Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Setting Up Collection > Native collectors > VMware vSphere > Data source configuration

Data source configuration

Table of contents
No headers

The vSphere collectors need a data source to provide a VMware vSphere endpoint URL and credentials. The vSphere endpoint URL is <VirtualCenter.VimApiUrl>/vimService. You can find the value of VirtualCenter.VimApiUrl for your vCenter server by choosing Administration > vCenter Server Settings > Advanced Settings in the vSphere Client. By default this value is https://<serverName>:443/sdk, which would make the endpoint URL https://<serverName>:443/sdk/vimService.

You can provide this in Cloud Cruiser as a managed data source, or you can embed connection details in the job file as an explicit data source. The explicit data source requires that all connection information be set directly on the bean, which means credentials are embedded in one or more job files. To specify the data source for data collection directly in the job XML, use the VSphereDataSourceConfig bean to provide the endpoint URL using the following syntax:

<bean class="com.cloudcruiser.batch.collect.vmware.vsphere.VSphereDataSourceConfig">
  <property name="endpoint" value="endpointURL"/>
  <property name="username" value="user"/>
  <property name="password" value="password"/>

This is convenient when developing jobs, but not necessarily secure and can increase maintenance complexity when credentials change.

Alternatively, a managed data source is securely maintained in the application and is referenced by one or more jobs using a unique data source name. You can set the data source connection in Cloud Cruiser and refer to the data source by name (see Managed data source for more information). For example, with the data source managed by the application, the ManagedVSphereDataSource bean in the job file can fetch the data source vs1 by name:

<bean class="com.cloudcruiser.batch.collect.vmware.vsphere.ManagedVSphereDataSource">
  <property name="name" value="vs1"/>
Last modified


This page has no custom tags.


This page has no classifications.

 (c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP