use of com.emc.storageos.model.host.vcenter.VcenterRestRep in project coprhd-controller by CoprHD.
the class VcenterClusterProvider method getVcenters.
protected Map<URI, String> getVcenters(AssetOptionsContext context) {
debug("getting vcenters");
List<VcenterRestRep> vcenterList = api(context).vcenters().getByTenant(context.getTenant());
Map<URI, String> vcMap = new HashMap<URI, String>();
for (VcenterRestRep vc : vcenterList) {
vcMap.put(vc.getId(), vc.getName());
}
return vcMap;
}
Aggregations