Click or drag to resize

IWsEndUserSetEnqueueLoadBalancerCreation Method

By the method SetEnqueueLoadBalancerCreation you can create a load balancer. The method require to specify the name, the IP Address of balancer, the Class of Service of balancer, the load balancing algorithm, the rules for load balancing and the IP addresses to balance.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult SetEnqueueLoadBalancerCreation(
	LoadBalancerCreationRequest request


Type: Aruba.Cloud.Provisioning.Entities.LoadBalancerLoadBalancerCreationRequest

Return Value

Type: WsResult
/// IWsEndUser.SetEnqueueLoadBalancerCreation Method (c# .NET)
public static string SetEnqueueLoadBalancerCreation(WsEndUserClient client,
    string name, LoadBalancerRule[] rules,
    int[] ipAddressesResourceId, int loadBalancerClassOfServiceID)
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

        // create the request object
        LoadBalancerCreationRequest request = new LoadBalancerCreationRequest();
        request.IpAddressResourceId = ipAddressesResourceId;
        request.LoadBalancerClassOfServiceID = loadBalancerClassOfServiceID;
        request.Name = name;
        request.Rules = rules;

        // call method SetEnqueueLoadBalancerCreation 
        // obtaining a WsResult item
        WsResult result = client.SetEnqueueLoadBalancerCreation(request);

        //if the call is Success print value
        if (result.Success)
            // get Value returned from server
            stringBuilder.Append(" Operation ends successfully. Result Code : ");
            throw new ApplicationException(result.ResultMessage);
    catch (Exception ex)
        // re-run the error
        throw new ApplicationException(ex.Message);

    return stringBuilder.ToString();
See Also