Get disk usage
get_diskRetrieve your account's disk state: included, purchased, and used bytes, plus monthly cost. Monitor storage usage and expenses.
Instructions
Get the authenticated account's disk state (included, purchased, used bytes, and monthly cost).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| used_bytes | Yes | ||
| total_bytes | Yes | ||
| trash_bytes | No | ||
| usage_stale | No | True when a mount is holding one of the account's disks but has not reported its usage within the writer-lease lifetime. used_bytes is then the last figure that mount reported, not the current one — treat it as a floor and say so rather than quoting it as the account's usage. | |
| warning_level | Yes | ||
| included_bytes | Yes | ||
| monthly_credits | Yes | ||
| purchased_bytes | Yes | ||
| usage_observed_at | No | When a mount last reported the used figure. Present only while a mount is holding one of the account's disks; when none is, nothing can be changing the figure and there is no reporting clock to quote. | |
| storage_credits_per_gb | Yes |