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 Method

URL

GET

https://api.netux.com/api/v2.0/device_groups/<device_group_key>/devices/<device_key>/

Parámetros de ruta

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 ~

Parámetros de consulta

Parameter

Type

Use

Description

token

String

Authentication

Authentication Token can optionally be sent as a query parameter.

Cabecera

Parameter

Required?

Description

X-Auth-Token

Yes

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