Search in sources :

Example 6 with HostUpdateParam

use of com.emc.storageos.model.host.HostUpdateParam in project coprhd-controller by CoprHD.

the class ClusterAutoExportTest method moveHost.

private void moveHost(HostRestRep host, URI id) {
    HostUpdateParam param = new HostUpdateParam();
    param.setCluster(id);
    client.hosts().update(host.getId(), param);
}
Also used : HostUpdateParam(com.emc.storageos.model.host.HostUpdateParam)

Example 7 with HostUpdateParam

use of com.emc.storageos.model.host.HostUpdateParam in project coprhd-controller by CoprHD.

the class HostClusters method addHosts.

@FlashException(referrer = { "editHosts" })
public static void addHosts(String clusterId, @As(",") String[] ids) {
    if (ids != null && ids.length > 0) {
        for (String hostId : ids) {
            HostUpdateParam hostUpdateParam = new HostUpdateParam();
            hostUpdateParam.setCluster(uri(clusterId));
            HostUtils.updateHost(uri(hostId), hostUpdateParam, false);
        }
        flash.success(MessagesUtils.get(ADDED_HOSTS));
    }
    editHosts(clusterId);
}
Also used : HostUpdateParam(com.emc.storageos.model.host.HostUpdateParam) FlashException(controllers.util.FlashException)

Aggregations

HostUpdateParam (com.emc.storageos.model.host.HostUpdateParam)7 HostRestRep (com.emc.storageos.model.host.HostRestRep)4 FlashException (controllers.util.FlashException)2