Prerequisites
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
- Install and configure the Nebius AI Cloud CLI.
- Make sure that you or the service account that you use is in a group that has at least the
editorrole within your tenant or project; for example, the defaulteditorsgroup. You can check this in the Administration → IAM section of the web console.
Creating a subnet without public IP addresses
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
-
Choose a network that has at least one private pool. You can get information about available networks by using the following command:
In the output, check the
metadata.spec.ipv4_private_poolsparameter to determine whether a network has private pools. Save the ID of the required network for the next command. -
Create a subnet that doesn’t use the network’s public pools, and save the subnet’s ID to an environment variable:
In this command, specify the subnet name and the copied network ID.
-
To check that public addresses are disabled in this subnet, try to create an allocation of a public IP address in this subnet:
This command returns an error, indicating that the subnet doesn’t support public allocations. This is expected and confirms that the subnet is configured correctly.
Disabling public addresses only blocks inbound traffic from the internet. Resources in the subnet can still send outbound (egress) traffic to the internet through the default egress gateway.