Prerequisites
- Install and configure the Nebius AI Cloud CLI.
- Check that your project ID is saved in the Nebius AI Cloud CLI profile configuration:
How to get public IPv4 ranges
- Get the ID of the default network in the required project.
-
Get the ID of the default network’s public pool:
The pool ID is specified in the
spec.ipv4_public_pools.pools.idparameter of the output. If the default network contains several public pools, a public address can be allocated from any of these pools. -
Get the CIDR blocks of the public pool:
The output looks like this:The output contains the following parameters:
metadata.id: The ID of the public pool.metadata.parent_id: The project ID.metadata.name: The name of the public pool.spec.source_pool_id: The ID of the source pool for this public pool.spec.version: The IP version of the pool.spec.visibility: The pool visibility.status.state: The current state of the public pool.status.cidrs: The public IPv4 CIDR blocks that are available for allocations in the project. These addresses form the public IPv4 range from which Virtual Networks allocates public addresses.status.scope_id: The ID of the scope associated with the public pool.status.assignment.networks: The IDs of the networks that use this public pool.