get_devices: Get the devices or for a tenant.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/get_devices.R

Description

Get the devices or for a tenant.

Usage

1
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

Cumulocity Inventory API

Examples

1

cumulocityr documentation built on Oct. 30, 2019, 10:38 a.m.