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

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Developer Tools

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 213 Results Sample vSphere
  • List Datastore Info

    Contributor lamw

    vSphere Python SDK program for listing all ESXi datastores and theirassociated devices pyvmomi-community-samples Community contributed samples for the pyVmomi library. The pyVmomi library itsel ...
    vSphere Management SDK Python
    Download

    2938 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • List Datastore Cluster

    Contributor lamw

    vSphere Python SDK program for listing Datastores in Datastore Cluster pyvmomi-community-samples Community contributed samples for the pyVmomi library. The pyVmomi library itself is hosted here ...
    vSphere Management SDK Python
    Download

    1843 Downloads

    0 Comments

    Updated 2 years ago

  • vSphere Auto Restart Manager

    Contributor VMware

    Written by Humayun JamalGithub: https://github.com/humayunjamalExample script to configure Auto Restart Settings for Esxi Hostand also enable the auto restart settings of virtual machines(which are po ...
    vSphere Management SDK Python
    Download

    278 Downloads

    0 Comments

    Updated 2 years ago

  • ESXi Perf Sample

    Contributor hartsocks

    vSphere Python SDK program for demonstrating vSphere perfManager API based onRbvmomi sample https://gist.github.com/toobulkeh/6124975 pyvmomi-community-samples Community contributed samples for ...
    vSphere Management SDK Python
    Download

    2013 Downloads

    0 Comments

    Updated 2 years ago

  • vCenter VM Placement

    Contributor VMware

    vCenter VM Placement Cluster names are not guaranteed to be unique within a vCenter instance, so we qualify our search using the Datacenter. If Folders are used, the search must be qualified using Fo ...
    vSphere Automation SDK for Python Python
    Download

    368 Downloads

    0 Comments

    Updated 11 months ago

  • Tagging Workflow

    Contributor VMware

    Tagging Workflow Demonstrates tagging CRUD operations Step 1: Create a Tag category. Step 2: Create a Tag under the category. Step 3: Retrieve the managed object id of an existing cluster from its na ...
    vSphere Automation SDK for Python Python
    Download

    383 Downloads

    0 Comments

    Updated 2 months ago

  • vCenter VM Create Basic VM

    Contributor VMware

    vCenter VM Create Basic VM Demonstrates how to create a basic VM with following configuration: 2 disks, 1 nic Sample Prerequisites: - datacenter - vm folder - datastore - cluster - standard switch ne ...
    vSphere Automation SDK for Python Python
    Download

    1310 Downloads

    0 Comments

    Updated 12 days ago

  • OVF Import Export

    Contributor VMware

    OVF Import Export Demonstrates the workflow to import an OVF package into the content library, as well as download of an OVF template from the content library. Note: the workflow needs an existing VC ...
    vSphere Automation SDK for Python Python
    Download

    429 Downloads

    0 Comments

    Updated 1 year ago

  • Deploy OVF Template

    Contributor VMware

    Deploy OVF Template Demonstrates the workflow to deploy an OVF library item to a resource pool. Note: the sample needs an existing library item with an OVF template and an existing cluster with resou ...
    vSphere Automation SDK for Python Python
    Download

    658 Downloads

    0 Comments

    Updated 11 months ago

  • vCenter VM List VMs

    Contributor VMware

    vCenter VM List VMs Demonstrates getting list of VMs present in vCenter Sample Prerequisites: vCenter/ESX   This sample is a part of the VMware vSphere Automation SDK for Python To build and run this ...
    vSphere Automation SDK for Python Python
    Download

    1240 Downloads

    0 Comments

    Updated 11 months ago