Click or drag to resize

IWsJelasticGetJelasticAccount Method

Get Jelastic account informations by account ID.

Namespace:  Aruba.Cloud.WsJelastic
Assembly:  WsJelastic (in WsJelastic.dll) Version: (
WsResult<JelasticAccount> GetJelasticAccount(
	GetJelasticAccountRequest 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
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;
            this.LogError("GetJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
See Also