Skip to Content
Menú
This question has been flagged
1 Respondre
230 Vistes

Hi,

I want to check from Odoo API( or any other way) whether My Odoo instance is hostes on Odoo sh or on-premises.
Is there any way to do this?

Thanks

Anju

Avatar
Descartar
Autor

It return cloudflare for me in server key for odoo sh url.

Best Answer

You can try using 

import requests

url = "odoo_instance.com"
response = requests.get(url)
print(response.headers)

If the instance is hosted on Odoo.sh, the response headers usually contain:

'Server': 'Odoo.sh'

Other instances (like odoo.com SaaS or on-premise deployments) may have different headers that can help identify the hosting environment.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de jul. 25
2710
3
de jul. 25
539
1
de juny 25
1982
1
de jul. 25
956
1
d’abr. 25
1594