create_user: Influx authentication and authorization

Description Usage Arguments Value References See Also

View source: R/influxdb_authentication_and_authorization.R

Description

The folllowing functions are convenient wrappers around influx_post and influx_query (show_users and show grants).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
create_user(con, username, password)

drop_user(con, username)

grant_privileges(con, privilege = c("READ", "WRITE", "ALL"), db,
  username)

revoke_privileges(con, privilege = c("READ", "WRITE", "ALL"), db,
  username)

show_users(con)

show_grants(con, username)

Arguments

con

An influx_connection object (s. influx_connection).

username

The username to be used.

password

The password to be used.

privilege

Specifies the user privilege.

db

Sets the target database.

Value

A tibble containing post results in case of an error (or message). Otherwise NULL (invisibly). show_users() and show_grants() return a tibble.

References

https://docs.influxdata.com/influxdb/

See Also

influx_connection


crab1234/influxdbr- documentation built on Jan. 12, 2020, 6:28 p.m.