Set Load Balancers
Applies the entire load balancer spec to an existing load balancer configuration.
Request
URLURL
Path Parameters
Path Parameters
Identifier of the cluster the load balancer is associated with. The parameter must be an identifier for the resource type: ClusterComputeResource.
Identifier of the load balancer. The parameter must be an identifier for the resource type: com.vmware.vcenter.namespace_management.LoadBalancerConfig.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
Information about the load balancer object to be set.
{
"address_ranges": [
{
"address": "string",
"count": 0
}
],
"provider": "HA_PROXY"
}
List of address ranges that will be used to derive frontend IP addresses for L4 virtual servers. This field is ignored in case of AVI load balancer provider. In case of HA_PROXY load balancer provider, at least one range must be provided. A set operation only allows for addition of new IP ranges to the existing list of IP ranges.
The LoadBalancers.Provider enumerates the kinds of load balancers supported by vSphere Namespaces.
HA_PROXY : HAProxy load balancer
AVI : NSX Advanced Load Balancer
Possible values are: HA_PROXY , AVI
The LoadBalancers.AviConfigSetSpec is a conditional configuration made available upon selecting the AVI load balancer provider. It is used to configure the load balancer at run time. This field is optional and it is only relevant when the value of LoadBalancers.SetSpec.provider is AVI.
The LoadBalancers.HAProxyConfigSetSpec is a conditional configuration made available upon selecting the HA_PROXY load balancer provider. It is used to configure the load balancer at run time. This field is optional and it is only relevant when the value of LoadBalancers.SetSpec.provider is HA_PROXY.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : if if spec contain any errors. | com.vmware.vapi.std.errors.not_allowed_in_current_state : if the associated cluster is being disabled or if the load balancer config is already marked for delete. | com.vmware.vapi.std.errors.unsupported : if the specified cluster does not have vSphere Namespaces enabled.
com.vmware.vapi.std.errors.unauthorized : if the user does not have Namespaces.Manage privilege.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-operation: set