Click or drag to resize

IWsEndUserSetEnqueueReinitializeServer Method

Enqueue the operation of reinitialize of a SmartVMWare server. The server will be initialized as new with the last package upgrade.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult SetEnqueueReinitializeServer(
	ReinitializeServerRequest request


Type: Aruba.Cloud.Provisioning.Entities.SmartVMWareReinitializeServerRequest
The request object with all parameters for the reinitialization.

Return Value

Type: WsResult
The result of the enqueue request.
       //IWsEndUser.SetEnqueueReinitializeServer Method (c# .NET)
private static void SetEnqueueReinitializeServer(
    WsEndUserClient client, int serverId,
        String administratorPassword)
        // create the object ReinitializeServerRequest for the request 
        // with data to process
        ReinitializeServerRequest request = new ReinitializeServerRequest();
        request.ServerId = serverId;
        request.AdministratorPassword = administratorPassword;

        //calls the SetEnqueueReinitializeServer method,
        //getting a WsResult object
        WsResult result = client.SetEnqueueReinitializeServer(request);

        //if the call fails; it relaunches the error indicating the message
        if (!result.Success)
            throw new ApplicationException(result.ResultMessage);
    catch (Exception ex)
        //relaunches the generic error
        throw new ApplicationException(ex.Message);
See Also