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

  • Automation Tools

  • 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 21 Results Sample vSphere API
  • Getting Cluster usage data on CPU Memory and Storage resources

    Contributor vThinkBeyondVM

    What this script does: Report on Cluster usage/capacity data on CPU, Memory and Storage resources across all the cluster in a vCenter server. Author:  Vikas Shitole   www.vThinkBeyondVM.com    
    vSphere Management SDK VMware PowerCLI PowerShell
    Download

    841 Downloads

    1 Comment

    Updated 1 year ago

  • Add NFS Datastore in ESXi

    Contributor doskiran

    ... //:: # Description: Creating/Mounting NFS datastore in ESXi(no connection to vCenter server) using vSphere API.  //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-j ...
    vSphere Management SDK Java
    Download

    668 Downloads

    0 Comments

    Updated 3 years ago

  • Get Guest VM OperationReady State and VMware Tools Running

    Contributor sjaganat16

    Get Guest VM state is in Operation Ready and the VMware Tools is in running state This is used before running any Guest Operations Tasks.
    vSphere vRealize Orchestrator Plug-in SDK JavaScript
    Download

    368 Downloads

    0 Comments

    Updated 1 year ago

  • Create NFS Datastore using vSphere API

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/NFS //:: # Description: Creating/Mounting NFS datastore using vSphere API.  //::# How to ...
    vSphere Management SDK Java
    Download

    610 Downloads

    0 Comments

    Updated 3 years ago

  • Relocate Virtual Machine

    Contributor sjaganat16

    This vRO will relocates virtual machine and it's disks to another host or datastore while the virtual machine is powered on.
    vRealize Orchestrator Plug-in SDK vRO Workflow
    Download

    134 Downloads

    0 Comments

    Updated 1 year ago

  • Powerful placeVM API which uses DRS to get recommendations to place the VMs and its virtual disks

    Contributor vThinkBeyondVM

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: //:: # Description: Tutorial: PlaceVM API: Live relocate a VM from ...
    vSphere Management SDK Java
    Download

    367 Downloads

    0 Comments

    Updated 3 years ago

  • Report on VMs with multi-writer flag enabled

    Contributor vThinkBeyondVM

    What this script does: This script connects to the vCenter Server and prepares a report on All VMs with at-least one disk enabled with "Multi-Writer" sharing. Author:  Vikas Shitole   www.vThinkBeyond ...
    VMware PowerCLI vSphere Management SDK PowerShell
    Download

    508 Downloads

    1 Comment

    Updated 1 year ago

  • DRS Rules For all VMs In Cluster

    Contributor vThinkBeyondVM

    What this script does: Report on DRS cluster VMs and its assciated VM-VM affinity/anti affinity rules. Author: Vikas Shitole www.vThinkBeyondVM.com
    vSphere Management SDK VMware PowerCLI PowerShell
    Download

    566 Downloads

    0 Comments

    Updated 3 years ago

  • Search VMX Files

    Contributor vvattimalla

    Utility program to find all the vmx files in a datastore and register as VMs.  
    vSphere Management SDK Java
    Download

    842 Downloads

    0 Comments

    Updated 3 years ago

  • Reconfigure ESXi host for HA

    Contributor jreypo

    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

    543 Downloads

    0 Comments

    Updated 3 years ago

;