Detach a network from a VM
Changed onDetaches a virtual network (VLAN) from a Virtual Machine. Work runs asynchronously and returns 202 Accepted. A running VM restarts so the NIC is removed from the guest; a VM that is not running loses it when it next starts.
On VMs created with apply_network_on_boot enabled, that boot also removes the NIC's configuration. If you configured the NIC yourself, remove that configuration before detaching, as described in Private networks: configure the OS.
Some virtual machines run on older infrastructure that doesn't support network attachments. On those VMs, attaching or detaching a network returns 422 VIRTUAL_NETWORK_ATTACHMENT_UNSUPPORTED and leaves the VM unchanged.
Request
- Base URL: https://api.latitude.sh
- URL: https://api.latitude.sh/virtual_machines/{virtual_machine_id}/network_attachments/{id}
- Auth: API key in header Authorization
Path parameters
The VLAN id_hash to detach
Response
Accepted
Changes
- info
added the non-success response with the status
- info