VMware Cloud Community
derevan007
Contributor
Contributor
Jump to solution

Reset VM MAC Address with VCD API

Is it possible to achieve the same functionality as the VCD UI where for the properties of a VM, you can go to the MAC Address dropdown and select "Reset". After the VM is updated, it has a new MAC address. I was not able to achieve this from the API using the following edit link.

api/v1.0/vApp/vm-2008703626/networkConnectionSection

and passing <MACAddress>Reset</MACAddress>

What is the UI doing behind the scenes? Can the same be accomplished via API?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
rkamal
VMware Employee
VMware Employee
Jump to solution

Hi,

Try not sending this element at all. This would reset the Mac Address.

<MACAddress>Reset</MACAddress>

Regards,

Rajesh Kamal.

View solution in original post

0 Kudos
2 Replies
rkamal
VMware Employee
VMware Employee
Jump to solution

Hi,

Try not sending this element at all. This would reset the Mac Address.

<MACAddress>Reset</MACAddress>

Regards,

Rajesh Kamal.

0 Kudos
derevan007
Contributor
Contributor
Jump to solution

Well, that was too easy. I had tried blank, but not removing it altogether! Works like a champ!

0 Kudos