Click or drag to resize

IWsJelasticEnqueueModifyPlanJelasticAccount Method

The method modifies an existing Jelastic account pricing plan.

Namespace:  Aruba.Cloud.WsJelastic
Assembly:  WsJelastic (in WsJelastic.dll) Version: (
WsResult EnqueueModifyPlanJelasticAccount(
	EnqueueModifyPlanJelasticAccountRequest request


Type: Aruba.Cloud.WsJelastic.RequestsEnqueueModifyPlanJelasticAccountRequest
A EnqueueModifyPlanJelasticAccountRequest object describing the Jelastic account to be modified

Return Value

Type: WsResult
The following example describes a method, called JelasticAccountPlanChange, which does a call to EnqueueModifyPlanJelasticAccount on Aruba WsJelastic, The method requests the pricing plan change on the account specified
public bool JelasticModifyPlan(int accountID, int pricingTypeID, EnumsOverLimitBehavior overLimitBehavior)
    //creating request object:
    JelasticAccountToManage accountData = new JelasticAccountToManage()
        JelasticAccountId = accountID,
        JelasticPricingTypeID = pricingTypeID,
        OverLimitBehavior = overLimitBehavior,

    var request = new EnqueueModifyPlanJelasticAccountRequest() { ToManage = accountData };

    //sending request
    using (var client = this.WsJelasticClient)

        var result = client.EnqueueModifyPlanJelasticAccount(request);
        //result.Success is true on Success, false on failure
        if (result.Success)
            return result.Success;
            this.LogError("EnqueueModifyPlanJelasticAccount", result);
            throw new CodedException(this.GetErrorCode(result.ResultCode), result.ResultMessage);
See Also