Skip to main content

Module supernodes

Module supernodes 

Source
Expand description

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

Functionsยง

delete_supernode ๐Ÿ”’
DELETE /api/supernodes/{name} โ€” removes the named definition, then revalidates and recompiles. Returns {"status": "deleted"} on success.
get_supernode ๐Ÿ”’
GET /api/supernodes/{name} โ€” returns the named definition as JSON.
list_supernodes ๐Ÿ”’
GET /api/supernodes โ€” returns all supernode definitions as a JSON array.
router
Builds the router for /api/supernodes.
update_supernode ๐Ÿ”’
PUT /api/supernodes/{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 supernode picks up the change atomically. Returns {"status": "updated"} on success.