IJsonPostWsEndUserSetEnqueueCreateFTPAccount 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]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream SetEnqueueCreateFTPAccount(
JsonRequest request
)
<OperationContractAttribute>
<WebInvokeAttribute(Method := "POST", ResponseFormat := WebMessageFormat.Json)>
Function SetEnqueueCreateFTPAccount (
request As JsonRequest
) As Stream
[OperationContractAttribute]
[WebInvokeAttribute(Method = L"POST", ResponseFormat = WebMessageFormat::Json)]
Stream^ SetEnqueueCreateFTPAccount(
JsonRequest^ request
)
[<OperationContractAttribute>]
[<WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)>]
abstract SetEnqueueCreateFTPAccount :
request : JsonRequest -> Stream
function SetEnqueueCreateFTPAccount(
request : JsonRequest
) : Stream
Parameters
- request
- Type: Aruba.Cloud.WsEndUser.JsonJsonRequest
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