Skip to content

Support filtering by content type in ListDatastoreFiles() #2291

@666Goofy666

Description

@666Goofy666

Hello, thanks for all the work — this tool is amazing!

Is your feature request related to a problem? Please describe.
I’m experiencing an issue where listing storage files takes too long, and the PVE API times out after 30 seconds.
When I try to upload an ISO file with proxmox_virtual_environment_file, I get the error: “error listing files from datastore.”
This issue seems similar to: #1312

Describe the solution you'd like
I’d like the ListDatastoreFiles() function to include a filter for the content type (e.g., ISO).
This way, the API call won’t need to list all file types, which should make it much faster.
This approach is described here

Describe alternatives you've considered
I haven’t found a good alternative solution yet.

I hope I made myself clear — I’m not a developer, so sorry if I didn’t explain everything perfectly.
Please don’t hesitate to ask if you need more information.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Enhancements

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions