cURL
curl --request POST \ --url https://api.ubicloud.com/project/{project_id}/location/{location}/firewall/{firewall_reference}/firewall-rule \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "cidr": "<string>", "firewall_id": "<string>", "port_range": "<string>", "description": "<string>", "project_id": "<string>" } '
{ "cidr": "<string>", "id": "fraz0q3vbrpa7pkg7zbmah9csn", "port_range": "<string>", "description": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Firewall ID or name Resource ID or name
The Ubicloud location/region
"eu-central-h1"
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
CIDR or private subnet id or name to allow
Port range to allow
Description to use for the firewall rule
A Firewall Rule or array of them
CIDR of the firewall rule
ID of the firewall rule
"fraz0q3vbrpa7pkg7zbmah9csn"
Port range of the firewall rule
Description of the firewall rule