Skip to main content

dtctl virtual-machine update-network

Usage​

dtctl virtual-machine update-network [flags]

Aliases​

ui

Description​

Update a virtual machine's network interface (its IP assignment, port security, or security groups), by port ID.

Example​

dtctl virtual-machine update-network --vm-id <vm-id> --port-id <port-id> --primary-ip auto

Flags​

OptionDescription
--port-id, -nPort ID of the interface to update (required)
--port-security-enabled, -eEnable port security on the interface
Default: true
--primary-ip, -pPrimary IP address, or 'auto' to assign one automatically (required)
--secondary-ips, -sComma-separated secondary IPs, or 'auto' for automatic assignment
--security-groups, -gComma-separated security group IDs to apply to the interface
--vm-id, -iID of the virtual machine (required)
CommandDescription
dtctl virtual-machine listList virtual machines
dtctl virtual-machine showShow a virtual machine
dtctl virtual-machine createCreate a virtual machine
dtctl virtual-machine update-nameRename a virtual machine
dtctl virtual-machine deleteDelete a virtual machine
dtctl virtual-machine actionPerform a power/lifecycle action
dtctl virtual-machine attach-networkAttach a network interface
dtctl virtual-machine attach-new-volumeCreate and attach a new volume
dtctl virtual-machine attach-volumeAttach an existing volume
dtctl virtual-machine consoleGet a VM's remote console URL
dtctl virtual-machine detach-networkDetach a network interface
dtctl virtual-machine detach-volumeDetach a volume
dtctl virtual-machine historyShow a VM's action history
dtctl virtual-machine history-detailsShow one history entry
dtctl virtual-machine hot-plugEnable or disable hot-plug
dtctl virtual-machine networksList a VM's network interfaces
dtctl virtual-machine volumesList a VM's attached volumes

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text