Get an organization rule
Available on OneCLI Cloud and self-hosted Enterprise. Requires the admin or owner role.
Authorizations
API key obtained from the dashboard or GET /user/api-key
Path Parameters
Response
Rule details
A policy rule. Custom (user-authored) rules carry their endpoint fields (hostPattern/pathPattern/method); app-permission rules (metadata.source: app_permission) omit them and are identified by metadata.provider + metadata.toolId.
Custom rules only; absent on app-permission rules.
Custom rules only; absent on app-permission rules.
Custom rules only; absent on app-permission rules.
GET, POST, PUT, PATCH, DELETE, null block, rate_limit, manual_approval, allow minute, hour, day, null Project lists include inherited organization rules; use this to tell them apart.
project, organization Set on rules generated by app permissions (source: app_permission, plus provider and toolId). Null for custom rules.