I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this?
cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to.
thanks
anthony
I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this?
cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to.
thanks
anthony
You can get the version of CloudFoundry that Bluemix is running on via the CloudFoundry info endpoint.
US South Datacenter - https://api.ng.bluemix.net/info (currently 226 as of this posting)
EU UK Datacenter - https://api.eu-gb.bluemix.net/info (currently 226 as of this posting)
AP Datacenter - https://api.au-syd.bluemix.net/info (currently 226 as of this posting)
AP Datacenter - https://api.eu-de.bluemix.net/info (currently 226 as of this posting)
The build is the bit of JSON you want.
You can use the command
cf curl /v2/info
to access Bluemix's Cloud Controller endpoint to get info about versions, etc. Here's the output I see at the moment:The
build
property's first three characters map to the version of Cloud Foundry in use. In this case, version 195, which corresponds to the versioned API doc here: http://apidocs.cloudfoundry.org/195/