Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set API endpoint for the IBM Cloud / Bluemix

Tags:

I have downloaded and installed the Cloud Foundry CLI tool "cf". However, I am not able to login because I could not set the API endpoint.

What is the API endpoint that I should provide? Where can I find the related information?

like image 297
Sumona Avatar asked Nov 27 '15 12:11

Sumona


1 Answers

If you are using US South Region:

use these commands:

cf api https://api.ng.bluemix.net cf login -u bluemix_id -o myorg 

If you are using United Kingdom region:

use these commands:

cf api https://api.eu-gb.bluemix.net cf login -u bluemix_id -o myorg 

for Sydney region

cf api https://api.au-syd.bluemix.net cf login -u bluemix_id -o myorg 

for Germany region

cf api https://api.eu-de.bluemix.net cf login -u bluemix_id -o myorg 

you can know which region, org and space is currently set typing:

cf target 

If you are using the 'bluemix' plugin you can use the below command

example: bx api <apiLink> and bx target

like image 80
Crescenzo Migliaccio Avatar answered Oct 28 '22 03:10

Crescenzo Migliaccio