/// <summary> /// Renames the host. /// </summary> /// <returns><c>true</c>, if host was renamed, <c>false</c> otherwise.</returns> /// <param name="hostId">Host identifier.</param> /// <param name="newName">New name.</param> public bool HostRename(int hostId, string newName) { bool result = false; XmlRpcHostManagement xrum = (XmlRpcHostManagement)GetProxy(typeof(XmlRpcHostManagement)); Array openNebulaReturnArr = xrum.oneHostRename(this.SessionSHA, hostId, newName); result = (bool)openNebulaReturnArr.GetValue(0); return(result); }
/// <summary> /// Gets the host list info. /// </summary> /// <returns>The host list info.</returns> public HOST_POOL HostGetPoolInfo() { HOST_POOL result = null; XmlRpcHostManagement xrum = (XmlRpcHostManagement)GetProxy(typeof(XmlRpcHostManagement)); Array openNebulaReturnArr = xrum.oneHostPoolInfo(this.SessionSHA); result = (HOST_POOL)Deserialize(typeof(HOST_POOL), openNebulaReturnArr.GetValue(1).ToString()); return(result); }
/// <summary> /// Allocates the host. /// </summary> /// <returns>The host.</returns> /// <param name="hostname">Hostname.</param> /// <param name="infoManagerName">Info manager name.</param> /// <param name="vmManagerName">Vm manager name.</param> /// <param name="vnManagerName">Vn manager name.</param> /// <param name="clusterId">Cluster identifier.</param> public int HostAllocate(string hostname, string infoManagerName, string vmManagerName, string vnManagerName, int clusterId) { int result = 0; XmlRpcHostManagement xrum = (XmlRpcHostManagement)GetProxy(typeof(XmlRpcHostManagement)); Array openNebulaReturnArr = xrum.oneHostAllocate(this.SessionSHA, hostname, infoManagerName, vmManagerName, vnManagerName, clusterId); result = (int)openNebulaReturnArr.GetValue(1); return(result); }
/// <summary> /// Gets the host info. /// </summary> /// <returns>The host info.</returns> /// <param name="hostId">Host identifier.</param> public HOST HostGetInfo(int hostId) { HOST result = null; XmlRpcHostManagement xrum = (XmlRpcHostManagement)GetProxy(typeof(XmlRpcHostManagement)); Array openNebulaReturnArr = xrum.oneHostInfo(this.SessionSHA, hostId); result = (HOST)Deserialize(typeof(HOST), openNebulaReturnArr.GetValue(1).ToString()); return(result); }