Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Creating a load balancer pool entry and a load balancer pool


  1. Create a load balancer pool entry by sending a POST /csm/lbpoolentry request.
    In the request, you must specify the identifier of the virtual load balancer and the name of the load balancer pool.

    Sample create load balancer pool entry request:
    POST /csm/lbpoolentry
    Host: apiServer.calbro.com:8080
    Authentication-Token: AQIC5wM2LY4Sfcx705TK5UqUK6Ythuk1tVWjHMl7/rpY0Ys=@REGUSER431983

    {
     "timeout":100000000,
     "preCallout":"",
     "postCallout":"",
     "callbackURL":"",
     "operationParams":[
        {
         "name":"loadBalancerPoolEntry",
         "type":"com.bmc.cloud.model.beans.LBPoolEntry",
         "multiplicity":"1",
         "value":{
           "cloudClass":"com.bmc.cloud.model.beans.LBPoolEntry",
           "ipAddress":"10.1.11.15",
           "isEnabled":"true",
           "serverPortNumber":"80",
           "poolObject":{
             "cloudClass":"com.bmc.cloud.model.beans.LoadBalancerPool",
             "name":"LB_Pool",
             "loadBalancerObject":{
               "cloudClass":"com.bmc.cloud.model.beans.LoadBalancer",
               "guid":"d0d5934e-3a7a-4345-93f6-8df874d735db"
              }
            }
          }
        }
      ]
    }
  2. Create a load balancer pool by sending a POST /csm/loadbalancerpool request.

    Sample create load balancer pool request:
    POST /csm/loadbalancerpool
    Host: apiServer.calbro.com:8080
    Authentication-Token: AQIC5wM2LY4Sfcx705TK5UqUK6Ythuk1tVWjHMl7/rpY0Ys=@REGUSER431983

    {
     "timeout":100000000,
     "preCallout":"",
     "postCallout":"",
     "callbackURL":"",
     "operationParams":[
        {
         "name":"loadBalancerPool",
         "type":"com.bmc.cloud.model.beans.LoadBalancerPool",
         "multiplicity":"1",
         "value":{
           "cloudClass":"com.bmc.cloud.model.beans.LoadBalancerPool",
           "name":"TestLBP_amit",
           "description":"TestLBP_amit",
           "clientPortNumber":"80",
           "transportProtocol":"6",
           "loadBalancer":"/loadbalancer/d0d5934e-3a7a-4345-93f6-8df874d735db",
           "virtualIPAddress":"10.20.30.40",
           "natIPAddress":"0.0.0.0",
           "clientNetworkInterfaceObject":{
             "cloudClass":"com.bmc.cloud.model.beans.LoadBalancerNetworkInterface",
             "guid":"020fd52b-6a33-4106-94a1-649b4a967550",
             "network":[
               "/network/d1b7cca5-b6ec-4d18-a7c7-2e2ae3a7a54d"
              ]
            },
           "serverNetworkInterfaceObject":{
             "cloudClass":"com.bmc.cloud.model.beans.LoadBalancerNetworkInterface",
             "guid":"3640217f-b314-4fcf-8a4d-013f8a49b5e0",
             "network":[
               "/network/c3947140-42dd-4dc3-9068-229e3fa2e1b1"
              ]
            }
          }
        }
      ]
    }
  3. Remove a VM from a load balancer pool by sending a POST /csm/lbpoolentry/decommission request. For example:

    Sample create load balancer pool request:

    {

        "timeout" : -1,

        "preCallout" "",

        "postCallout" "",

        "callbackURL" "",

        "operationParams" :

        [{

                "name" "lbpoolentry",

                "type" "com.bmc.cloud.model.beans.lbpoolentry",

                "multiplicity" "1",

                "value" : {

                    "cloudClass" "com.bmc.cloud.model.beans.lbpoolentry",

                    "name" "test_anjith:10.1.7.39",

                    "guid" "ff895528-c054-441c-8751-ab8a0c97cfea",

                    "isEnabled" "true",

                    "serverPortNumber" "80",

    "computeContainerNetworkInterface" "/computecontainernetworkinterface/4278fe64-cc80-4782-a157-17c864684626",

                    "logicalServerFarmObject" : {

                        "cloudClass" "com.bmc.cloud.model.beans.LogicalServerFarm",

                        "name" "test_anjith1",

                        "guid" "2cc1af61-80a3-44f3-8cf3-3380b60f671f",

                        "logicalLoadBalancerObject" : {

                            "cloudClass" "com.bmc.cloud.model.beans.LogicalLoadBalancer",

                            "guid" "a7adcc34-b4fa-48b7-977c-38299094f5a1"

                        }

                    }

                }

            }

        ]

    }

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*