---
title: "Update firewall rules"
method: PATCH
path: "/security/firewall"
tags: ["Firewall"]
---

# Update firewall rules

`PATCH /security/firewall`

Updates firewall rules. Providing an already existing CIDR will overwrite the current rule. If provided CIDR does not yet exist, it is added upon the other rules. To delete a specific rule, provide the CIDR with empty services and ports.

**Note:** This action is asynchronous. The request will return immediately, the process to configure the firewall runs in the background.

## Request body

- object[]
  - `ip` string, required — A CIDR for which to open the ports for
  - `services` string[] — Which services to open up for in the firewall
  - `ports` integer[] — Which ports to open in the firewall

## Response `200`

Firewall rules update initiated

## Other responses

- `400` — Request already in progress

---

[API](https://skmtc.net/cloudamqp/apis/cloudamqp-instance-api.md) · [All operations](https://skmtc.net/cloudamqp/apis/cloudamqp-instance-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudamqp/cloudamqp-instance-api/versions/3f6148113861/schema)
