browse_datastore
Browse files in a VMware datastore directory. Filter by path and glob pattern to locate specific files like ISOs or OVAs.
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.
Args: ds_name: Datastore name. path: Subdirectory path (empty for root). pattern: Glob pattern to filter files (e.g. ".ova", ".iso"). target: Optional vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| target | No | ||
| ds_name | Yes | ||
| pattern | No | * |