Bluemix is now live in Europe and US. The addition of the second location introduced "Regions" to the Bluemix user interface and also added some new URLs. In this blog I’ll share the results of my investigation into this new feature.
Organization and user(s) are automatically enabled on all regions, so there is nothing to do to start using the new United Kingdom region. If you are an existing user of Bluemix then you’ll find all your spaces, applications, services will be in the US South region – the original Bluemix Region.
Spaces and the resources in a space belong to a region, which cannot be managed when connected to a different region. It is possible to have a space with the same name in multiple regions, but these are separate spaces with unique content, as shown in the diagram below:
It is possible to switch regions within the Bluemix UI from the top menu using the REGION dropdown.
https://bluemix.net will take you to your default region, but there are also URL’s available to navigate directly to a specific region:
|US South :||https://console.ng.bluemix.net|
|United Kingdom :||https://console.eu-gb.bluemix.net|
When deploying an application without specifying a domain a default domain will be used. The default domain is different for each region:
|US South :||mybluemix.net|
|United Kingdom :||eu-gb.mybluemix.net|
Working with Regions on the Command Line
It is not possible to switch regions when using the command line interface. When connected to a region and needing to access a resource in another region, the current session must be terminated by logging out (cf lo) or another command line session in a new command window needs to be started.
To login to a region you need to use the correct endpoint:
|US South :||https://api.ng.bluemix.net|
|United Kingdom :||https://api.eu-gb.bluemix.net|
To login to the United Kingdom region the command is:
cf l -a https://api.eu-gb.bluemix.net
Working with regions in Eclipse
The Bluemix plugin to Eclipse is able to deploy to the United Kingdom region after adding a new Bluemix Cloud definition to the Eclipse configuration. From the Eclipse application menu select:
- Eclipse -> Preferences -> Server -> Runtime Environments (Mac)
- Window -> Preferences -> Server -> Runtime Environments (Windows + Linux)
- select ‘Add’
- select ‘IBM’ -> ‘IBM Bluemix Runtime’ then ensure ‘Create a new local server’ is selected
- select 'Next>'
- select ‘Manage Cloud …’
- select ‘Add…’
- Enter the details for the United Kingdom Bluemix Region. The URL is https://api.eu-gb.bluemix.net.
- Press ‘Finish’ then ‘OK’
Complete adding the Runtime by selecting the newly configured United Kingdom region from the URL drop down and entering your Bluemix login details. On the next screen select a Bluemix space for this runtime definition.
Working with Regions in DevOps Services for Bluemix
DevOps Services for Bluemix is also region enabled (https://hub.jazz.net). You can configure which region and space you want to deploy into in the ‘BUILD & DEPLOY’ section.
When using SIMPLE configuration select the CONFIGURE button to bring up the panel where you can select the Target region.
when using ADVANCED configuration select the gear wheel to configure a target stage to bring up the configuration page where you can select the Target region.
I hope this article helps you understand how to work with Regions in Bluemix. If you have questions or comments please add them to this blog entry.