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
- Find all VMs with a particular property value in vRAFind all VMs with a particular property value in vRAvRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Rename a vRA IaaS virtual machineRename a vRA IaaS virtual machinevRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Get the Reservation of a vRA VMGet the Reservation of a vRA VMvRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Get the Reservation Policy ID of a vRA ReservationGet the ID of the Reservation Policy of a vRA ReservationvRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
- Set given vCAC Property on vSphere VMSets a given vCAC Property on vSphere VM. Input is the vSphere VM Name.vRealize Orchestrator Plug-in SDK vRO Workflow
- Get all compatible Datastores for a vCenter Host and VMGet all compatible datastores for a given host, resource pool, and virtual machine. The datstore must have enough free storage space necessary for the VM, and must be accessible and not in an overall ...vRealize Orchestrator Plug-in SDK JavaScript
- Remove duplicates from an arrayRemoves duplicates from an array, with the option to also sort the arrayvRealize Orchestrator Plug-in SDK JavaScript
- Create a temporary text file on the vRO serverCreate a temporary text-based file on the vRO server, which can then be copied elsewhere like a guest vCenter VMvRealize Orchestrator Plug-in SDK JavaScript
- Get the Catalog Resource of a vRA VMGet the Catalog Resource of a vRA IaaS VMvRealize Orchestrator Plug-in SDK vRealize Automation JavaScript
- Assign vCenter tags via VAPI using a single VAPI client to minimize session creationAssign vCenter tags via VAPI using a single VAPI client to minimize session creation. Always creates nonexistent tags, and optionally creates nonexistent tag categories.vRealize Orchestrator Plug-in SDK JavaScript