/// <summary>
/// Sample function ModifyHostname.
/// Modifies Container hostname.
/// </summary>
/// <param name="ve_eid">The Container Server ID.</param>
/// <param name="new_hostname">New hostname.</param>
/// <returns>OK/Error.</returns>
public string ModifyHostname(string ve_eid, string new_hostname)
{
try {
vzaenvmBinding env = (vzaenvmBinding)binder.InitBinding(typeof(vzaenvmBinding));
set2 set_input = new set2();
// Set the container Server ID.
set_input.eid = ve_eid;
venv_configType1 veconf = new venv_configType1();
// Set the new hostname.
veconf.hostname = new_hostname;
set_input.config = veconf;
// Modify the Container configuration.
env.set(set_input);
return "OK!";
}
catch (Exception e) {
return "Exception: " + e.Message;
}
}