Get Device Template References in Device Templates
The API provides the list of devices, groups, and locations on which the specified device template is applied.
API Calls
/V5/configuration/devicetemplates/{templateid}/references
JSON Table
Attribute | Data Type | Description |
---|---|---|
appliedToGroups | application/json | |
appliedToGroups/groupId | int | |
appliedToGroups/groupName | String | |
appliedToGroups/locationId | application/json | |
appliedToDevices | application/json | |
appliedToDevices/macaddress | String | |
appliedToDevices/locationId | application/json | |
defaultOnLocations | application/json | |
defaultOnLocations/type | String | |
defaultOnLocations/id | int |
Sample JSON
{ "appliedToGroups": [{ "groupId": 4, "groupName": "Test manoj", "locationId": { "type": "locallocationid", "id": 0 } }], "appliedToDevices": [{ "macaddress": "88:DC:96:69:E8:71", "locationId": { "type": "locallocationid", "id": -1 } }, { "macaddress": "88:B1:E1:A0:1E:BF", "locationId": { "type": "locallocationid", "id": 0 } }, { "macaddress": "00:11:74:D4:B1:9F", "locationId": { "type": "locallocationid", "id": 0 } }, { "macaddress": "00:11:74:86:28:7F", "locationId": { "type": "locallocationid", "id": 0 } } ], "defaultOnLocations": [{ "type": "locallocationid", "id": 0 }] }