Creating a load balancer pool entry and a load balancer pool

  • To create a new load balancer pool (logical server farm), send a POST  http://<platformanager>:<port>/csm/logicalserverfarm request.

     Click here for example code.
    {
      "operationParams" : [ {
        "name" : "logicalServerFarm",
        "type" : "com.bmc.cloud.model.beans.LogicalServerFarm",
        "value" : {
          "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarm",
          "clientLogicalLoadBalancerInterface" : "/logicalloadbalancerinterface/2b1d25ca-ce9a-485a-a3f1-1742dfb13645",
          "clientLogicalLoadBalancerInterfaceObject" : {
            "cloudClass" : "com.bmc.cloud.model.beans.LogicalLoadBalancerInterface",
            "guid" : "2b1d25ca-ce9a-485a-a3f1-1742dfb13645",
            "isTemplate" : false,
            "logicalNetwork" : [ "/logicalnetwork/abd0aeb6-032d-4cfc-a8f1-a722a0dd6f74" ]
          },
          "clientPortNumber" : 80,
          "frontEndProtocol" : 6,
          "guid" : "c08e5e34-cd32-4d78-9d7a-fc4ea0eeaa96",
          "isEnabled" : false,
          "logicalLoadBalancer" : "/logicalloadbalancer/4d6dc4e5-53f5-4bfd-80e2-8e72755a6575",
          "name" : "Test_CLSF",
          "serverLogicalLoadBalancerInterface" : [ "/logicalloadbalancerinterface/929fe8c2-c2d5-4bda-b11a-9e5dbcd53d69" ],
          "serverLogicalLoadBalancerInterfaceObject" : [ {
            "cloudClass" : "com.bmc.cloud.model.beans.LogicalLoadBalancerInterface",
            "guid" : "929fe8c2-c2d5-4bda-b11a-9e5dbcd53d69",
            "isTemplate" : false,
            "logicalNetwork" : [ "/logicalnetwork/abd0aeb6-032d-4cfc-a8f1-a722a0dd6f74" ]
          } ]
        },
        "multiplicity" : "1"
      } ],
      "timeout" : -1,
      "alreadyTraversedGlobalRegistry" : false,
      "alreadyTraversedLocalRegistry" : false,
      "preCallout" : "",
      "postCallout" : "",
      "callbackURL" : ""
    }
  • To delete a load balancer pool (logical server farm), send a POST http://<platformanager>:<port>/csm/logicalserverfarm/decommission request.

     Click here for example code.
    {
        "operationParams" : [{
                "name" : "logicalServerFarm",
                "type" : "com.bmc.cloud.model.beans.LogicalServerFarm",
                "value" : [{
                        "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarm",
                        "backEndProtocol" : 6,
                        "clientPortNumber" : 80,
                        "guid" : "7f9317fe-431b-40e8-9699-7034d3acbce7",
                        "isEnabled" : false,
                        "logicalLoadBalancer" : "/logicalloadbalancer/4d6dc4e5-53f5-4bfd-80e2-8e72755a6575",
                        "name" : "K_LBP"
                    }
                ],
                "multiplicity" : "0..*"
            }
        ],
        "timeout" : -1,
        "alreadyTraversedGlobalRegistry" : false,
        "alreadyTraversedLocalRegistry" : false,
        "preCallout" : "",
        "postCallout" : "",
        "callbackURL" : ""
    }
  • To add a VM to a load balancer pool, send a POST http://<platformManager>:<port>/csm/logicalserverfarmentry request. 

     Click here for example code.
    {
        "timeout" : -1,
        "preCallout" : "",
        "postCallout" : "",
        "callbackURL" : "",
        "operationParams" :
        [{
                "name" : "logicalServerFarmEntry",
                "type" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                "multiplicity" : "1",
                "value" : {
                    "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                    "name" : "Test_LogicalServerFarmEntry",
                    "ipAddress" : "10.1.7.11",
                    "isEnabled" : "true",
    "computeContainerNetworkInterface" : "/computecontainernetworkinterface/4278fe64-cc80-4782-a157-17c864684626",
                "serverPortNumber" : "80",
    "logicalServerFarmObject" : {
                        "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarm",
                        "name" : "test_anjith",
                        "guid" : "2cc1af61-80a3-44f3-8cf3-3380b60f671f",
                        "logicalLoadBalancerObject" : {
                            "cloudClass" : "com.bmc.cloud.model.beans.LogicalLoadBalancer",
                            "guid" : "a7adcc34-b4fa-48b7-977c-38299094f5a1"
                        }
                    }
                }
            }
        ]
    }
  • To remove a VM from a load balancer pool, send a POST http://<platformManager>:<port>/csm/logicalserverfarmentry/decommission request.

     Click here for example code.
    {
        "timeout" : -1,
        "preCallout" : "",
        "postCallout" : "",
        "callbackURL" : "",
        "operationParams" :
        [{
                "name" : "logicalServerFarmEntry",
                "type" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                "multiplicity" : "1",
                "value" : {
                    "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                    "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"
                        }
                    }
                }
            }
        ]
    }
  • To enable a VM in a load balancer pool (enable a logical server farm entry), send a POST  http://<platformanager>:<port>/csm/logicalserverfarmentry/enable request.

     Click here for example code.
    {
        "timeout" : -1,
        "preCallout" : "",
        "postCallout" : "",
        "callbackURL" : "",
        "operationParams" :
        [{
                "name" : "logicalServerFarmEntry",
                "type" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                "multiplicity" : "1",
                "value" : {
                    "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                    "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"
                        }
                    }
                }
            }
        ]
    }
  • To disable a VM in a load balancer pool (disable a logical server farm entry), send a POST  http://<platformanager>:<port>/csm/logicalserverfarmentry/disable request.

     Click here for example code.
    {
        "timeout" : -1,
        "preCallout" : "",
        "postCallout" : "",
        "callbackURL" : "",
        "operationParams" :
        [{
                "name" : "logicalServerFarmEntry",
                "type" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                "multiplicity" : "1",
                "value" : {
                    "cloudClass" : "com.bmc.cloud.model.beans.LogicalServerFarmEntry",
                    "name" : "test_anjith:10.1.7.39",
                    "guid" : "ff895528-c054-441c-8751-ab8a0c97cfea",
                    "isEnabled" : "false",
                    "serverPortNumber" : "80",
                    "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"
                        }
                    }
                }
            }
        ]
    }
Was this page helpful? Yes No Submitting... Thank you

Comments