Loading...
 

Modify Load Balancer Pool


HTTP VerbPUT
URI Template/loadbalancerpool/{lbID}
MIME Typeapplication/vnd.pncp.v.3.0+json onwards
Normal HTTP Response Code200 OK
Invoked ByResellers can invoke this for their own account as well as any other account they own. End-clients can invoke this for their account only.
Response ModeSynchronous.

Sample Request

PUT /pncp-external-api-rest/loadbalancerpool/70 HTTP/1.1
Accept: application/vnd.pncp.v.5.0+json
Authorization: PNCP 6ra5a1p4jVhHG8RoC8wMKip7RJM+W0cKOi1AbJV7YSk=
Content-Type: application/vnd.pncp.v.3.0+json
Content-Length: 217
User-Agent: Jakarta Commons-HttpClient/3.1
Host: YOUR_API_URL

{
   "loadBalancerIP ":null,
   "loadBalancerPort":8080,
   "loadBalancerProtocol":"TCP", 
   "method":"ROUND_ROBIN",
   “gatewayIcmpHealthCheckEnabled”:false, 	
   "nodes":[
      {
         "nodeIP":"10.0.0.100",
         "active":true,
         "nodePort":123
      },
      {
         "nodeIP":"10.0.0.101",
         "active":true,
         "nodePort":123
      }
   ]
}

Sample Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache
Cache-Control: no-store
Content-Type: application/vnd.pncp.v.3.0+json
Transfer-Encoding: chunked
Date: Thu, 26 Jan 2012 14:32:21 GMT

{
   "poolName":"testLBcbc471"
   "loadBalancerIP":"172.27.1.135",
   "loadBalancerPort":8080,
   "loadBalancerProtocol":"TCP", 
   "method":"ROUND_ROBIN",
   "nodeResource":{
      "resourceURL":"/node/2"
   },
   "accountResource":{
      "resourceURL":"/account/1785"
   },
   "nodes":[
      {
         "nodeIP":"10.0.0.100",
         "active":true,
         "nodePort":123
      },
      {
         "nodeIP":"10.0.0.101",
         "active":true,
         "nodePort":123
      }
   ]
}

Field Info

Field Name
Required
loadBalancerIP
NO
loadBalancerPort
YES
loadBalancerProtocol
YES
method
YES
nodes
Default: [empty list]
[nodes].nodeIP
YES
[nodes].active
YES
[nodes].nodePort
YES
gatewayIcmpHealthCheckEnabled
NO