lock_adom
Lock an ADOM for editing in workspace mode to prevent conflicts from multiple administrators making simultaneous changes.
Instructions
Lock an ADOM for editing (workspace mode).
In workspace mode, ADOMs must be locked before making changes. This prevents conflicts from multiple administrators editing the same ADOM simultaneously.
Args: adom: ADOM name to lock
Returns: dict: Lock result with keys: - status: "success" or "error" - message: Status or error message
Example: >>> result = await lock_adom("root") >>> if result["status"] == "success": ... # Make changes... ... await commit_adom("root") ... await unlock_adom("root")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||