Generate a Terraform-style execution plan showing operations needed to apply the policy and store it as a saved plan. exact_apply_supported tells whether POST /plans/{id}/apply can execute this plan exactly. When it is false, apply the current state with POST /policies/{id}/apply.
Parameters
Policy ID (UUID)
Responses
OK
SavedPlanResponse · 13 fields
5 fields
create, update, delete, no-op
Human-readable change description
role, grant, policy, k8s-resource
SQL statement (if applicable)
Target resource (role name, database, etc.)
Always true for plan preview
5 fields
create, update, delete, no-op
Human-readable change description
role, grant, policy, k8s-resource
SQL statement (if applicable)
Target resource (role name, database, etc.)
Legacy fields for /:id/plan endpoint (old flow)
Fields for plan-preview endpoint (new flow)
5 fields
2 fields
{"create": 5, "update": 2, "delete": 1}
Effect of successful execution on inspected existing MariaDB databases and global privileges. Unknown assessments block confirmation. Sessions describes cached privilege protection over every execution prefix. Removed patterns change grant coverage for future databases, separately from the enumerated existing databases. Runtime failures require a fresh access check.
7 fields
preservedreducedunknownpreservedclosedunknownTrue when POST /plans/{id}/apply executes this saved plan exactly as stored. False when the apply refuses exact execution, for a group policy applied per member, a policy on the legacy shared Kubernetes RBAC profile or a target engine that stored no execution artifact. Apply the current state of the policy with POST /policies/{id}/apply instead.
Per-member policies the apply of this plan deletes after it binds a group itself (Kubernetes direct group RBAC), with the access each deletion revokes. The exact apply of this plan deletes no other member policy. Empty when the apply removes none.
4 fields
Name of the member. Empty when the member is unknown in the organization.
Identity the member policy grants access to.
The per-member policy the apply deletes.
The access the deletion revokes from the member.
3 fields
Where a row of a rule came from: written in the rule, materialized from its template, or imported from the live account at adoption or by the one-off import after an upgrade. An imported row is part of the desired state like any other row.
ruletemplateimportedConflict - the policy is in cleanup and read-only. Details.cleanup_task_id names the task. Or the group role name of a group rule is taken by a role Principal didn't create (code policy.group_role_taken, details.role names the role, detail and resolution come from the failure reason group_role_taken of ROLE_EXISTS)
Unprocessable Entity - the rule cannot be executed or planned on the target as written, for example a privilege on an object level that does not take it, Kubernetes guards that leave nothing to grant, or future objects with no known creators. Detail and field_errors name the fix Also when Principal doesn't manage the target of the rule or template (before v7.3 that answer was 403 authorization.denied).
Not Implemented - a rule uses a privilege the target engine does not support
Common errors: 400 401 403 404 429 503 504. They mean the same for every operation, see Errors.