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

Get Device Template References in Device Templates

Description Provides device template references in the Wireless Manager.
Who Can Execute? Superuser, Administrator, and Operator.
Syntax
GET <Base_URL>/configuration/devicetemplates/{templateid}/references
Sample code
GET https://training.mojonetworks.com/new/webservice/V5/configuration/devicetemplates/5
/references
Request Body This API call does not require any request body parameters.
Response Body If the API call is successful, the HTTP response status is 200.
The response body contains the references of the device template in the Wireless Manager.
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
	}]
}