CloudStack v2.2.13 - 2.2.14 Domain Admin API Reference
								
createLoadBalancerRule
Creates a load balancer rule
Request parameters
| Parameter Name | Description | Required | 
| algorithm | load balancer algorithm (source, roundrobin, leastconn) | true | 
| name | name of the load balancer rule | true | 
| privateport | the private port of the private ip address/virtual machine where the network traffic will be load balanced to | true | 
| publicport | the public port from where the network traffic will be load balanced from | true | 
| account | the account associated with the load balancer. Must be used with the domainId parameter. | false | 
| cidrlist | the cidr list to forward traffic from | false | 
| description | the description of the load balancer rule | false | 
| domainid | the domain ID associated with the load balancer | false | 
| networkid | The guest network this rule will be created for | false | 
| openfirewall | if true, firewall rule for source/end pubic port is automatically created; if false - firewall rule has to be created explicitely. Has value true by default | false | 
| publicipid | public ip address id from where the network traffic will be load balanced from | false | 
| zoneid | zone where the load balancer is going to be created. This parameter is required when LB service provider is ElasticLoadBalancerVm | false | 
Response Tags
| Response Name | Description | 
| id | the load balancer rule ID | 
| account | the account of the load balancer rule | 
| algorithm | the load balancer algorithm (source, roundrobin, leastconn) | 
| cidrlist | the cidr list to forward traffic from | 
| description | the description of the load balancer | 
| domain | the domain of the load balancer rule | 
| domainid | the domain ID of the load balancer rule | 
| name | the name of the load balancer | 
| privateport | the private port | 
| project | the project name of the load balancer | 
| projectid | the project id of the load balancer | 
| publicip | the public ip address | 
| publicipid | the public ip address id | 
| publicport | the public port | 
| state | the state of the rule | 
| zoneid | the id of the zone the rule belongs to |