Get the devices or for a tenant.

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.

Value

A data.frame if parse_json = TRUE, and a character string otherwise.

Details

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.

References

Cumulocity Inventory API

Examples

if (FALSE) { get_devices() }