Some configuration object types have templates that you can use when you create a virtual host.
<WAS-ROOT>\config\templates\custom\
<WAS-ROOT>\config\templates\default\virtualhosts.xml
Using Jacl:
$AdminConfig reset
Using Jacl:
$AdminConfig listTemplates VirtualHostExample output:
default_host(templates/default:virtualhosts.xml#VirtualHost_1) my_host(templates/custom:virtualhostname.xml#VirtualHost_1)
Note: To list the new templates, restart DeploymentManager or use the AdminConfig object reset command.
Using Jacl:
set cell [$AdminConfig getid /Cell:NetworkDeploymentCell/] set vtempl [$AdminConfig listTemplates VirtualHost my_host] $AdminConfig createUsingTemplate VirtualHost $cell {{name newVirHost}} $vtempl
Using Jacl:
$AdminConfig save
Note: The administrative console does not support the use of custom templates. The new template that you create will not be visible in the administrative console panels.