browse_datastore
List files in any datastore directory by path and glob pattern, returning complete inventory rows with totals. Find arbitrary files or filter deployable images like OVA/ISO.
Instructions
[READ] Browse files in a datastore directory.
Use this for arbitrary files or a glob; prefer scan_datastore_images for deployable images. ds_name comes from list_all_datastores.
Returns the list envelope: 'items' holds one row per file, and 'returned'/'total'/'truncated' state whether the listing is complete. All matches are returned, so truncated is always false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Subdirectory path (empty for root). | |
| target | No | Optional vCenter/ESXi target name from config. | |
| ds_name | Yes | Datastore name. | |
| pattern | No | Glob pattern to filter files (e.g. "*.ova", "*.iso"). | * |