Skip to main content

Module plugin_configs

Module plugin_configs 

Source
Expand description

Admin API endpoints for plugin config CRUD. Mutations rewrite the in-memory gateway config and trigger validation + recompilation of every policy (plugin configs are resolved at compile time), so a breaking edit or a delete-while-referenced is rejected with 400 before anything changes.

Functionsยง

delete_plugin_config ๐Ÿ”’
DELETE /api/plugin-configs/{name} โ€” removes the named definition, then revalidates and recompiles. Returns {"status": "deleted"} on success.
get_plugin_config ๐Ÿ”’
GET /api/plugin-configs/{name} โ€” returns the named definition as JSON.
list_plugin_configs ๐Ÿ”’
GET /api/plugin-configs โ€” returns all plugin config definitions as a JSON array.
router
Builds the router for /api/plugin-configs.
update_plugin_config ๐Ÿ”’
PUT /api/plugin-configs/{name} โ€” upserts a definition from the JSON body (the path name overrides any name in the body), then revalidates and recompiles all route graphs โ€” every policy using this plugin config picks up the change atomically. Returns {"status": "updated"} on success.