Skip to contents

Fleet device management API wrapper for R.

FleetDM is a centralized MDM open-source solution for gathering hosts data via osquery and presenting it in normalized table view.

This package is inspired by osqueryr R package.

Installation

You can install the development version of aiRfleet from GitHub with:

# install.packages("pak")
pak::pak("i2z1/airfleet")

or

# install.packages("devtools")
devtools::install_github("i2z1/airfleet")

Usage

Get Fleet hosts as dataframe

flt_con <- flt_connection(host = Sys.getenv("FLEET_HOST"),
                          apitoken = Sys.getenv("FLEET_TOKEN"))

hosts_df <- get_hosts(flt_con)

List Fleet queries

queries_df = query_list(flt_con)

Create query

query_create(flt_con, name = "users_qry", query = "SELECT * from users;")

Delete query

query_delete(flt_con, id=51)