Skip to main content

Get configuration variable

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

Gets a dynamic configuration variable by name.

note

This API is unavailable in the hosted version of Vault.

The variables that can be obtained are:

  • log_level

The role that performs this operation must have the CapConfvarReader 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.

Query parameters

  • custom_audit - string

    Custom audit information to be included in the audit log.

Possible responses

The request is successful.

object required*
  • name - string required*

    The name of the configuration variable.

  • value required*

    The value of the configuration variable.

  • default_value required*

    The default value of the configuration variable.

Example
{
"name": "log_level",
"value": null,
"default_value": null
}

Try the API

Authorization

Path parameters

Query parameters

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

Code examples

Example