Obtener Device Group

Este endpoint devuelve un Device Group específico.

Solicitud HTTP

Para obtener un solo 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>/

Parámetros de ruta

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

Parámetros de consulta

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter
fieldsComma separated listDynamic FieldsSpecify the fields that should be obtained in the response object

Cabecera

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

Respuesta

Devuelve un objeto Device Group con el Device Group solicitado.

{
    "url": "https://api.netux.com/api/v2.0/device_groups/5e1c8daf89f9bd33017e05e9",
    "id": "5e1c8daf89f9bd33017e05e9",
    "label": "group-test",
    "name": "Group Test",
    "organization": null,
    "devices": "https://api.netux.com/api/v2.0/device_groups/5e1c8daf89f9bd33017e05e9/devices",
    "devicesNumber": 1,
    "createdAt": "2020-01-13T15:33:03.655965Z"
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}