Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Cloud foundry API endpoint?

I am trying to login to bluemix account through cloud foundry cli using command CF login and I am getting output as 'API endpoints > ' I tried CF API then I got message as 'No API endpoint set . Use 'cf api' to set an endpoint .' what is the API endpoint ?

like image 462
vinay Avatar asked May 10 '17 12:05

vinay


1 Answers

The API endpoint is the server your CLI program talks to to execute the commands and obtain information. For IBM Bluemix the API endpoints are documented here.

You could do cf api api.eu-de.bluemix.net to set the endpoint for Bluemix in Frankfurt, Germany. Or cf api api.ng.bluemix.net to configure Dallas, USA, as endpoint. See the above linked documentation for the full list of Bluemix Public. Bluemix Dedicated and Bluemix Local have other API endpoints.

You can also set the api endpoint and login using just one command using, e.g. for the Dallas, USA, endpoint:

cf login -a https://api.ng.bluemix.net
like image 77
data_henrik Avatar answered Oct 28 '22 00:10

data_henrik