get_datastore_capacity
Check per-datastore capacity, free space, committed and provisioned GB, and overcommit risk to spot thin-provisioned datastores that can fill up while still showing free space.
Instructions
[READ] Per-datastore capacity with thin-provisioning over-commit.
Returns the list envelope with a real total: capacity_gb, free_gb,
committed_gb, provisioned_gb, used_pct, overcommit_pct, riskiest first. Adds the
risk signal list_all_datastores lacks — overcommit_pct over 100% means more
space is promised to VMs than physically exists, so a thin datastore can fill up
while still showing free space. Point-in-time.
Whose figure: view (vCenter / ESXi host / unknown) and view_note.
Provisioned space is summed by the endpoint over the VMs it has registered on
the datastore, so a vCenter and a directly-reached ESXi host can report
different provisioned_gb for one datastore — each row's vm_count says how
many VMs the figure covers, and vms_not_connected names those reported as
orphaned/inaccessible/disconnected (None = could not be read). The figures can
also differ with the same vm_count: each endpoint aggregates uncommitted
space itself.
Use this for the capacity view, then investigate_datastore to drill into a specific datastore's hosts, VMs and alarms. Reclaiming space (delete snapshots, storage vMotion) belongs to vmware-aiops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max datastore rows to return (None = all). | |
| target | No | vCenter/ESXi target from config (default if omitted). |