vmware/pyvmomi-community-samples

How do I retrieve a key of device after creation?

Open

#629 建立於 2020年2月19日

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)Python (914 fork)batch import
help wanted

倉庫指標

Star
 (972 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南