1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-23 18:10:00 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter/setup
Tianhao He 92c794364d Mis changes
1. Use '_' to replace ' ' for objects in testbed.py
2. Update the path in README
3. Add README to sso and lib folder
2017-01-24 15:28:39 -08:00
..
__init__.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
backend_directory.py Adjust the folder strucuture to match what's like in Java project. 2017-01-23 16:50:20 -08:00
cluster.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
datacenter.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
datastore.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
floppy_image.py Mis changes 2017-01-24 15:28:39 -08:00
folder.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
host.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
iso_image.py Mis changes 2017-01-24 15:28:39 -08:00
main.py Mis changes 2017-01-24 15:28:39 -08:00
network.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
README.md Mis changes 2017-01-24 15:28:39 -08:00
setup_cli.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
testbed_setup.py folder change vsphere/samples -> samples/vsphere 2017-01-23 13:28:22 -08:00
testbed.py Mis changes 2017-01-24 15:28:39 -08:00

This directory contains sample scripts to setup the testbed required to run the vCenter APIs samples. You can also use main.py to run all the samples inside the vcenter.vm package.

  • Testbed Requirement:

    • 1 vCenter Server
    • 2 ESX hosts
    • 1 NFS datastore with at least 3G free capacity.
  • Prepare testbed using setup script:

    • Edit testbed.py with your settings. In particular, you need to set the IP addresses and credentials in this file. $ cd /path/to/vsphere-automation-sdk-python-samples/client/bin $ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -st
  • Run the vAPI vCenter sample suite: $ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -rit

  • To check available options: $ ./run_sample.sh ../samples/vsphere/vcenter/setup/main.py -h