API Guide

/api/TemplateService/Templates(Id)
This URI represents a specific template.
GET method for Templates(Id)
This method returns the details of a specific template.
Description Returns the details of a specific template.
Privilege VIEW
HTTP response
codes
200
Example response
body
{
"@odata.context": "/api/$metadata#TemplateService.Template/$entity",
"@odata.id": "/api/TemplateService/Templates(10)",
"Id": 10,
"Name": "Example Test Template 1",
"Description": null,
"SourceDeviceId": 5514,
"TypeId": 2,
"ViewTypeId": 2,
"TaskId": 33464,
"HasIdentityAttributes": true,
"Status": 2060,
"IdentityPoolId": 0,
"IsBuiltIn": false,
"CreatedBy": "admin",
"CreationTime": "2017-12-05 19:17:17.31158",
"LastUpdatedBy": "admin",
"LastUpdatedTime": "2017-12-05 19:17:17.31158",
"Views":
[
{
"@odata.id": "/api/TemplateService/Templates(10)/Views"
}
]
}
Table 86. Attributes
Attribute Description
Id Unique identifier for referencing a template.
Name Template name.
Description Definition for the template.
SourceDeviceId The identifier of the device whose configuration was used as a
reference for creating the template.
TypeId Template type. For more information, see /TemplateService/
TemplateTypes.
ViewTypeId Template View type. For more information, see /
TemplateService/TemplateViewTypes.
TaskId The identifier of the task that created the template.
HasIdentityAttributes Indicates whether the template contains any identity attributes,
that is, any attributes that must be assigned a unique value from an
Identity Pool before they can be deployed to a target device.
Status Status of the action.
IdentityPoolId The ID of the identify pool associated with the template. If an
identity pool is not associated, this value is 0.
146 Configure