Renaming a Resource Template

A resource template can be renamed using command-line interface.

Procedure

  1. In the data file use the attribute newName to rename a resource template.
    <ResourceTemplate
                xsi:type="amxdata:JdbcResourceTemplate"
                name="JdbcResource"        
            newName="JdbcResource-New">
                <Direct
                    xsi:type="amxdata:Direct"
                dbUrl="dummy"
                    jdbcDriver="dummy"/>
        </ResourceTemplate>
  2. In the AMXAdminTask element, set the action attribute to rename and the objectSelector attribute ResourceTemplate|Environment/ResourceTemplate|Environment/Application/ResourceTemplate.
    <AMXAdminTask action="rename" 
    objectSelector="ResourceTemplate|Environment/ResourceTemplate|Environment/ Application/ResourceTemplate"/>