IBM-Cloud/terraform

[SLAPI] Creation of a LoadBalancer VIP returns with a null ID.

renier opened this issue · 2 comments

Summary

Adding a VIP to a LoadBalancer returns a VIP with a null ID. This affects how you can edit/delete the VIPs later, since the convention is to do this by specifying the ID.

Expected and Desired Behavior

The SLAPI returns an ID with the VIP created.

Workaround

It turns out that SoftLayer uses the name field of the VIP as its effective ID. This is confusing and hard-to-find relative to how the rest of the API conventionally works. You can use this name field value to indicate the VIP you want to edit and/or delete.

Would you please provide more information on what API call this issue is related to? What is the operation and what are the variables that you are submitting?

@rhodgin This is the api call http://sldn.softlayer.com/reference/services/SoftLayer_Network_Application_Delivery_Controller/createLiveLoadBalancer

I don't have the actual values submitted as this was a while ago, but we were submitting the same required by the api:

The loadBalancer parameter must have its name, type, sourcePort, and virtualIpAddress properties populated.

The api did return the new VIP registered (no bad request errors), just without an ID. See here for background information.