Add/Remove Template(s) to/from an Instance
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
These commands can be used to add or remove template(s) to/from an instance.
Note: A template(s) cannot be added/remove to/from an instance when the instance is running. To stop an instance, run the stopinstance command. For further information, refer to the Start/Stop an Instance section.
Example Command
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/configtemplatesinstance?iid=<VLMInstanceID>&tcmd=<add/rem>&tnames=<TemplateNames>"Available Parameters
|
Parameter |
Parameter Type |
Parameter Description |
Mandatory |
|---|---|---|---|
|
iid |
Integer |
The VLM instance ID. This can be retrieved by running the listInstances command. For further information, refer to the List the Instances section. |
Yes |
|
tcmd |
String |
Specify the action to perform: add - Add the template(s) rem - Remove the template(s) |
Yes |
|
tnames |
String |
Specify the name(s) of the template(s) to be added/removed. Multiple templates can be specified in a comma-separated list. Note: The names are case sensitive - please ensure to specify the exact template name in order for this command to work. |
Yes |
Example Output
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="ok"><Success>Command completed ok</Success></Response>