Skip to main content
PATCH
/
project
/
{project_id}
/
location
/
{location}
/
firewall
/
{firewall_reference}
/
firewall-rule
/
{firewall_rule_id}
Modify a firewall rule
curl --request PATCH \
  --url https://api.ubicloud.com/project/{project_id}/location/{location}/firewall/{firewall_reference}/firewall-rule/{firewall_rule_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cidr": "<string>",
  "port_range": "<string>",
  "description": "<string>"
}'
{
  "cidr": "<string>",
  "id": "fraz0q3vbrpa7pkg7zbmah9csn",
  "port_range": "<string>",
  "description": "<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_reference
string
required

Firewall ID or name

firewall_rule_id
string
required

ID of the firewall rule

Example:

"fraz0q3vbrpa7pkg7zbmah9csn"

Body

application/json
  • Option 1
  • Option 2
  • Option 3
cidr
string
required

CIDR of the firewall rule

port_range
string

Port range of the firewall rule

description
string

Description of the firewall rule

Response

A Firewall Rule

cidr
string
required

CIDR of the firewall rule

id
string
required

ID of the firewall rule

Example:

"fraz0q3vbrpa7pkg7zbmah9csn"

port_range
string
required

Port range of the firewall rule

description
string
required

Description of the firewall rule