Skip to main content

Set configuration variable

post
/api/pvlt/1.0/system/confvar/{name}

Sets a dynamic configuration variable by name.

note

This API is unavailable in the hosted version of Vault.

The variables that can be set are:

  • log_level which can take the values of debug, info, warn, and error.
  • trace_sql Indicates whether sql logs are enabled. values are true or false.

The role that performs this operation must have the CapConfvarWriter capability. See Access control for more information about how capabilities are used to control access to operations.

Request

Path parameters

  • name - string required*

    The name of the configuration variable.

Request body

Value of the configuration.

object required*
  • value - string required*

    The value of the configuration variable.

Example
{
"value": "string"
}

Possible responses

The request is successful.

Try the API

Authorization

Path parameters

Request body

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example