Creates a resource plan
Validates a provisioning plan for a single resource by computing the diff between the desired and current role state. The plan is session-audited and returns a plan ID (SID) that can be referenced when applying.
Documentation Index
Fetch the complete documentation index at: https://mintlify.hoop.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The resource name
Body
The request body
The list of privileges to grant on all tables in each scope. Supported values: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, EXECUTE.
["SELECT", "INSERT"]A short label used to derive the generated postgres role name (e.g. "ro", "rw", "analyst"). The actual role created in postgres is a deterministic slug of the form hoopdev_.
"ro"
The list of databases and schemas to apply privileges to, formatted as "database" or "database.schema". If the schema is omitted, privileges are applied to the public schema of that database.
["mydb", "otherdb.public"]Role management mode. "managed" creates and fully owns the postgres role (password managed by hoop). "external" attaches the role as a member of an existing parent role specified by source_role.
managed, external "managed"
The resource name to plan provisioning for. Required for batch requests.
"my-postgres"
When true, rotates the role's password on this plan run. Only takes effect if the role already exists; new roles always receive a freshly generated password regardless of this flag.
false
An existing postgres role whose privileges the new role will inherit via membership. Only relevant when type is "external"; ignored for "managed".
"pg_read_all_data"
Response
OK
Error message populated when status is "failed"; empty on success
"failed retrieving resource: connection refused"
The resource name this plan result is for
"my-postgres"
The generated postgres role name derived from the resource name and role label (format: hoopdev_<8-char-hash>).
"hoopdev_my_postgres_ro_ab3c1f7e"
The session ID for tracking and auditing this plan execution
"5701046A-7B7A-4A78-ABB0-A24C95E6FE54"
Status of the plan execution
success, failed "success"