Update Load Balancers
Updates the load balancer configuration. The specified configuration is applied partially and unset fields in spec will leave those parts of configuration as-is.
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 updated.
{
"address_ranges": [
{
"address": "string",
"count": 0
}
],
"avi_config_update_spec": {
"certificate_authority_chain": "string",
"password": "string",
"username": "string"
},
"ha_proxy_config_update_spec": {
"certificate_authority_chain": "string",
"password": "string",
"username": "string"
},
"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. An update operation only allows for addition of new IP ranges to the existing list of IP ranges. If unset, the existing list of address ranges will not be modified.
The LoadBalancers.AviConfigUpdateSpec is a conditional configuration made available upon selecting the AVI load balancer provider. It is used to configure the load balancer at run time. If unset, the Avi load balancer configuration will not be modified.
The LoadBalancers.HAProxyConfigUpdateSpec 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. If unset, the HAProxy load balancer configuration will not be modified.
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
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : if spec contains any errors. 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
cURL Command
Vendor Extensions
x-vmw-doc-operation: update