Public allocations use public IPv4 addresses from public pools in Virtual Networks. The available public IPv4 range depends on the project region. This page explains how to get the public IPv4 CIDR blocks that are available for allocations in a project.
In the web console, go to Networking → Virtual networks.
If you have access to multiple projects, expand the list of projects and select the required project.
Click Actions → View public CIDR blocks.The Public CIDR blocks window shows the public IPv4 CIDR blocks that are available for allocations in the selected project and region.
Get the ID of the default network in the required project.
Get the ID of the default network’s public pool:
nebius vpc network get --id <network_ID>
The pool ID is specified in the spec.ipv4_public_pools.pools.id parameter of the output.If the default network contains several public pools, a public address can be allocated from any of these pools.
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.
Get the ID of the default network in the required project.
Set Id to the network ID. The pool ID is specified in Spec.Ipv4PublicPools.Pools[].Id of the response.If the default network contains several public pools, a public address can be allocated from any of these pools.
Set Id to the pool ID. The Status.Cidrs field of the response contains 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.
Get the ID of the default network in the required project.
Set id to the network ID. The pool ID is specified in spec.ipv4_public_pools.pools[].id of the response.If the default network contains several public pools, a public address can be allocated from any of these pools.
Set id to the pool ID. The status.cidrs field of the response contains 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.
Get the ID of the default network in the required project.
Set id to the network ID. The pool ID is specified in spec.ipv4PublicPools.pools[].id of the response.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:
const poolService = new PoolService(sdk);const pool = await poolService.get( GetPoolRequest.create({ id: "<pool_ID>", }),);console.log(pool);
Set id to the pool ID. The status.cidrs field of the response contains 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.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.