Hi,
I have use case where i want to set a new UUID to the VMDK using VCentre SDK Kit. I am making use of Java VCentre SDK API for my use case implementation. We have a method "SetVirtualDiskUuid" , where we can set a UUID for a VMDK path.
This method take UUID as parameter , which needs to be generated by the Client i.e. my application and passed on to this method. Since UUID must be unique and it must match VMWARE scenario , can you please let me know the correct approach for creating the UUID , so that i can generate a unique UUID which meets the criteria and assign it to a VMDK.
SetVirtualDiskUuid
Set the virtual disk SCSI inquiry page 0x83 data.
The datacenter parameter may be omitted if a URL is used to name the disk.
Requires Datastore.FileManagement privilege on the datastore where the virtual disk resides.
- Required Privileges
- System.View
Parameters
NAME | TYPE | DESCRIPTION |
---|---|---|
_this | ManagedObjectReference | A reference to the VirtualDiskManager used to make the method call. |
name | xsd:string | The name of the disk, either a datastore path or a URL referring to the virtual disk whose SCSI inquiry page 0x83 data should be set. |
datacenter* | ManagedObjectReference to a Datacenter | If name is a datastore path, the datacenter for that datastore path. Not needed when invoked directly on ESX. If not specified on a call to VirtualCenter, name must be a URL. |
uuid | xsd:string | The hex representation of the unique ID for this virtual disk. |