Para obtener un solo Device de un Device Group, haz una petición GET a la siguiente URL:
HTTP Method | URL |
---|
GET | https://api.netux.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/ |
Parameter | Type | Description |
---|
device_group_key | String | The id or label of the Device Group, label should use the prefix ~ |
device_key | String | The id or label of the Device, label should use the prefix ~ |
Parameter | Type | Use | Description |
---|
token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
$ curl -X GET 'https://api.netux.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
Devuelve un objeto Device con el Device solicitado del Device Group proporcionado.
{
"url": "https://api.netux.com/api/v2.0/devices/5e1c8d9789f9bd33017e05e5",
"id": "5e1c8d9789f9bd33017e05e5",
"label": "test",
"name": "test"
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}