vmware/pyvmomi-community-samples

How do I retrieve a key of device after creation?

Aperta

#629 aperta il 19 feb 2020

 (0 commenti) (1 reazione) (0 assegnatari)Python (914 fork)batch import
help wanted

Metriche repository

Star
 (972 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello,

Let's suppose I used script add_nic_to_vm.py to create a new NIC. How am I to retrieve the key of the newly created device in order to, for example, delete it later? Should I after successful creation search through all the VM's devices to find my new one, based on some other parameters, or there is an easier way?

Thanks.

Guida contributor