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

4.2.1 Activating the FTP service

Using Aruba's WsEndUser SetEnqueueCreateFTPAccount method you can create an FTP account, the initial size is fixed at 50 GB.

Let's look at the example of a method that creates a new FTP account.
//IWsEndUser.SetEnqueueCreateFTPAccount Method (c# .NET)
private static void CreateFTPAccount(WsEndUserClient client)
{
    try
    {
        //calls the SetEnqueueCreateFTPAccount method,
        //getting a WsResult object
        WsResult result = client.SetEnqueueCreateFTPAccount();

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

        //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