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>",
"project_id": "<string>"
}'
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>"
}
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>",
"project_id": "<string>"
}'
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Firewall ID or name
The Ubicloud location/region
"eu-central-h1"
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
A Firewall Rule
The response is of type object
.