Skip to main content

get_policy

Function get_policy 

Source
async fn get_policy(
    __arg0: State<Arc<SharedState>>,
    __arg1: Path<String>,
) -> impl IntoResponse
Expand description

GET /api/policies/{name} — returns the named policy as JSON.

Errors: 404 Not Found if no policy with that name exists.