How to Automate Virtual Instance Creation in Liferay

Fidele Tsognong, modified 4 Months ago.

How to Automate Virtual Instance Creation in Liferay

New Member Post: 1 Join Date: 4/8/25 Recent Posts

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:

  1. Go to Control Panel → Configuration → Virtual Instances
  2. 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.

Community
Company
Feedback