lock_workspace
Prevent changes to infrastructure by locking a workspace. Use this tool to halt new runs during maintenance or manual adjustments without interrupting active operations.
Instructions
Lock a workspace.
Locks a workspace to prevent runs from being queued. This is useful when you want to prevent changes to infrastructure while performing maintenance or making manual adjustments. Locking a workspace does not affect currently running plans or applies.
API endpoint: POST /workspaces/{workspace_id}/actions/lock
Args: workspace_id: The ID of the workspace to lock (format: "ws-xxxxxxxx") reason: Optional reason for locking
Returns: The workspace with updated lock status and related metadata
See: docs/tools/workspace.md for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
reason | No | ||
workspace_id | Yes |