/sys/plugins/runtimes/catalog
The /sys/plugins/runtimes/catalog
manages plugin runtimes in your Vault catalog by reading, registering,
updating, and removing plugin runtime information. Plugin runtimes must be registered before use, and
once registered, backends can use the plugin runtime by referencing them when registering a plugin.
LIST plugin runtimes
The list endpoint returns a list of the plugin runtimes in the catalog.
sudo
required – This endpoint requiressudo
capability in addition to any path-specific capabilities.
Method | Path |
---|---|
LIST | /sys/plugins/runtimes/catalog |
GET | /sys/plugins/runtimes/catalog |
LIST | /sys/plugins/runtimes/catalog?type=:type |
GET | /sys/plugins/runtimes/catalog?type=:type |
Parameters
type
(string: <required>)
– Specifies the plugin runtime type to list. Currently only accepts "container".
Sample request
Sample response
Register plugin runtime
The registration endpoint registers a new plugin runtime, or updates an existing one with the supplied type and name.
sudo
required – This endpoint requiressudo
capability in addition to any path-specific capabilities.
Method | Path |
---|---|
POST | /sys/plugins/runtimes/catalog/:type/:name |
Parameters
type
(string: <required>)
– Specifies the plugin runtime type. Currently only accepts "container".name
(string: <required>)
– Part of the request URL. Specifies the plugin runtime name. Use the runtime name to look up plugin runtimes in the catalog.oci_runtime
(string: <optional>)
– Specifies OCI-compliant container runtime to use. Default is "runsc", gVisor's OCI runtime.cgroup_parent
(string: <optional>)
– Specifies the parent cgroup to set for each container. Use the cgroup to control the total resource usage for a group of plugins.cpu_nanos
(int: <optional>)
– Specifies cpu limit to set per container in billionths of a CPU. Defaults to no limit.memory_bytes
(int: <optional>)
– Specifies memory limit to set per container in bytes. Defaults to no limit.
Sample payload
Sample request
Read plugin runtime
The read endpoint returns the configuration data for the plugin runtime with the given type and name.
sudo
required – This endpoint requiressudo
capability in addition to any path-specific capabilities.
Method | Path |
---|---|
GET | /sys/plugins/runtimes/catalog/:type/:name |
Parameters
type
(string: <required>)
– Specifies the type of this plugin runtime. Currently only accepts "container".name
(string: <required>)
– Part of the request URL. Specifies the name of the plugin runtime to retrieve.
Sample request
Sample response
Remove plugin runtime from catalog
The remove endpoint removes the plugin runtime with the given type and name. Note that the request will fail if any registered plugin references the plugin runtime.
sudo
required – This endpoint requiressudo
capability in addition to any path-specific capabilities.
Method | Path |
---|---|
DELETE | /sys/plugins/runtimes/catalog/:type/:name |
Parameters
type
(string: <required>)
– Specifies the type of this plugin runtime. Currently only accepts "container".name
(string: <required>)
– Part of the request URL. Specifies the name of the plugin runtime to delete.
Sample request