Skip to content

Policies

Managing runtime policies and access to operator policy overrides.

all() -> list[dict] async

List all runtime policies in the cluster.

by_vhost(vhost: str) -> list[dict] async

List all runtime policies in a specific virtual host.

delete(vhost: str, policy: str) -> dict async

Delete a runtime policy.

detail(vhost: str, policy: str) -> dict async

Get details of an individual runtime policy.

set(vhost: str, policy: str, value: dict) -> dict async

Create or update a runtime policy.

Parameters:

Name Type Description Default
value dict

Dict with 'pattern' and 'definition' (mandatory), plus 'priority' and 'apply-to' (optional).

required