Update NIC Device
Updates a network adapter in the VM
ID of VM
Index of VM network adapter
Parameters of network adapter to update to
{
"type": "string",
"vmnet": "string"
}
The network type of network adapter
The vmnet name, it should only be used while type is custom
Information of the network adapter updated to
"NICDevice Object"
Index of Network Adapters
The network type of network adapter
The vmnet name
Mac address
Invalid parameters
"ErrorModel Object"
code
message
Authentication failed
"ErrorModel Object"
code
message
Permission denied
"ErrorModel Object"
code
message
No such resource
"ErrorModel Object"
code
message
Content type was not supported
"ErrorModel Object"
code
message
Server error
"ErrorModel Object"
code
message
Unexpected error
"ErrorModel Object"
code
message
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/vnd.vmware.vmw.rest-v1+json' -d '{"type:"string","vmnet:"string"}' https://{api_host}/api/vms/{id}/nic/{index}