Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to tell (via the REST API?) if a Jira URL is cloud or server?

Christopher Poile May 14, 2019

We are building an integration and want to make setting up a Jira instance as easy as possible. We are asking the user to specify if their Jira is a cloud or server instance, and then enter the url. 

We were wondering if it is possible to query the URL and tell if it's a cloud or server that way (then they wouldn't have to tell us it's a cloud/server). One less thing for them to type.

Eg, the drop down to this very question says Cloud products have an URL ending with atlassian.net. But is that a totally reliable way of telling the difference? Would a cloud instance ever be a custom domain?

Thanks!

Chris.

2 answers

1 vote
Taranjeet Singh
Community Champion
May 14, 2019

@Christopher Poile  

There is no way to use custom domains / URLs for Atlassian Cloud sites right now. Look at this issue:https://jira.atlassian.com/browse/CLOUD-6999

But, looking at that above issue has been accepted and the work is ongoing, this will be possible in future, but not so near future.

So, for now, you can totally rely on the distinction that Atlassian Cloud URLs always end with atlassian.net.

Taranjeet Singh
Community Champion
May 15, 2019

@Christopher Poile Did my answer help resolving your query?

Christopher Poile May 16, 2019

Hi Taranjeet, thank you kindly for the answer. I think this won't work for us, because as soon as CLOUD-6999 is working (it already might for some customers, if I read that ticket right) we can't rely on parsing the URL.

But thanks for the quick response.

1 vote
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2019

Try

https://<JIRA>/rest/api/2/serverInfo

and look at the value for deploymentType

Christopher Poile May 16, 2019

For our private test server it requires authorization for that url. Oddly, the cloud server doesn't. Is there a way to get the info without providing credentials?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events