Quantcast
Channel: VMware Communities : All Content - VMware vCenter™
Viewing all articles
Browse latest Browse all 24426

Set UUID for a VMDK using VCentre SDK Kit

$
0
0

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

NAMETYPEDESCRIPTION
_thisManagedObjectReferenceA reference to the VirtualDiskManager used to make the method call.
namexsd: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.
uuidxsd:string

 

The hex representation of the unique ID for this virtual disk.

Viewing all articles
Browse latest Browse all 24426

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>