> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# nebius vpc allocation create

## Name

`nebius vpc allocation create`

Creates a new allocation with the specified configuration.

## Synopsis

```
nebius vpc allocation create
  --ipv4-private-cidr
  --ipv4-private-pool-id
  --ipv4-private-subnet-id
  --ipv4-public-cidr
  --ipv4-public-pool-id
  --ipv4-public-subnet-id
  --labels
  --name
  --parent-id [required]
  --resource-version
  --async
  -i, --interactive
```

## Examples

**Create a public IP allocation**

```
nebius vpc allocation create \
  --ipv4-public-subnet-id <subnet_ID> \
  --name <allocation_name>
```

**Create a private IP allocation**

```
nebius vpc allocation create \
  --name private_allocation \
  --ipv4-private-subnet-id <subnet_ID> \
  --ipv4-private-cidr <IP_address>
```

## Options

`--ipv4-private-cidr` (string)

A single IP address (e.g 10.1.2.1), a CIDR block (e.g., "10.1.2.0/24") or\

a prefix length (e.g., "/32").\

If prefix length is specified, the CIDR block will be auto-allocated from\

the available space in the pool or subnet.\

If not specified, defaults to "/32".

Mutually exclusive with: `--ipv4-public-cidr`, `--ipv4-public-pool-id`, `--ipv4-public-subnet-id`.

`--ipv4-private-pool-id` (string)

ID of the pool that allocation will receive its IP address from.

Mutually exclusive with: `--ipv4-private-subnet-id`, `--ipv4-public-cidr`, `--ipv4-public-pool-id`, `--ipv4-public-subnet-id`.

`--ipv4-private-subnet-id` (string)

ID of the subnet that allocation will be associated with.\

IP address of the allocation must be within a CIDR block associated\

with this subnet.\

In order to assign an allocation to a resource (i.e. network interface)\

both must be associated with the same subnet.

Mutually exclusive with: `--ipv4-private-pool-id`, `--ipv4-public-cidr`, `--ipv4-public-pool-id`, `--ipv4-public-subnet-id`.

`--ipv4-public-cidr` (string)

A single IP address (e.g. 1.2.3.4), a CIDR block (e.g., "1.2.3.4/24")\

or a prefix length (e.g., "/32").\

If prefix length is specified, the CIDR block will be auto-allocated from\

the available space in the pool or subnet.\

If not specified, defaults to "/32".

Mutually exclusive with: `--ipv4-private-cidr`, `--ipv4-private-pool-id`, `--ipv4-private-subnet-id`.

`--ipv4-public-pool-id` (string)

ID of the pool that allocation will receive its IP address from.

Mutually exclusive with: `--ipv4-private-cidr`, `--ipv4-private-pool-id`, `--ipv4-private-subnet-id`, `--ipv4-public-subnet-id`.

`--ipv4-public-subnet-id` (string)

ID of the subnet that allocation will be associated with.\

IP address of the allocation must be within a CIDR block associated with\

this subnet.\

Assigning an allocation to a resource (i.e. network interface) requires\

both to be associated with the same subnet.

Mutually exclusive with: `--ipv4-private-cidr`, `--ipv4-private-pool-id`, `--ipv4-private-subnet-id`, `--ipv4-public-pool-id`.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {                // [required]
>                                // Metadata of the allocation.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {           // [required]
>                       // Specification of the allocation.
>     "ipv4_private": {      // Cannot be set together with: ipv4_public
>       "cidr": string,      // [immutable]
>                            // A single IP address (e.g 10.1.2.1), a CIDR block (e.g., "10.1.2.0/24") or
>                            // a prefix length (e.g., "/32").
>                            // If prefix length is specified, the CIDR block will be auto-allocated from
>                            // the available space in the pool or subnet.
>                            // If not specified, defaults to "/32".
>       "pool_id": string,   // Cannot be set together with: subnet_id
>                            // ID of the pool that allocation will receive its IP address from.
>       "subnet_id": string  // Cannot be set together with: pool_id
>                            // ID of the subnet that allocation will be associated with.
>                            // IP address of the allocation must be within a CIDR block associated
>                            // with this subnet.
>                            // In order to assign an allocation to a resource (i.e. network interface)
>                            // both must be associated with the same subnet.
>     },
>     "ipv4_public": {       // Cannot be set together with: ipv4_private
>       "cidr": string,      // [immutable]
>                            // A single IP address (e.g. 1.2.3.4), a CIDR block (e.g., "1.2.3.4/24")
>                            // or a prefix length (e.g., "/32").
>                            // If prefix length is specified, the CIDR block will be auto-allocated from
>                            // the available space in the pool or subnet.
>                            // If not specified, defaults to "/32".
>       "pool_id": string,   // Cannot be set together with: subnet_id
>                            // ID of the pool that allocation will receive its IP address from.
>       "subnet_id": string  // Cannot be set together with: pool_id
>                            // ID of the subnet that allocation will be associated with.
>                            // IP address of the allocation must be within a CIDR block associated with
>                            // this subnet.
>                            // Assigning an allocation to a resource (i.e. network interface) requires
>                            // both to be associated with the same subnet.
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius vpc allocation create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {          
>     "ipv4_private": { 
>       "cidr": "",     
>       "pool_id": ""   
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
