Plan
The result of a dry run or guv plan. plan_hash is a SHA-256 over the canonical changes and the live state version; apply must present the same hash.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
plan_hash * |
string | |
dry_run * |
boolean | |
summary |
string | |
changes * |
array of PlanChange | |
cost * |
CostDelta | |
policy * |
PolicyDecision | |
warnings |
array of PlanWarning | |
layout |
PlanLayout | Presentation-only layout; it never deploys and costs nothing. |
requires_approval |
boolean | |
expires_at |
string (date-time) | The plan hash is accepted until this time. |
* always present
Example
Section titled “Example”{ "plan_hash": "sha256:9f2c1e0b7a4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a0f9e8d7c6b5a49", "dry_run": true, "summary": "1 to update. +£5.00/month at current usage.", "changes": [ { "action": "update", "resource": { "type": "service", "id": "svc_01jbx2m9k7q4r8t5v6w3y0z1sv", "name": "web" }, "environment": "production", "summary": "Raise web memory limit from 1 GB to 2 GB", "diff": [ { "path": "/resources/memory_mb", "before": 1024, "after": 2048 } ], "destructive": false, "requires_approval": true, "reason": "production requires approval for changes made by agents" } ], "cost": { "current_monthly": { "amount": "18.20", "currency": "GBP", "display": "£18.20" }, "projected_monthly": { "amount": "23.20", "currency": "GBP", "display": "£23.20" }, "delta_monthly": { "amount": "5.00", "currency": "GBP", "display": "£5.00" }, "confidence": "medium" }, "policy": { "decision": "approval_required", "reasons": [ { "code": "environment_protected", "message": "production requires approval for changes made by agents", "policy": "guv.environment.protection" } ], "approver_roles": [ "owner", "admin" ] }, "requires_approval": true, "expires_at": "2026-10-23T15:00:00Z"}Used by
Section titled “Used by”- Sign out a session
- Remove a passkey
- Create a personal access token
- Revoke a personal access token
- Create a workspace
- Close a workspace
- Invite a member
- Remove a member or cancel an invitation
- Create an agent token
- Revoke an agent token
- Create a project
- Delete a project
- Create an environment
- Delete an environment
- Create a service
- Delete a service from every environment
- Restart the running deployment
- Deploy
- Roll back to this deployment
- Unset a plain variable
- Unset a secret
- Add a custom domain
- Remove a domain
- Create a database
- Change plan, storage, extensions, masking or access
- Delete a database (7-day soft delete)
- Cancel a pending deletion
- Rotate credentials (rolling, dual-password window)
- Branch a database (copy-on-write clone, masked)
- Delete a branch
- Take a backup now
- Restore from a backup or point in time
- Create a volume
- Grow, change HA, or attach to a service
- Delete a volume (7-day soft delete)
- Plan guv.yaml against live state
- Apply a plan
- Create a spend cap
- Remove a spend cap
- Apply a finding’s one-click fix (or open an AI fix PR)
- Create a webhook
- Delete a webhook
- Create a project from a template and deploy it
- Create an alert rule
- Delete an alert rule