TheWeatherCompany / softlayer-go

A SoftLayer client API written in Golang
Apache License 2.0
5 stars 3 forks source link

Helpers functions can now lookup by id or by keyname #43

Closed tmulhern3 closed 8 years ago

renier commented 8 years ago

General thought: If you have the Id, you would normally just use getObject on the particular service to get it. Rather than passing an object filter with the Id.

Are you looking to support when the conf user puts in Ids for these things?

tmulhern3 commented 8 years ago

I could use the getObject functions however they don't currently exist. I think it would be overkill to make getObject functions for datacenters, routing types, routing methods, and health check types when we only need to retrieve the name/id pairing.

tmulhern3 commented 8 years ago

As for the need for retrieving id based on name: I need to do a "reverse lookup" when performing a read (since the API call sends back id and the users tf code contains the name)