security_change_plan
Preview a SingleStore security change before executing it: see exact statements, warnings, blockers, confirmation requirements, and privilege availability without running anything.
Instructions
Read-only preview of one change: the exact statements (any password masked), warnings, blockers (lock-out,
last admin, missing objects) and whether the user must type the object's name to confirm. Runs nothing.
Works without the change privileges (allowed says whether the connected user may run it).
Args:
action: {"action": one of create_user, drop_user, grant, revoke, revoke_all, create_role, drop_role,
create_group, drop_group, grant_role, revoke_role, grant_group, revoke_group, create_pool, alter_pool,
drop_pool, set_default_pool, grant_pool, revoke_pool, change_password, lock_user, unlock_user,
set_login_policy, set_require, grant_view, plus its fields: user, host, role, group,
grantee_type ("user"/"role"), privileges, database, table, with_grant_option, grant_option, pool,
settings, default_pool, failed_login_attempts, password_lock_time (seconds; both 0 = off),
require ("SSL"/"NONE"), columns and view (grant_view: a view with these columns of database.table,
SELECT granted on it – 9.0 has no column-level grants)}. Never a password.
pending: The changes already in the script basket (same shape), for a change that needs objects they
create (the plan then says ``needs_script``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| pending | No |