Click or drag to resize

IWsEndUserGetPurchasedFTP Method

Gets the FTP user account information. By the method GetPurchasedFTP() of Aruba WsEndUser, you can get detailed information FTP account user upon authentication. Returns, among others, information on: total space, occupied space, space occupied by PersonalTemplate.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<FTP> GetPurchasedFTP()

Return Value

Type: WsResultFTP
The method returns an object of class WsResultOfFTP containing detailed information FTP account user. For further details on the information returned by the method see the class definition WsResult and class FTP-->.
Examples
The following example describes a method, called GetFTPServer(), which means a call to GetPurchasedFTP () to Aruba WsEndUser, gets the information of the FTP server where you created your account.
private FTPServer GetFTPServer()
{
  FTPServer ftpServer;

  try
  {
    WsResultOfFTP result = client.GetPurchasedFTP();

    if (result.Success)
    {
      ftpServer=result.Value.FTPServer;
      return ftpServer;
    }
    else
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking GetPurchasedFTP(). {0}", result.ResultMessage));
    }
  }
  catch (Exception ex)
  {
    throw new ApplicationException(String.Format("An error has occurred while getting FTP server information {0}", ex.Message));
  }
}
See Also