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

orl authz check-access

Check whether a principal may perform an action, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl authz check-access --action <action> --principal-id <principal-id> --principal-type <principal-type>

Evaluates one action for a member, service account or key of the organization and returns the decision, the layer that decided it and the deciding policies.

Flags

FlagTypeRequired
--actionstringyesAn action from the catalog, e.g. compute.create.
--endpoint-idstringnoThe dedicated endpoint the model is served on.
--modelstringnoThe model to check for inference.invoke.
--principal-idstringyesA user id, service account id or API key id of this organization.
--principal-typemember, service_account, api_keyyes
--source-ipstringnoEvaluate as if the request came from this address. Defaults to yours.
--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 checkAccess API operation.

On this page