POST
/
project
/
{project_id}
/
location
/
{location}
/
private-subnet
/
{private_subnet_reference}
/
connect
Connect private subnet to another private subnet
curl --request POST \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/private-subnet/{private_subnet_reference}/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "connected-subnet-id": "<string>"
}'
{
  "firewalls": [
    {
      "description": "<string>",
      "firewall_rules": [
        {
          "cidr": "<string>",
          "id": "fraz0q3vbrpa7pkg7zbmah9csn",
          "port_range": "<string>"
        }
      ],
      "id": "fwfg7td83em22qfw9pq5xyfqb7",
      "location": "<string>",
      "name": "<string>"
    }
  ],
  "id": "ps3dngttwvje2kmr2sn8x12x4r",
  "location": "<string>",
  "name": "<string>",
  "net4": "<string>",
  "net6": "<string>",
  "nics": [
    {
      "id": "<string>",
      "name": "<string>",
      "private_ipv4": "127.0.0.1",
      "private_ipv6": "2606:4700:3108::ac42:2835",
      "vm_name": "<string>"
    }
  ],
  "state": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

private_subnet_reference
string
required

Private subnet ID or name

Body

application/json
connected-subnet-id
string

Response

A Private Subnet

firewalls
object[]
required
id
string
required

ID of the subnet

Example:

"ps3dngttwvje2kmr2sn8x12x4r"

location
string
required

Location of the subnet

name
string
required

Name of the subnet

net4
string
required

IPv4 CIDR of the subnet

net6
string
required

IPv6 CIDR of the subnet

nics
object[]
required

List of NICs

state
string
required

State of the subnet