Apache CloudStack 4.18.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 virtual machine 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 |
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 |
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 |