Apache CloudStack 4.23.0.0 Root Admin API Reference
createLoadBalancer
Creates an internal load balancer
Request parameters
| Parameter Name | Description | Required |
| algorithm | Load balancer algorithm (source, roundrobin, leastconn) | true |
| instanceport | The TCP port of the Instance where the network traffic will be load balanced to | true |
| name | Name of the load balancer | true |
| networkid | The guest Network the load balancer will be created for | true |
| scheme | The load balancer scheme. Supported value in this release is Internal | true |
| sourceipaddressnetworkid | The Network ID of the source IP address | true |
| sourceport | The source port the Network traffic will be load balanced from | true |
| description | The description of the load balancer | false |
| fordisplay | An optional field, whether to the display the rule to the end user or not | false |
| sourceipaddress | The source IP address the network traffic will be load balanced from | false |
Response Tags
| Response Name | Description |
| id | The Load Balancer ID |
| account | The Account of the Load Balancer |
| algorithm | The Load balancer algorithm (source, roundrobin, leastconn) |
| description | The description of the Load Balancer |
| domain | The domain of the Load Balancer |
| domainid | The domain ID of the Load Balancer |
| domainpath | path of the domain to which the Load Balancer belongs |
| fordisplay | Is rule for display to the regular User |
| name | The name of the Load Balancer |
| networkid | Load Balancer Network id |
| project | The project name of the Load Balancer |
| projectid | The project id of the Load Balancer |
| sourceipaddress | Load Balancer source IP |
| sourceipaddressnetworkid | Load Balancer source IP Network id |
| loadbalancerinstance(*) | The list of Instances associated with the Load Balancer |
| id | The Instance ID |
| ipaddress | The IP address of the Instance |
| name | The name of the Instance |
| state | The state of the Instance |
| loadbalancerrule(*) | The list of rules associated with the Load Balancer |
| instanceport | Instance port of the Load balancer rule |
| sourceport | Source port of the Load balancer rule |
| state | The state of the Load balancer rule |
| tags(*) | The list of resource tags associated with the Load Balancer |
| account | The Account associated with the tag |
| customer | Customer associated with the tag |
| domain | The domain associated with the tag |
| domainid | The ID of the domain associated with the tag |
| domainpath | Path of the Domain associated with the tag |
| key | Tag key name |
| project | The project name where tag belongs to |
| projectid | The project ID the tag belongs to |
| resourceid | ID of the resource |
| resourcetype | Resource type |
| value | Tag value |