is_authenticated
Test if the vault client currently holds a vault token. This method does not verify the token - only test that is present.
Usage:
is_authenticated()
set_token
Set a token within the client
Usage:
set_token(token, verify = FALSE, quiet = FALSE)
Arguments:
token
: String, with the new vault client token
verify
: Logical, indicating if we should test that the token is valid. If TRUE
, then we use $verify_token()
to test the token before setting it and if it is not valid an error will be thrown and the token not set.
quiet
: Logical, if TRUE
, then informational messages will be suppressed.
verify_token
Test that a token is valid with the vault. This will call vault's /sys/capabilities-self
endpoint with the token provided and check the /sys
path.
Usage:
verify_token(token, quiet = TRUE)
Arguments:
token
: String, with the vault client token to test
quiet
: Logical, if TRUE
, then informational messages will be suppressed.
server_version
Retrieve the vault server version. This is by default cached within the client for a session. Will return an R numeric_version
object.
Usage:
server_version(refresh = FALSE)
Arguments:
GET
Send a GET
request to the vault server
Usage:
GET(path, ...)
Arguments:
path
: The server path to use. This is the "interesting" part of the path only, with the server base url and api version information added.
...
: Additional httr
-compatible options. These will be named parameters or httr
"request" objects.
LIST
Send a LIST
request to the vault server
Usage:
LIST(path, ...)
Arguments:
path
: The server path to use. This is the "interesting" part of the path only, with the server base url and api version information added.
...
: Additional httr
-compatible options. These will be named parameters or httr
"request" objects.
POST
Send a POST
request to the vault server
Usage:
POST(path, ...)
Arguments:
path
: The server path to use. This is the "interesting" part of the path only, with the server base url and api version information added.
...
: Additional httr
-compatible options. These will be named parameters or httr
"request" objects.
PUT
Send a PUT
request to the vault server
Usage:
PUT(path, ...)
Arguments:
path
: The server path to use. This is the "interesting" part of the path only, with the server base url and api version information added.
...
: Additional httr
-compatible options. These will be named parameters or httr
"request" objects.
DELETE
Send a DELETE
request to the vault server
Usage:
DELETE(path, ...)
Arguments:
path
: The server path to use. This is the "interesting" part of the path only, with the server base url and api version information added.
...
: Additional httr
-compatible options. These will be named parameters or httr
"request" objects.