Description Usage Arguments Value References See Also
View source: R/influxdb_authentication_and_authorization.R
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
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)
|
con |
An |
username |
The username to be used. |
password |
The password to be used. |
privilege |
Specifies the user privilege. |
db |
Sets the target database. |
A tibble containing post results in case of an error (or message).
Otherwise NULL (invisibly). show_users()
and show_grants()
return a tibble.
https://docs.influxdata.com/influxdb/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.