API Guide

"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 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
Input:
{
"Name": "Import Test",
"Type": 2,
"Content": <Details of the XML file>
"ViewTypeId": 2
}
Output:
ID of the imported template
/api/TemplateService/Actions/TemplateService.Deploy
POST method for TemplateService.Deploy
This method creates a template-deployment job.
Description
Creates a template-deployment job.
Privilege DEVICE_CONFIGURATION
HTTP response
codes
200
Example
Input:
{
"Id": 11,
"TargetIds": [5514],
"NetworkBootIsoModel":
{
"BootToNetwork": true,
"ShareType": "CIFS",
"IsoPath": "bootToIsoPath.iso",
"ShareDetail":
{
"IpAddress": "1.2.3.4",
"ShareName": "1.2.3.4",
"User": "bootToIsoUsername",
"Password": "bootToIsoPassword"
}
},
"Attributes": [],
"Options":
{
"ShutdownType": 0,
"TimeToWaitBeforeShutdown": 300,
"EndHostPowerState": 1
148 Configure