apnex / vmw-cli

CLI and API for programmatic access to my.vmware.com
MIT License
30 stars 9 forks source link

Download specific versions of products #1

Open laidbackware opened 4 years ago

laidbackware commented 4 years ago

Would is be possible to download specific patch versions of a product? For example NSX-T 3.0.1. Currently when running vmw-cli ls vmware_nsx_t_data_center/3_x/PRODUCT_BINARY is only shows version 3.0.2, with no way to specify the another version.

apnex commented 4 years ago

This is not currently possible - but it is something I've been looking into. The challenge here is that vmware_nsx_t_data_center is a loose (solution) bundling of binaries from multiple products - so you would not be able to select just say - nsx-unified-manager for a different version. The solution here is to have an adjunct indexing mechanism that is anchored on each individual product component - but this requires additional indexing logic. All doable however - can you help me and suggest how you might like the CLI command to look like when selecting version 3.0.1 of nsx?

remkolodder commented 2 years ago

hi

May I suggest something like:

vmcli -f <category>/[<version>]/[<product_category>]/<filename>/<file_version>

where -f implies that it should look for the specific file in the path with version "file_version". This way it looks similar to the rest of the commands but only has a file version included and the -f tells it to look for the file instead of an overview of the files IN the path.

Version and product_category as optional, as it always selects the latest version and product_binary as default category.

Thanks, Remko