get_devices {cumulocityr} | R Documentation |
Get the devices or for a tenant.
Description
Get the devices or for a tenant.
Usage
get_devices(num_rows = NULL, parse_json = TRUE)
Arguments
num_rows |
The number of records to return. |
parse_json |
If TRUE, parse the JSON object into a data frame. |
Details
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.
Value
A data.frame
if parse_json = TRUE
,
and a character string otherwise.
Author(s)
Dmitriy Bolotov
References
Examples
get_devices()
[Package cumulocityr version 0.1.0 Index]