Click or drag to resize

IJsonpWsEndUserSetEnqueueCreateFTPAccount Method

Performs an operation to create an FTP account. By the method SetEnqueueCreateFTPAccount () of Aruba is WsEndUser can create an FTP account, the initial size is set to 50 GB.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueCreateFTPAccount/{jsonp}/{userName}/{token}")]
Stream SetEnqueueCreateFTPAccount(
	string jsonp,
	string userName,
	string token
)

Parameters

jsonp
Type: SystemString
userName
Type: SystemString
token
Type: SystemString

Return Value

Type: Stream
The method returns an object WsResult containing information on the outcome of the method call. For further details on the information returned by the method refer to the definition of the class WsResult.
Examples
private static void CreateFTPAccount()
{
  try
  {
    WsResult result = client.SetEnqueueCreateFTPAccount();

    if (!result.Success)
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetEnqueueCreateFTPAccount(). {0}", result.ResultMessage));
    }
  }
  catch (Exception ex)
  {
    throw new ApplicationException(
      String.Format("An error has occurred while creating an FTP Account{0}", ex.Message));
  }
}
See Also