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
Type
SDK / Platform / Tool
Contributor
Language
- Set NTP Source Servers for VMware VCSA via API - VCSA 6.7u3 and 7.0u3Set NTP Source Servers for VMware VCSA via API - VCSA 6.7u3 and 7.0u3 .SYNOPSIS Set NTP Source Servers for VMware VCSA .DESCRIPTION Example is using NIST NTP source IPs. These are not for production u ...vSphere PowerShell
- Get-VCSACerts.ps1... .NOTES Author: Mark McGill, VMware Last Edit: 5/6/2022 Version 1.4 .SYNOPSIS Returns vCenter certificate information for all VCSA certificates, and optional ...vSphere PowerShell
- Initiate vCenter HA graceful failover using vSphere python SDK i.e. pyVmomi... # Website: www.vThinkBeyondVM.com # Product: vCenter server/vCenter Server High Availability (VCHA) # Description: Script to initiate vCenter Server High Availability failover # Refe ...vSphere Management SDK Python
- Get vCenter server HA health information using vSphere Python SDK i.e. pyVmomi... # Product: vCenter server/vCenter Server High Availability (VCHA) # Description: Python script to Get vCenter server HA health information # Reference: http://vthinkbeyondvm.com/how-to-m ...vSphere Management SDK Python
- Get Guest VM OperationReady State and VMware Tools RunningGet 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
- Relocate Virtual MachineThis 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
- Search VMX FilesUtility program to find all the vmx files in a datastore and register as VMs.vSphere Management SDK Java
- Reconfigure ESXi host for HAScript 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
- Add NFS Datastore in ESXi... //:: # 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
- Add new harddisk with specified capacity and disk provisioning type for a VMAdd new virtual harddisk with specified capacity and disk provisioning type for a VM using vSphere API. How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java ...vSphere Management SDK Java