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
- vRO Workflow Single Instance Execution EnforcementThere have been numerous times when an automation solution requires that a particular primary workflow only have one instance executing at any one time. An example of this is a custom data collection ...vRealize Orchestrator vRO Workflow
- Get ESXi ResourcePoolGet ESXi Resource Pool using Compute Cluster.vSphere vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Get vRA Reservation ObjectGet vRA Reservation Object by using Reservation Name as string.vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- vRO A Better lockAndWait Solution - LockAndStealThis action is a lock and wait for the specified wait time (in seconds) If one owner keeps the lock beyond the specified wait time the lock is removed and the action tries to obtain the lock The vRO l ...vRealize Orchestrator vRealize Automation vRO Package
- vRO Pass By ReferenceThis vRO Action inputs a string or property name, and a property set and replaces the any {property key} in braces included in the input string with the value of that property key. This is very handy, ...vRealize Orchestrator vRealize Automation vRO Package
- Get vRA Catalog Resource of vCenter VMGet vRA Catalog Resource of vCenter VMvRealize Orchestrator vRealize Orchestrator Plug-in SDK JavaScript
- Get vAPI Endpoint for vCenter VMGet the vAPI Endpoint for a vCenter VM in vROvRealize Orchestrator Plug-in SDK JavaScript
- Yet Another vRO vAPI vCenter Tagging PackagevRO package containing workflows and actions to manage vCenter tags and add/remove them from VMs. The core vAPI tagging actions were created using code from https://code.vmware.com/user/tnavarro1 and ...vRealize Orchestrator vRealize Orchestrator Plug-in SDK JavaScript
- Get or Create vRO Configuration ElementReturns the Configuration Element based on the given Configuration Category Path and Configuration Element Name. If it does not exist, Configuration Category and Configuration Element are created. I ...vRealize Orchestrator JavaScript