AddVmNicToLoadBalancer

Adds a VM NIC to a load balancer. For example,
AddVmNicToLoadBalancer listenerUuid=7e331a2f61ed4c65b96d521115bc9f16 \
vmNicUuids=93dea4f116654754ac4d40e50b3c8cad

Parameters

Name Description Optional Valid Value Starting Version
vmNicUuids The VM NIC UUID. 0.6
listenerUuid The UUID of the load balancer listener. 0.6
userTags The user tags. For more information, see CreateUserTag. The resource type is LoadBalancerListenerVO Yes 0.6
systemTags The system tags. For more information, see CreateSystemTag. The resource type is LoadBalancerListenerVO. Yes 0.6
timeout Yes
Note:
  • When you add a VM NIC to a load balancer in ZStack Cloud, you can set the weight of the backend server by adding the balancerWeight option to SystemTags.
    • Format of the balancerWeight option: balancerWeight::{nicUuid}::{weight}. Here, weight is the weight of the backend server. Weight range: 0-100, integer. Default value: 100.
    • Example: balancerWeight::{"c44007641c9040c6b2587e19b1b3e2b0"}::{100}