Create NIC Device
Creates a network adapter in the VM
ID of VM
Parameters of network adapter to create
{
"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 created
"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
Resource state conflicts
"ErrorModel Object"
code
message
Server error
"ErrorModel Object"
code
message
Unexpected error
"ErrorModel Object"
code
message
curl -X POST -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