列出 Datastore
list_datastoresLists vCenter datastores with capacity, free space, used percentage, and high-utilization counts, sorted by utilization to support storage capacity monitoring.
Instructions
列出 vCenter 中的 Datastore(儲存),附上算好的容量與使用率。
回傳: total: Datastore 數量(直接引用,不要自己數)。 total_capacity_GiB / total_free_GiB / overall_used_pct: 全部合計。 used_pct_at_least_90 / used_pct_at_least_80: 使用率達 90%/80% 以上的數量。 datastores: 每個 datastore 的 id、名稱、類型、capacity/free_space(位元組)、 capacity_GiB、free_GiB、used_pct(已用百分比),已依 used_pct 由高到低排序 (容量為 0 或未知者排最後)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_datastores"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| sorted_by | Yes | ||
| datastores | Yes | ||
| total_free_GiB | Yes | ||
| overall_used_pct | Yes | ||
| total_capacity_GiB | Yes | ||
| used_pct_at_least_80 | Yes | ||
| used_pct_at_least_90 | Yes |