Phone sales support +39 0575 05077
  Phone technical support +39 0575 0508
 
Computing > 4 - Advanced manipulation of the items > Changing the space of the FTP service

4.2.2 Changing the space of the FTP service

Using Aruba's WsEndUser SetEnqueueResizeFTPAccount method you can change the size of the user's FTP space.

Parameters
FtpSize
Type: int
System.Int32 type value that represents the size that you want to achieve for the FTP account, the size is expressed in GB.

Let's look at the example of a method that changes the size of the FTP space.
//IWsEndUser.SetEnqueueResizeFTPAccount Method (c# .NET)
private static void ResizeFTPAccount(WsEndUserClient client, int ftpSize)
{
    try
    {
        //calls the SetEnqueueResizeFTPAccount method,
        //getting a WsResult object
        WsResult result = client.SetEnqueueResizeFTPAccount(ftpSize);

        //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);
    }
}
//IWsEndUser.setEnqueueResizeFTPAccount Method (JAVA)
private static void ResizeFTPAccount(IWsEndUser client, int ftpSize)
{
    try
    {
        //calls the setEnqueueResizeFTPAccount method,
        //getting a WsResult object
        WsResult result = client.setEnqueueResizeFTPAccount(ftpSize);

        //if the call fails; it relaunches the error indicating the message
        if (!result.isSuccess())
        {
            throw new Exception(result.getResultMessage());
        }
    }
    catch (Exception ex)
    {
        //prints the error
        System.out.println(ex);
    }
}

Version
API: v2.8 URL: https://api.dc1.computing.cloud.it/WsEndUser/v2.8/WsEndUser.svc?wsdl
See also

API: v2.8 URL: https://api.dc1.computing.cloud.it/WsEndUser/v2.8/WsEndUser.svc?wsdl

Bookmark and Share