1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-25 18:59:59 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter
Tianhao He ca53102df4 Remove the output file before creating the parallel port
Need to make the same fix as the one in #13 for parallel port.
Also move the cleanup_backends to the main sample run to make
sure the output file is always deleted.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-03-24 20:21:27 -07:00
..
helper Fix typo in license text 2017-03-15 15:36:13 -07:00
setup Adding ESXPASSWORD as commandline argument. ESXPassword cannot be hardcoded in testbed.py file since ESX doesnt have default password 2017-03-21 00:15:05 +05:30
vm Remove the output file before creating the parallel port 2017-03-24 20:21:27 -07:00
__init__.py Fix typo in license text 2017-03-15 15:36:13 -07:00
README.md Initial sample drop 2017-03-03 14:04:06 -08:00

This directory contains samples for the vSphere infrastructure and virtual machine APIs. You have two options to run samples inside this package:

  • Run all samples under vcenter folder using main.py in samples.vsphere.vcenter.setup package. Please see the README for more details.

  • Run an individual sample in an existing environment. You can either pass the environment parameters through command line arguments or specify them in testbed.py in the setup package.

    For example, to run the create_default_vm sample in the vsphere.samples.vcenter.vm.create package:

    * with the testbed settings specified in testbed.py in a Linux machine:
    
       $ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -v
    
    * Or specify the credentials using command line parameters:
    
       $ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -s \<server> -u \<username> -p \<password> -v