Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1245 Vistas

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.

Autor

Hi,


It did not work. It did not return server in reponse.

Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
ago 25
1006
2
jul 25
4040
3
jul 25
1325
1
jun 25
3098
1
ago 25
2001