Obtener Device de un Device Group

Este endpoint devuelve un Device específico de un Device Group.

Solicitud HTTP

Para obtener un solo Device de un Device Group, haz una petición GET a la siguiente URL:

HTTP MethodURL
GEThttps://api.netux.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/

Parámetros de ruta

ParameterTypeDescription
device_group_keyStringThe id or label of the Device Group, label should use the prefix ~
device_keyStringThe id or label of the Device, label should use the prefix ~

Parámetros de consulta

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.

Cabecera

ParameterRequired?Description
X-Auth-TokenYesAuthentication Token of account
$ curl -X GET 'https://api.netux.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'

Respuesta

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."
}