IJsonpWsEndUserGetPurchasedFTP 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetPurchasedFTP/{jsonp}/{userName}/{token}")]
Stream GetPurchasedFTP(
string jsonp,
string userName,
string token
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "GetPurchasedFTP/{jsonp}/{userName}/{token}")>
Function GetPurchasedFTP (
jsonp As String,
userName As String,
token As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"GetPurchasedFTP/{jsonp}/{userName}/{token}")]
Stream^ GetPurchasedFTP(
String^ jsonp,
String^ userName,
String^ token
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetPurchasedFTP/{jsonp}/{userName}/{token}")>]
abstract GetPurchasedFTP :
jsonp : string *
userName : string *
token : string -> Stream
function GetPurchasedFTP(
jsonp : String,
userName : String,
token : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
Return Value
Type:
Stream
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