Click or drag to resize

IWsJelasticGetJelasticAccount Method

Get Jelastic account informations by account ID.

Namespace:  Aruba.Cloud.WsJelastic
Assembly:  WsJelastic (in WsJelastic.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult<JelasticAccount> GetJelasticAccount(
	GetJelasticAccountRequest request
)

Parameters

request
Type: Aruba.Cloud.WsJelastic.RequestsGetJelasticAccountRequest
A GetJelasticAccountRequest describing the ID of Jelastic account

Return Value

Type: WsResultJelasticAccount
A JelasticAccount object containing informations about the requested Jelastic account
Examples
The following example describes a method, called GetJelasticAccount, which does a call to GetJelasticAccount on Aruba WsJelastic, The method requests informations about the specified account.
public JelasticAccount GetJelasticAccount(int accountID)
{
    //creating request:
    var request = new GetJelasticAccountRequest() { JelasticAccountID = accountID };

    //sending request
    using (var client = this.WsJelasticClient) {
        var result = client.GetJelasticAccount(request);
        if (result.Success)
            return result.Value;
        else
        {
            this.LogError("GetJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
        }
    }
}
See Also