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
- Get ESXi Host to Place the VM - DRS Placement.Get the ESXi host to place a vm when moving VM to different to cluster via API. This is part of changing VM's vRA Reservation when VMs moved/migrated to different cluster.vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Getting Cluster usage data on CPU Memory and Storage resourcesWhat 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.comvSphere Management SDK VMware PowerCLI PowerShell
- DRS Rules For all VMs In ClusterWhat this script does: Report on DRS cluster VMs and its assciated VM-VM affinity/anti affinity rules. Author: Vikas Shitole www.vThinkBeyondVM.comvSphere Management SDK VMware PowerCLI PowerShell
- Powerful placeVM API which uses DRS to get recommendations to place the VMs and its virtual disks... //:: # 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
- How to get DRS Rules associated with each VM in the DRS cluster... //:: # Author: Vikas Shitoleff//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to find all the rules associ ...vSphere Management SDK Java
- Java SDK API sample script to Edit VM VM Drs Rules... //:: # Author: Vikas Shitole //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to edit VM VM DRS affinity rules //:# Reference: http://vthinkbeyondvm.com/how-to-edit-drs-vm-v ...vSphere Management SDK Java
- Create DRS VMVM Rules... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: http://vthinkbeyondvm.com/drs-rules-part-ii-how-to-create-vm-vm-aff ...vSphere Management SDK Java