Skip to main content

What You’ll Accomplish

Runbooks let you create reusable templates for common operations. Instead of typing the same queries or commands repeatedly, you can:
  • Create parameterized templates stored in Git
  • Share approved procedures across your team
  • Enforce input validation and safe defaults
  • Maintain an audit trail of every execution

How It Works

1

Create Template

Write a runbook template with placeholders for parameters
2

Store in Git

Commit the template to your Git repository
3

Configure Hoop

Point Hoop to your repository
4

Execute

Users select the runbook, fill in parameters, and run

Example Workflow

  1. DBA creates a runbook for looking up customer data
  2. Template stored in runbooks/customer-lookup.runbook.sql
  3. Support team selects the runbook, enters customer ID
  4. Query executes with proper validation and audit logging

Integration with Other Features

FeatureHow It Works with Runbooks
Access RequestsRunbook execution can require approval
GuardrailsRules apply to runbook-generated queries
Live Data MaskingResults are masked automatically
Session RecordingAll executions are recorded
Parallel ModeRun runbooks across multiple resource roles

Best Practices

Validate Inputs

Always use pattern for user inputs to prevent injection

Add Descriptions

Every parameter should have a clear description

Set Defaults

Provide sensible defaults where appropriate

Version Control

Store runbooks in Git for history and review

Ready to set it up? The Runbooks configuration guide covers connecting a Git repository, creating Runbooks rules, the template engine and functions, hooks, examples, and troubleshooting.

Next Steps

Configuration Guide

Detailed Git setup and template syntax

Parallel Mode

Run runbooks across multiple resource roles

Access Requests

Require approval for runbook execution

Session Recording

Audit runbook executions