ansible-collections / community.vmware

Ansible Collection for VMware
GNU General Public License v3.0
351 stars 337 forks source link

Support for vSphere Lifecycle Manager-Images #1005

Open pugnacity opened 3 years ago

pugnacity commented 3 years ago
SUMMARY

Since vSphere 7 VMware has a new feature called vSphere Lifecycle Manager-Images, those images are cluster specific. This feature replaces more or less the old VMware Update Manager.

ISSUE TYPE
COMPONENT NAME

vmware_cluster.py

ADDITIONAL INFORMATION

Create Cluster PowerCLI Reference

The newest options are:

mariolenz commented 3 years ago

We need an "official" API to implement this, but I'm unable to find one.

Btw: PowerCLI implements some things that aren't officially documented. For example, there is a PowerCLI cmdlet to run esxcli on a host. As far as I know, there is no official API to do this.

I also think that there's no (documented) API to manage images.

@sky-joker @Tomorrow9 I might be wrong here. Do you know if there's an official API to manage those VUM / Lifecycle Manager cluster images?

pugnacity commented 3 years ago

@mariolenz the API is documented here: https://developer.vmware.com/docs/vsphere-automation/latest/esx/settings/

sky-joker commented 3 years ago

Thanks, @pugnacity for requesting a new feature and providing the documentation.

The feature is provided by vSphere REST API, so maybe it's better to request to vmware_rest than here. https://github.com/ansible-collections/vmware.vmware_rest

The repository has been providing the modules for vSphere REST API.

CC: @goneri

mariolenz commented 3 years ago

the API is documented here: https://developer.vmware.com/docs/vsphere-automation/latest/esx/settings/

Ah, yes. I think that's why I didn't find this. This collection mainly uses the (old) SOAP API and I was looking there.

Since this feature is provided by the newer REST API, I agree with @sky-joker that it would be better to open a feature request in vmware.vmware_rest. As the name suggest, they specialize in the REST API there ;-)

mariolenz commented 11 months ago

I think this is quite similar to #1889