/sys/raw
The /sys/raw
endpoint is used to access the raw underlying store in Vault.
This endpoint is off by default. See the Vault configuration documentation to enable.
Read raw
This endpoint reads the value of the key at the given path. This is the raw path in the storage backend and not the logical path that is exposed via the mount system.
GET
/sys/raw/:path
Parameters
path
(string: <required>)
– Specifies the raw path in the storage backend. This is specified as part of the URL.compressed
(bool: true)
- Attempt to decompress the value.encoding
(string: "")
- Specifies the encoding of the returned data. Defaults to no encoding. "base64" returns the value encoded in base64.
Sample request
Sample response
Create/Update raw
This endpoint updates the value of the key at the given path. This is the raw path in the storage backend and not the logical path that is exposed via the mount system.
POST
/sys/raw/:path
Parameters
path
(string: <required>)
– Specifies the raw path in the storage backend. This is specified as part of the URL.value
(string: <required>)
– Specifies the value of the key.compression_type
(string: "")
- Create/update using the compressed form ofvalue
. Supportedcompression_type
values aregzip
,lzw
,lz4
,snappy
, or""
.""
means no compression is used. If omitted and key already exists, update uses the same compression (or no compression) as the existing value.encoding
(string: "")
- Specifies the encoding ofvalue
. Defaults to no encoding. Use "base64" ifvalue
is encoded in base64.
Sample payload
Sample request
List raw
This endpoint returns a list keys for a given path prefix.
This endpoint requires 'sudo' capability.
LIST
/sys/raw/:prefix
GET
/sys/raw/:prefix?list=true
Sample request
Sample response
Delete raw
This endpoint deletes the key with given path. This is the raw path in the storage backend and not the logical path that is exposed via the mount system.
DELETE
/sys/raw/:path
Parameters
path
(string: <required>)
– Specifies the raw path in the storage backend. This is specified as part of the URL.
Sample request
Last updated