---
title: "Create a new firewall"
method: POST
path: "/project/{project_id}/firewall"
tags: ["Firewall"]
---

# Create a new firewall

`POST /project/{project_id}/firewall`

## Request body

- object
  - `description` string — Description of the firewall
  - `name` string, required — Name of the firewall

## Response `200`

A Firewall

- Firewall
  - `description` string, required — Description of the firewall
  - `firewall_rules` FirewallRule[], required — List of firewall rules
    - `cidr` string, required — CIDR of the firewall rule
    - `id` string, required — ID of the firewall rule
    - `port_range` string, required — Port range of the firewall rule
  - `id` string, required — ID of the firewall
  - `location` string, required — Location of the the firewall
  - `name` string, required — Name of the firewall

## Other responses

- `default` — An error response

---

[API](https://skmtc.dev/ubicloud/apis/clover-api.md) · [All operations](https://skmtc.dev/ubicloud/apis/clover-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ubicloud/clover-api/revisions/b25ecb702fca/schema)
