Detaching a public IP address from a VM
If you previously attached a public IP address to a VM, you can detach it.
Management console
CLI
- In the management console
, select the folder the VM belongs to. - Select Compute Cloud.
- Select the VM.
- Under Network interface, in the top-right corner, click
- In the window that opens, click Delete.
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To detach a public IP address from a VM, run the following CLI command:
ncp compute instance remove-one-to-one-nat
--id=<instance_ID>
--network-interface-index=<instance_network_interface_index>
Where:
id
: VM ID. You can get a list of instance IDs in a folder using the CLI commandncp compute instance list
.network-interface-index
: VM's network interface index. By default:0
.
For more information about the ncp compute instance remove-one-to-one-nat
command, see the CLI reference.