---
title: "Update firewall"
method: PUT
path: "/v1/firewalls/{id}"
tags: ["firewalls"]
---

# Update firewall

`PUT /v1/firewalls/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- FirewallUpdateReq
  - `description` string
  - `inboundRules` union[], required
    - union
      - FirewallRuleWithPortRange
        - `description` string
        - `portRange` PortRange, required
          - `max` integer, required
          - `min` integer, required
        - `protocol` 'tcp' | 'udp', required
        - `remoteIpPrefix` string, required — CIDR notation
      - FirewallRuleWithoutPortRange
        - `description` string
        - `protocol` 'icmp' | 'any', required
        - `remoteIpPrefix` string, required — CIDR notation
  - `name` string, required

## Response `200`

successful

- FirewallResp
  - `description` string
  - `inboundRules` union[], required
    - union
      - FirewallRuleWithPortRange
        - `description` string
        - `portRange` PortRange, required
          - `max` integer, required
          - `min` integer, required
        - `protocol` 'tcp' | 'udp', required
        - `remoteIpPrefix` string, required — CIDR notation
      - FirewallRuleWithoutPortRange
        - `description` string
        - `protocol` 'icmp' | 'any', required
        - `remoteIpPrefix` string, required — CIDR notation
  - `name` string, required
  - `idc` string, required
  - `assoInstances` string[]
  - `assoContainers` string[]
  - `id` string, uuid
  - `isPreset` boolean — Whether this is a preset firewall (cannot be deleted or have rules modified)
  - `orgId` string, uuid
  - `status` 'active' | 'building' | 'error'

## Other responses

- `400` — bad request
- `401` — Authentication information is missing or invalid
- `404` — The specified resource was not found
- `500` — Internal Server Error
- `503` — a dependent service is unavailable

---

[API](https://skmtc.net/gmicloud/apis/cluster-engine-api.md) · [All operations](https://skmtc.net/gmicloud/apis/cluster-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmicloud/cluster-engine-api/versions/bcbab016469f/schema)
