1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 01:39:58 -05:00
vsphere-automation-sdk-python/samples/vsphere/vcenter
Kunal Singh 8ec4076f9c Libraries and Samples for VMC M9 release
Signed-off-by: Kunal Singh<singhk@vmware.com>
2020-01-27 15:32:36 +05:30
..
converge API bindings for VMware Cloud on AWS 1.7 release 2019-05-28 10:41:05 -07:00
helper Libraries and Samples for VMC M9 release 2020-01-27 15:32:36 +05:30
hvc VMware Cloud on AWS 1.4 2018-05-15 20:56:21 -07:00
setup update ethernet sample and add opaque network 2019-01-31 16:47:42 +08:00
vm Libraries and Samples for VMC M9 release 2020-01-27 15:32:36 +05:30
vstats Libraries and Samples for VMC M9 release 2020-01-27 15:32:36 +05:30
__init__.py Fix typo in license text 2017-03-15 15:36:13 -07:00
README.md remove bin directory 2017-08-16 22:40:55 -07: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:
    
       $ python samples/vsphere/vcenter/vm/create/create_default_vm.py -v
    
    * Or specify the credentials using command line parameters:
    
       $ python samples/vsphere/vcenter/vm/create/create_default_vm.py -s <server> -u <username> -p <password> -v