Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Find which keystone API version is supported

I have multiple OpenStack environments ranging from JUNO to Mitaka. We make REST API call from our JAVA program to these servers. The problem is, we recently started using v3 REST API on the Mitaka server. Earlier we hardcoded the REST call to the keystone as v2, but now since we are using v3 as well is there a way I can determine which version of keystone REST API that server is running on.

As a temporary solution I first make a call to v3. Check the response. If response is an error code I make a v2 call.

I am hoping there is a better way to do this.