VMware Sample Exchange

Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.

Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.

Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.

Filters

SDK / Platform / Tool

  • App Modernization

  • Cloud Management

  • Compute Virtualization

  • Desktop & App Virtualization

  • Developer Tools

  • Digital Workspace

  • Hybrid Cloud & Data Center Infrastructure

  • Hyperconverged Infrastructure

  • Multi-Cloud Operations

  • Private & Hybrid Cloud

  • Storage & Availability

  • Virtual Cloud Networking

  • Other Platform

Contributor

Language

1 - 10 of 41 Results Sample Pyvmomi
  • Script to fetchAuditRecords

    Contributor VMware Inc

    How to use pyVmomi SDK for vSphere 7.0U3 to fetchAuditRecords   OSS pyVmomi is hosted in GitHub: https://github.com/vmware/pyvmomi The project's main page contains pointers to general instructions fo ...
    vSphere Python
    Download

    24 Downloads

    0 Comments

    Updated 10 months ago

  • Python - Set Network Adapter to be an Opaque Network

    Contributor Kyle Ruddy

    Change a VM's network adaptor to be an NSX-T provisioned opaque network, via KB66907: https://kb.vmware.com/s/article/66907
    NSX-T vSphere Python
    Download

    654 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN 6.2 On-Disk Upgrade using the vSAN Management SDK for Python

    Contributor Storage Code VMware Storage & Availability

    This file includes sample code to upgrade the On-Disk Format from V2 to V3 for vSAN 6.2. The code has been tested with the following configuration Testbed: One cluster with four hosts. Each host has o ...
    Pyvmomi vSAN Management SDK for Python Python
    Download

    1890 Downloads

    0 Comments

    Updated 4 years ago

  • vSAN 6.2 Capacity - Total and Free from vCenter

    Contributor Jase McCarty

    This script is a modification of the vsanapisamples.py script that is included with the vSAN Management SDK for python. The syntax for the script is:  python  vsanapicapacity.py -s vCenterServer -u 'v ...
    Pyvmomi vSAN Management SDK for Python Python
    Download

    2129 Downloads

    2 Comments

    Updated 4 years ago

  • Docker image to run pyvmomi

    Contributor LINO Telera

    This docker image creates container to test script based on pyvmomi library. Simply run docker build to create a test environment in your photon. Running container could be accessed via ssh or by dock ...
    Other Platform Other Language
    Download

    1042 Downloads

    0 Comments

    Updated 6 years ago

  • Reconfigure ESXi host for HA

    Contributor Juan Manuel Rey Portal

    Script in python, using pyVmomi library, that performs a Reconfigure for HA operation on an ESXi host that is part of vSphere HA cluster. Provide the vCenter host, user, password and ESXi host as argu ...
    vSphere Management SDK Python
    Download

    771 Downloads

    0 Comments

    Updated 6 years ago

  • Library Publish Subscribe

    Contributor VMware Inc

    Library Publish Subscribe Demonstrates the basic sync workflow to publish and subscribe content libraries. Note: the workflow needs an existing VC datastore with available storage. This sample is a ...
    vSphere Automation SDK for Python Python
    Download

    752 Downloads

    0 Comments

    Updated 11 months ago

  • Library CRUD

    Contributor VMware Inc

    Library CRUD Demonstrates the basic operations of a content library. The sample also demonstrates the interoperability of the VIM and vAPI. Note: the workflow needs an existing VC DS with available s ...
    vSphere Automation SDK for Python Python
    Download

    795 Downloads

    0 Comments

    Updated 5 years ago

  • VM Template Capture

    Contributor VMware Inc

    VM Template Capture Demonstrates the workflow to capture a virtual machine into a content library. Note: The sample needs an existing virtual machine to capture. This sample is a part of the VMware ...
    vSphere Automation SDK for Python Python
    Download

    767 Downloads

    0 Comments

    Updated 4 years ago

  • ISO Mount

    Contributor VMware Inc

    ISO Mount Demonstrates the content library ISO item mount and unmount workflow via the mount and unmount APIs from the ISO service. This sample is a part of the VMware vSphere Automation SDK for Py ...
    vSphere Automation SDK for Python Python
    Download

    898 Downloads

    0 Comments

    Updated 4 years ago