Edit Storage
update_storageChange a storage volume's name, size, or usage warning settings. Preview new size and hourly price before confirming changes.
Instructions
Change a storage volume like the console's Edit: rename it (name), grow it (size_gb, in GiB) or set its
usage warning (usage_warning on/off, usage_warning_threshold 0-1). Pass only what changes; storage is the
pv_name from the storages tool.
Storage can grow but never shrink (storage_cannot_shrink), and growing raises its hourly price, which is billed
for as long as the volume exists.
With confirm=false (default) it only returns the estimate (new and current size and hourly price) and changes
nothing; call again with confirm=true after the user agreed. Growing runs asynchronously; renaming and the
usage warning apply right away.
Every write requires operation_id. Reuse the ID returned by the preview, or generate a UUID before the first call. Keep it for confirmation and all retries; a new ID means a new operation. After a timeout, check operation_status and resource state before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| confirm | No | ||
| size_gb | No | ||
| storage | Yes | ||
| workspace | No | ||
| operation_id | No | ||
| usage_warning | No | ||
| usage_warning_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||