HI all, so Im trying to connect a ISO from Conent Libary to a VM. I have that halfway...and its "working" but its not very clean. try{
var client = VAPIEndpoint.client();
var cli...
See more...
HI all, so Im trying to connect a ISO from Conent Libary to a VM. I have that halfway...and its "working" but its not very clean. try{
var client = VAPIEndpoint.client();
var clib = new com_vmware_content_library(client);
if(clib.list){
var itemSvc = new com_vmware_content_library_item(client);
for each(var clibrary in clib.list()){
var items = itemSvc.list(clibrary);
for each(item in items) {
var results = itemSvc.get(item);
System.log("name :" +results.name);
System.log("Libary :" +clib.get(results.library_id).name);
}
}
}
}
finally{
client.close();
} This is the Code cuming back from com_vmware_content_library_item {creation_time=Mon Aug 02 03:03:34 GMT 2021,
last_modified_time=Mon Aug 02 03:03:46 GMT 2021, last_sync_time=java.lang.Object@57c220df, description=, type=iso,
version=1, content_version=2,
library_id=1ab5ddc9-35f0-4cdc-90a7-61f1ba00c6d2,
size=52328448, cached=true,name=DamnSmallLinux,
id=1d5b5019-b66c-4d52-83fa-09b68660bea1,
source_id=java.lang.Object@57c220df,
metadata_version=1} you can now mount the ISO by simple using the path. I still need to know the "Disk"where the libary is... ["disk" ] contentlib-[library_id]\[id]\DamnSmallLinux_0ff36c95-e4fa-461e-bf52-e06e79d7c75e.iso My problems: can't find the DISK that the library is connected to. I cant find the full name of the new Image. ATM I need to go into the Datastore and search for the only content in that Directory. (see the new name DamnSmallLinux_0ff36c95-e4fa-461e-bf52-e06e79d7c75e.iso) there must be a way to fully connect the VM using Content library in vRO. is there a VAPI that connects a CDROM? thanks Guys