create_user {influxdbr} | R Documentation |
Influx authentication and authorization
Description
The folllowing functions are convenient wrappers around influx_post
and influx_query
(show_users and show grants).
-
create_user()
: creates a new user -
drop_user()
: drops an existing user -
grant_privileges()
: grant privileges to an existing users -
revoke_privileges()
: revoke privileges to an existing users -
show_users()
: show all users -
show_grants()
: show grants of an user
Usage
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 |
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
[Package influxdbr version 0.14.2 Index]