Host Network System Remove Virtual Nic
Removes a virtual host/VMkernel network adapter.
Required privileges: Host.Config.Network
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case HostNetworkSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"RemoveVirtualNicRequestType Object"
device
No Content
NotFound: if the virtual network adapter cannot be found.
HostConfigFault: for all other configuration failures.
MethodDisabled: if the host's current flavor of partial maintenance mode has been configured to block this operation.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostNetworkSystem/{moId}/RemoveVirtualNic