[ 
https://issues.apache.org/jira/browse/JCLOUDS-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760345#comment-13760345
 ] 

David Toy commented on JCLOUDS-266:
-----------------------------------

Thanks [~nacx] and [~underscorephil]

jclouds:softlayer uses SoftLayer_Product_Order::placeOrder [1], so simple 
substitution of id and name won't work.

Datacenter [2] has both name and id, so conversion on the fly might be possible 
( ? )
  
However, it is clear that jclouds:softlayer will have to be used with numeric 
ids for the time being.

Any objection to keeping the issue open?

1. 
https://github.com/jclouds/jclouds/blob/master/providers/softlayer/src/main/java/org/jclouds/softlayer/features/VirtualGuestApi.java#L157

2. 
https://github.com/jclouds/jclouds/blob/master/providers/softlayer/src/main/java/org/jclouds/softlayer/domain/Datacenter.java
                
> softlayer: Use alpha region ids, instead of numeric (ams01 vs 265592)
> ---------------------------------------------------------------------
>
>                 Key: JCLOUDS-266
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-266
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-compute
>         Environment: api.softlayer.com/rest/v3/
>            Reporter: David Toy
>            Priority: Minor
>
> Currently when using softlayer regions must be specified using a numeric 
> 'locationId'.
> In addition to the numeric id SoftLayer make a human readable 'name' 
> available for each region.
> Can jclouds:softlayer switch to using the easier alphanumeric name to specify 
> a region? 
> e.g. jclouds.softlayer:ams01, rather than jclouds.softlayer:265592.
> JSON from SoftLayer:
> {"id":265592,"longName":"Amsterdam 
> 1","name":"ams01","locationAddress":{"accountId":1,"address1":"Paul van 
> Vlissingenstraat 
> 16","city":"Amsterdam","contactName":"SoftLayer","country":"NL","description":"Amsterdam
>  - AMS01","id":3322,"isActive":1,"locationId":265592,"postalCode":"1096 
> BK","type":{"createDate":"2010-04-06T04:49:15+01:00","id":1,"keyName":"SOFTLAYER_DATACENTER","name":"SoftLayer
>  Datacenter (accepts customer DTS 
> shipments)"}},"regions":[{"description":"AMS01 - Amsterdam - Western 
> Europe","keyname":"AMSTERDAM","sortOrder":11}]}]}"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to