How to rename a tenant based on the Embedded database?
Embedded database is stored in the $HOME/db folder named after tenant with DB suffix.
For example, for tenant name test, the embedded database will be located in the folder $HOME/db/testDB.
To rename such a tenant, first, make a copy (do not rename and do not move but make a copy instead) of the tenant embedded DB folder so it would have new tenant name.
For example, make a copy of the existant tenant database to a folder named clientDB to serve the tenant with the name client.
Note that the suffix DB is a case sensitive with both letters capitalized.
After that, navigate to the base tenant, open tenant list, edit the tenant you need to rename (test in our example), choose new name for this tenant (client in our example) and click save.
After renaming the tenant remember to use new URL to access the tenant content because tenant URL is also based on the tenant name.
In the example above if the old tenant URL was https://server/ztna/test/root then the new tenant URL will be https://server/ztna/client/root.
After the tenant is successfully renamed, delete the old database folder. $HOME/db/testDB in our example