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
- Add VMkernel nic for all the hosts in the dvSwitch and enable vMotion.... * Description : Adds the VMkernel network adapter for all the hosts in the dvSwitch and assign them to dvPortgroup ports and also enable vMotion service in vmkernel nics using vSphere java API. In ...vSphere Management SDK Java
- Add DVPortgroup in the dvSwitch.Description: This method is used to create dvPortgroup in the specified dvSwitch Inputs: 1) DVSwitch name 2) DVPortgroup name to create in the dvSwitchvSphere Management SDK Java
- Add Hosts into DVSwitch using vSphere java apiDescription: Adds specified number of ESXi hosts into dvSwitch using vSphere java API. Here it will find the first free pnic from each ESXi host and then add it to Uplink1 otherwise it will skip that ...vSphere Management SDK Java
- Create Distributed Virtual Switch using vSphere java APIDescription: Creates Distributed Virtual Switch in the specified datacenter using vSphere java API. This dvSwitch will create 10 standalone dvports and with 4 uplinks("uplink1", "uplink2","uplink3", ...vSphere Management SDK Java
- Add Standalone dvPorts In DVS using vSphere java apiDescription: Add specified number of standalone dvPorts in the dvSwitch using vSphere java API. Eg: current=100, new=150 ==> 50 new standalone DVPorts are created. Description: Add specified number ...vSphere Management SDK Java