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
- Override vSphere Cluster Services default VM placement and allow vCLS VM placement on specific datastoresProgram to override vCLS default VM placement and allow/disallow vCLS VM placement on specific datastores. vSphere Cluster Services (vCLS) is a new feature in vSphere 7.0 Update 1. This feature ensure ...vSphere Management SDK vSphere Java
- Cluster advanced settings inconsistency checkCheck your cluster for inconsistent configuration of advanced settings.VMware PowerCLI PowerShell
- 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
- Retrieve list of clusters ordered by number of cpuThis sample code retrieves a list of clusters ordered by the number of CPUs How To Run In order to run this sample code you must provide three arguments: [1] The server name or IP address [2] The user ...vSphere Management SDK Java
- Shows the name of a cluster containing a given VMThis sample code retrieves a list of clusters ordered by the number of CPUs How To Run In order to run this sample code you must provide four arguments: [1] The server name or IP address [2] The user ...vSphere Management SDK Java
- Docker Swarm as a Service - BlueprintThe easy button for Docker Swarm on vSphere Detailed guide here http://www.vmtocloud.com/the-docker-swarm-blueprint-for-vra7-is-here/vRealize Automation vRA Blueprint
- Get Cluster by NameFinds and returns the vCenter ClusterComputeResource with the given name, case-insensitive. Also demonstrates how to do a case-insensitive search via xpath, as supported by the Javascript version of v ...vRealize Orchestrator Plug-in SDK JavaScript
- Get the Cluster of a vCenter VMReturns the cluster of a given vCenter VMvRealize Orchestrator Plug-in SDK JavaScript