get_devices: Get the devices or for a tenant.

View source: R/get_devices.R

get_devicesR 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

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

## Not run: 
get_devices()

## End(Not run)


SoftwareAG/cumulocityr documentation built on Sept. 19, 2023, 11:46 a.m.