Get the devices for a tenant.
If num_rows = NULL (default), all devices are returned.
If parse_json is TRUE, the JSON object is parsed using jsonlite::fromJSON
before being returned. The data is converted to a single flattened data frame.
If parse_json is FALSE, the JSON object is returned as a JSON string.