POST
/
project
/
{project_id}
/
location
/
{location}
/
firewall
/
_
{firewall_id}
/
attach-subnet
curl --request POST \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/firewall/_{firewall_id}/attach-subnet \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "private_subnet_id": "<string>"
}'
{
  "description": "<string>",
  "firewall_rules": [
    {
      "cidr": "<string>",
      "id": "fraz0q3vbrpa7pkg7zbmah9csn",
      "port_range": "<string>"
    }
  ],
  "id": "fwfg7td83em22qfw9pq5xyfqb7",
  "location": "<string>",
  "name": "<string>",
  "private_subnets": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

project_id
string
required

ID of the project

Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

firewall_id
string
required

ID of the firewall

Example:

"fwfg7td83em22qfw9pq5xyfqb7"

Body

application/json
private_subnet_id
string
required

Private subnet id to attach

Response

200
application/json
A Firewall (detailed)
description
string
required

Description of the firewall

firewall_rules
object[]
required

List of firewall rules

id
string
required

ID of the firewall

Example:

"fwfg7td83em22qfw9pq5xyfqb7"

location
string
required

Location of the the firewall

name
string
required

Name of the firewall

private_subnets
string[]
required

List of private subnets