Skip to content

Conversation

ycombinator
Copy link
Contributor

If these lines of code are to be believed, then a long time ago in a galaxy far, far away there apparently existed two HTTP API calls to retrieve a list of load balancers:

  1. GET /v1.0/{tenantId}/loadbalancers, and
  2. GET /v1.0/{tenantId}/loadbalancers/detail

The API developer guide for Load Balancers, however, only documents call 1 but not call 2. Live HTTP requests against the load balancers service corroborate the documentation.

Unfortunately, as the $detail parameter on the loadBalancerList method defaults to true, the SDK defaults to making call 2 which results in an HTTP 404 response.

This PR:

  • Marks the $detail parameter as deprecated.
  • Always makes call 1, regardless of the value of the $detail argument, thereby preserving backwards compatibility in a reasonable manner (in my opinion).

@ycombinator
Copy link
Contributor Author

@jamiehannaford, @gecampbell: Could you please review this when you have a couple of minutes? Thanks!

@jamiehannaford
Copy link
Contributor

🚢 it

jamiehannaford pushed a commit that referenced this pull request Oct 23, 2014
Removing detail switch as the corresponding HTTP API call doesn't exist.
@jamiehannaford jamiehannaford merged commit c8b1bb8 into rackspace:working Oct 23, 2014
@ycombinator ycombinator deleted the clb-no-detail-list branch October 30, 2014 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants