Description: 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", "uplink4") #yavijavaapi #vSphereManagementSDK #Java #VIJavaAPI #createdvswitch #vSphereAPI #vSpherejavasdk #MIT #DVS
CreateDVSwitch.java
1 Comment - //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-java-opensource-java-sdk-for-vmware-vsphere-step-by-step-guide-for-beginners/
Description: 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 host
AddHostsintoDVSwitch.java
Description: 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 of standalone dvPorts in the dvSwitch using vSphere java API. //Eg: current=100, new=150 ==> 50 new standalone DVPorts are created. #DVS #VIJavaAPI #Java #yavijavaapi #vSphereManagementSDK #dvsports #MIT #StandaloneDVPorts #vSphereAPI
AddStandaloneDVPortsInDVS.java
Description: Modify(or Update) VM RAM, CPU and HardDisk at a time with specified values using vSphere java API. Input & Steps:: 1) CPU(numCPUs) - Provide num of cpus count,it never exceed host supported num of cpus 2) RAM(ramMB) - Provide ram value in MB, it never exceed host max alloted memory 3) HardDisk(diskCapacityinKB) - Provide harddisk value in KB, it never exceeds harddisk datastore freeDiskSpace. 4) harddiskName - Eg- "Hard disk 2" or "Hard disk 3" Note1:: It is recommended to assign for harddiskName should start from "Hard disk 2",because "Hard disk 1" contains the OS data and sometimes contains snapshots, will not allowed to extend disk
ModifyVM_RAM_CPU_HardDisk.txt
* 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. Input: 1) DVSwitch name 2) DVPortgroup name #addvmkernel #vSpherejavasdk #enablevmotion #MIT #Java #vSphereManagementSDK #vmkernel #yavijavaapi #VIJavaAPI
AddVMkernelToHostsInDVS.java
Description: This method is used to create dvPortgroup in the specified dvSwitch Inputs: 1) DVSwitch name 2) DVPortgroup name to create in the dvSwitch #addportgroup #vSphereAPI #dvportgroup #vSphere #Java #VIJavaAPI #vSphereManagementSDK #yavijavaapi #MIT
AddDVPortGroup.java
This class is used to create folder in VMs and Templates view in the VC inventory #Java #vSphereManagementSDK #VIJavaAPI #vSphere #vCenter #CreateFolder #MIT
CreateVMTemplateFolder.java
Input prerequisite : DVSwitch name This API will create LAG group in the existing dvSwitch with below parameters. i.e, mode = active uplink ports = 3 loadbalanceAlgorithm = Source and destination IP, source and destination TCP/UDP port number and VLAN. #LAG #LACP #MIT #CreateLAG #vSphere #vSpherejavasdk #VIJavaAPI #Java #DVS #vSphereManagementSDK
CreateLagOnDVS.java