“Vro Get All vSphere VMS Virtual Machines Shortcode” Code-Antworten

Vro Get All vSphere VMS Virtual Machines Shortcode

var vCenters=VcPlugin.allSdkConnections;

for each (vCenter in vCenters){
  var vms = vCenter.allVirtualMachines
    for each (vm in vms) {
      System.log(vm.name);
      //do your per vm action here
    }
}
imtrinity94

Vro Get alle vSphere VMS virtuellen Maschinen

var vCenters=VcPlugin.allSdkConnections;

 for each (vCenter in vCenters){
     System.log(vCenter.name);
     var clusters = vCenter.getAllClusterComputeResources();
     for each (cluster in clusters) {
        System.log(cluster.name);
        var vms = vCenter.allVirtualMachines
         for each (vm in vms)
           System.log(vm.name);
           //do your per vm action here
    }
}
imtrinity94

Ähnliche Antworten wie “Vro Get All vSphere VMS Virtual Machines Shortcode”

Fragen ähnlich wie “Vro Get All vSphere VMS Virtual Machines Shortcode”

Weitere verwandte Antworten zu “Vro Get All vSphere VMS Virtual Machines Shortcode” auf VBA

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen