Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to Automate Virtual Instance Creation in Liferay
My requirements involve multi-tenancy, where each Virtual Instance should be created automatically via an API call or similar.
Is there actually a way to do that in Liferay? I haven't found it in the documentation. The documentation indicates that we can create a virtual instance via a form by navigating to:
- Go to Control Panel → Configuration → Virtual Instances
- and through "Creating Virtual Instances with Configuration Files".
However, there is no resource explaining how to do this programmatically via an API. Is there an existing REST API to achieve this, or would it involve using a special type of client extension? Alternatively, should I create a custom REST API to handle this requirement?
Any suggestion is welcome.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™