Is it possible to tell if I am connected to an on-demand instance or a server instance using the JIRA API?

Hi!  Using the REST API - or some other mechanism - Is it possible to tell if I am connected to a server instance or an on-demand instance?

4 answers

You could call /rest/api/2/serverInfo and look at the version element. For on-demand the version is something like:

"version":"7.2.0-OD-05-022"

i.e. it has OD in it.

and for server it's just:

"version": "6.2.5"

Not sure if that's good enough? 

If you see "-OD-" in the version then it is definitely Cloud.
Unfortunately the reverse is not true.

Sometimes cloud will have (eg) version "7.2.0" (then two weeks later it will move to "7.3.0-OD-01-xxx")

Another heuristic is the domain name ... eg if it is on "*.atlassian.net" (or one of a few others) then it is Cloud.
But this too is unreliable because that list could expand or change in the long term.

0 votes

Why do you need to know the difference?

 

Backups and re-indexing - possibly others? -  work/behave differently between the two versions . . .  I would like to add some code to the jira python client to behave appropriately depending on the context.

 

Thanks!!

AFAIK there is no reliable way to do this in REST.

Sounds like a good feature request smile

The way I usually tell in the UI is by looking at the footer.
Server will have "Atlassian JIRA Project Management Software".
Cloud will have "Powered by Atlassian

I did it!!  https://jira.atlassian.com/browse/JRA-60416

I found it very awkward to word that request . . .  are the two types of servers "onDemand" and "Server"?  "Server" is not very descriptive . . .  and now that I think of it, "onDemand" is now cloud.

 

Please feel free to update the ticket if you have any thoughts, or send them to me and I will update if you are not able to!  Thanks!!!

Thanks for raising that.

Yep - "Server" can be ambiguous, but Marketing obviously think it's a good name, so who am I to argue cheeky

(Internally we often say "BTF" - Behind The Firewall - for On Premises installs but that's misleading too because our Cloud instances are all behind a firewall too)

I might change "Server type" to "Deployment type" in the issue.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

274 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot