Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
CLICommands

orl authz policy validate

Validate a policy without saving it (needs `orl auth login`), part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl authz policy validate --kind <kind> --name <name>

Returns line and column diagnostics and the lockout check for a candidate policy. Requires a signed-in session and the permission saving it would need.

Flags

FlagTypeRequired
--cedar-textstringno
--descriptionstringno
--enabledboolnoDefaults to true.
--endpoints[]stringno
--guardrailkey_networks, everyone_networks, model_allowlistno
--ip-ranges[]stringno
--kindguardrail, customyes
--models[]stringno
--namestringyes
--bodystringnoa JSON object of request body fields, merged under any of this command's own flags that are also set, e.g. {"key":"value"}
--body-filestringnoread the --body JSON object from a file (- for stdin)

This wraps the validatePolicy API operation.

On this page