- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how can i create linked clone while using vSphere web services sdk
Hi
i want to create linked clone using vSphere web services SDK. but i dont know how to do it. i found a documents (attached with this post) that explains it, according to the document i can create linked clone as below
-
relSpec = new VirtualMachineRelocateSpec()
relSpec.diskMoveType = VirtualMachineRelocateDiskMoveOptions.createNewChildDiskBacking
cloneSpec = new VirtualMachineCloneSpec()
cloneSpec.powerOn = False
cloneSpec.template = False
cloneSpec.location = relSpec
cloneSpec.snapshot = myVm.snapshot.currentSnapshot
myVm.Clone(myVm.parent, myVm.name + "-clone", cloneSpec)
-
but the problem is that i can not find VirtualMachineRelocateDiskMoveOptions Class in vSphere web services SDK 4.0
//Rizwan