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