v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Routers

Attach subnet to router

Attach a subnet to an existing router.

post/cloud/v1/routers/{project_id}/{region_id}/{router_id}/attach

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

router_idstring uuid4 required

Router ID

Example:ccd5b925-e35c-4611-a511-67ab503104c8

Router ID

Request body

ip_addressstring ipvanyaddress

IP address to assign for router's interface, if not specified, address will be selected automatically

subnet_idstring uuid4 required

Subnet ID on which router interface will be created

Response

OK

created_atstring date-time required

Datetime when the router was created

creator_task_idstring uuid4 nullable

Task that created this entity

distributedboolean required

Whether the router is distributed or centralized.

idstring uuid4 required

Router ID

namestring required

Router name

project_idinteger required

Project ID

regionstring required

Region name

region_idinteger required

Region ID

statusstring required

Status of the router.

task_idstring uuid4 nullable required

The UUID of the active task that currently holds a lock on the resource. This lock prevents concurrent modifications to ensure consistency. If null, the resource is not locked.

updated_atstring date-time required

Datetime when the router was last updated

Example response

{
  "distributed": true,
  "external_gateway_info": {
    "enable_snat": true,
    "external_fixed_ips": [
      {
        "ip_address": "172.24.4.6",
        "subnet_id": "b930d7f6-ceb7-40a0-8b81-a425dd994ccf"
      }
    ],
    "network_id": "ae34051f-aa6c-4c75-abf5-50dc9ac99ef3"
  },
  "interfaces": [
    {
      "ip_assignments": [
        {
          "ip_address": "192.168.123.20",
          "subnet_id": "351b0dd7-ca09-431c-be53-935db3785067"
        },
        {
          "ip_address": "192.168.120.16",
          "subnet_id": "0a641ef8-62dc-4146-91e5-6ab4b464df6d"
        }
      ],
      "mac_address": "00:16:3e:f2:87:16",
      "network_id": "bc688791-f1b0-44eb-97d4-07697294b1e1",
      "port_id": "1f0ca628-a73b-42c0-bdac-7b10d023e097"
    }
  ],
  "project_id": 1337,
  "region": "Luxembourg 1",
  "region_id": 7,
  "routes": [
    {
      "destination": "10.0.3.0/24",
      "nexthop": "10.0.0.13"
    }
  ]
}