Get Template
Request
URI
GET
https://{api_host}/api/device-templates/{id}
COPY
Responses
200
Returns
devicemgmtDeviceTemplate
of type(s)
*/*
{
"imageDetails": [
{
"imageUrl": "string",
"id": "string",
"sourceType": "string"
}
],
"name": "string",
"settings": [
{
"category": "string",
"finalSettings": {
"fields": {
"fields": "protobufValue Object"
}
},
"settings": {
"fields": {
"fields": "protobufValue Object"
}
}
}
],
"systemProperties": [
{
"name": "string"
}
],
"allowedMetrics": [
{
"timeInterval": "string",
"displayUnit": "string",
"displayName": "string",
"name": "string",
"valueType": "string",
"factor": "number",
"batchSize": "string"
}
],
"updateVersion": 0,
"enrollmentProvider": {
"providerConfig": "string",
"type": "string"
},
"deviceType": "string",
"allowedCommands": [
{
"name": "string",
"clientId": "string",
"command": "string",
"asRoot": false,
"execPath": "string",
"arguments": [
{
"type": "string",
"name": "string",
"value": [
"string"
]
}
]
}
],
"customProperties": [
{
"name": "string",
"value": "string"
}
],
"lastUpdatedTime": "string",
"createdTime": "string",
"orgId": "string",
"id": "string",
"childTemplates": [
"string"
]
}
array of
object
imageDetails
Optional
imageDetails
string
name
Optional
name
array of
object
settings
Optional
settings
array of
object
systemProperties
Optional
systemProperties
array of
object
allowedMetrics
Optional
allowedMetrics
integer As int32
As int32
updateVersion
Optional
updateVersion
object
enrollmentProvider
Optional
enrollmentProvider
string
deviceType
Optional
Constraints:
default: UNKNOWN_TYPE
deviceType
Possible values are :
UNKNOWN_TYPE,
GATEWAY,
THING,
array of
object
allowedCommands
Optional
allowedCommands
array of
object
customProperties
Optional
customProperties
string As int64
As int64
lastUpdatedTime
Optional
lastUpdatedTime
string As int64
As int64
createdTime
Optional
createdTime
string
orgId
Optional
orgId
string
id
Optional
id
array of
string
childTemplates
Optional
childTemplates
404
Not Found
Operation doesn't return any data structure
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/device-templates/{id}
Template Service Operations
PUT
Update Template
DELETE
Delete Template
GET
Get Template
POST
Create Template
GET
List Templates