1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 17:39:59 -05:00
vsphere-automation-sdk-python/samples/vsphere/contentlibrary
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
..
contentupdate Fix typo in license text 2017-03-15 15:36:13 -07:00
crud Fix typo in license text 2017-03-15 15:36:13 -07:00
isomount VMware Cloud on AWS M3 release 2018-03-08 13:15:46 -08:00
lib Libraries and Samples for VMC M9 release 2020-01-27 15:32:36 +05:30
ovaimport signed ova import sample 2018-11-08 16:10:02 +08:00
ovfdeploy VMware Cloud on AWS M3 release 2018-03-08 13:15:46 -08:00
ovfimport Fix typo in license text 2017-03-15 15:36:13 -07:00
publishsubscribe Fix typo in license text 2017-03-15 15:36:13 -07:00
resources signed ova import sample 2018-11-08 16:10:02 +08:00
vmcapture VMware Cloud on AWS M3 release 2018-03-08 13:15:46 -08:00
vmtemplate Libraries and Samples for VMC M9 release 2020-01-27 15:32:36 +05:30
vmtx_sync New sample to demonstrates the VMTX push sync workflow to publish and subscribe VMTX items 2019-06-25 12:17:10 +08:00
__init__.py Fix typo in license text 2017-03-15 15:36:13 -07:00
README.md signed ova import sample 2018-11-08 16:10:02 +08:00

This directory contains samples for Content Library APIs:

* CRUD operations on a content library                                                                                  - crud/library_crud.py
* Updating content of a content library item                                                                            - contentupdate/content_update.py
* Workflow to deploy an OVF library item to a resource pool                                                             - ovfdeploy/deploy_ovf_template.py
* Workflows to import an OVF package into a content library, and download of an OVF template from a content library     - ovfimport/ovf_import_export.py
* Basic workflow to import an OVA package into a content library as an OVF library item                                 - ovaimport/signed_ova_import.py
* Basic workflow to publish and subscribe content libraries                                                             - publishsubscribe/library_publish_subscribe.py
* Workflow to capture a virtual machine into a content library                                                          - vmcapture/vm_template_capture.py
* Content library ISO item mount and unmount workflow                                                                   - isomount/iso_mount.py
* Create a library item containing a virtual machine template                                                           - vmtemplate/create_vm_template.py
* Deploy a virtual machine from a library item containing a virtual machine template                                    - vmtemplate/deploy_vm_template.py

Running the samples

$ python <sample-dir>/<sample>.py --server <vCenter Server IP> --username <username> --password <password> <additional-sample-parameters>

The additional sample parameters are as follows (all parameters can be displayed for any sample using option --help)

* library_crud.py               --datastorename <datastore-name>
* content_update.py             --datastorename <datastore-name>
* deploy_ovf_template.py        --clustername <cluster-name>  --libitemname <ovf-item-name>
* ovf_import_export.py          --datastorename <datastore-name>
* signed_ova_import.py          --datastorename <datastore-name>
* library_publish_subscribe.py  --datastorename <datastore-name>
* vm_template_capture.py        --datastorename <datastore-name> --vmname <vm-name>
* iso_mount.py                  --datastorename <datastore-name> --vmname <vm-name>
* create_vm_template.py         --datacentername <datacenter-name> --resourcepoolname <resource-pool-name> --datastorename <datastore-name> --vmname <vm-name>
* deploy_vm_template.py         --itemname <item-name> --datacentername <datacenter-name> --foldername <folder-name>  --resourcepoolname <resource-pool-name> --datastorename <datastore-name>
  • Testbed Requirement:
    • 1 vCenter Server
    • 2 ESX hosts
    • 1 datastore
    • Some samples need a VM or an OVF library item created as mentioned above