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).

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 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


[Package influxdbr version 0.14.2 Index]