Developers Guide

Table Of Contents
"ContentType": "xml",
"ViewTypeId": 2
}
/api/TemplateService/Actions/TemplateService.Import
POST method for TemplateService.Import
This method creates a template from a specified configuration text in .XML format. The text is generally from an exported
template file or an SCP file that is created from a device. The text must use the same structure as SCP files.
Description Creates a template from a specified configuration text in SCP XML format.
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example request
body
{
"Name": "Import Test",
"Type": 2,
"Content": <Details of the XML file>
"ViewTypeId": 2
}
Example
response body
ID of the imported template
POST method for TemplateService.Import of IOA deployment
Description
This method imports the IOA template.
Privilege TEMPLATE_MANAGEMENT
HTTP response
codes
200
Example request
body
{
"Name": "Import Test - IOA",
"Type": 3,
"Content": "\n!Cloning Header Start\n!ReleasePlatform XL\n!
ReleaseVersion 9-14(0-30)\n!ReleaseSize 48140985\n!ReleaseTime
Jun 19 2018 01:29:05\n!OPTM0 10GBASE-T\n!OPTM1 -\n!Service-Tag
FJM0Y42\n!Serial-Number CN2829865N0013\n!FCPortsPresent FALSE\n!
QuadPortsPresent 33 37 49 53\n!IOM-Mode standalone\n!CheckSum
4fd3e503fd1df86f419aecd3cd23bd21\n!Cloning Header End\n\n\n! Version
9-14(0-30)\n!\nboot system stack-unit 0 primary system: A:\nboot
system stack-unit 0 secondary system: B:\nboot system stack-unit
0 default system: B:\nboot system gateway 100.100.230.1\n!\nhostname
Dell\n! \nprotocol lldp \n!\nredundancy auto-synchronize full\n!\nenable
password 7 b125455cf679b208fcf9eeeed0cd6d84\n!\nusername root password 7
d7acc8a1dcd4f698 privilege 15\nusername root password 7 d7acc8a1dcd4f698
privilege 15\n! \nstack-unit 0 provision I/O-Aggregator\n! \ninterface
TenGigabitEthernet 0/1\n auto vlan\n! \n protocol lldp \n no shutdown\n!
\ninterface TenGigabitEthernet 0/2\n auto vlan\n! \n protocol lldp
\n no shutdown\n! \ninterface TenGigabitEthernet 0/3\n auto vlan\n!
\n protocol lldp \n no shutdown\n! \ninterface TenGigabitEthernet
0/4\n auto vlan\n! \n protocol lldp \n no shutdown\n! \ninterface
TenGigabitEthernet 0/5\n auto vlan\n! \n protocol lldp \n no shutdown\n!
\ninterface TenGigabitEthernet 0/6\n auto vlan\n! \n protocol lldp
\n no shutdown\n! \ninterface TenGigabitEthernet 0/7\n auto vlan\n!
218 Configure