Edit the object by passing in a modified instance of the object
Description
Like any other API object, the load balancers can have their exposed properties edited by passing in a modified version of the object. The load balancer object also can modify its services in this way. Simply request the load balancer object you wish to edit, then modify the objects in the services array and pass the modified object to this function. WARNING: Services cannot be deleted in this manner, you must call deleteObject() on the service to physically remove them from the load balancer.
Parameters
Name |
Type |
Description |
templateObject |
SoftLayer_Network_LoadBalancer_VirtualIpAddress |
A skeleton SoftLayer_Network_LoadBalancer_VirtualIpAddress object with only the properties defined that you wish to change. Unchanged properties are left alone. |
Required Headers
Optional Headers
Return Values
Error Handling
- Throw the exception “You are not authorized to change virtualIpAddress” any time a change to the Virtual IP Address is attempted. For address changes, open a networking ticket.
- Throw the exception “You are not authorized to change connectionLimit” any time a change to the connection limit is attempted. For connection upgrades, use the upgradeConnectionLimit() function
- Throws an exception whose text is a newline-delimited list of validation errors. Each error describes the value that is missing or incorrect, and usually includes your value and a list of acceptable values
- Throw the exception “Virtual IPs must be assigned to an account before they can be added to a load balancer” if this load balancer is somehow not linked to an account. If this is your load balancer, please open a ticket to have this issue resolved.
- Throw the exception “The load balancer could not be contacted. It may be currently in use for maintenance. Please try again in 3-5 minutes. If the problem persists, please open a networking ticket.” Exception text is self-explanatory.
- Throw the exception “Errors encountered when setting up the load balancer! Please contact customer service.” if an error has been thrown by the hardware load balancer device itself. If the problem persists, please open a networking ticket.
- Throw the exception “There was an error with your inital commands. Your old configuration has been restored. Please contact customer service.” if there was an error with your configuration. If you receive this message, your load balancer has been successfully rolled back to its previous values and will continue working, but a ticket may need to be opened to perform the changes you were attempting.
- Throw the exception “You are not authorized to change peakConnections. Please use the function resetPeakConnections to reset peak connections to zero” if you have edited the peak connections on a service. This is a read-only value that can only be reset by the specified function.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Network_LoadBalancer_VirtualIpAddress]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_LoadBalancer_VirtualIpAddress/{SoftLayer_Network_LoadBalancer_VirtualIpAddressID}/editObject'