---
title: "Lists all VPC firewall rules in the project and returns their details."
method: GET
path: "/projects/{project_id}/networking/vpc-firewall-rules"
tags: ["VPC Firewall Rules"]
---

# Lists all VPC firewall rules in the project and returns their details.

`GET /projects/{project_id}/networking/vpc-firewall-rules`

## Path parameters

- `project_id` string, required

## Response `200`

- ListVPCFirewallRulesResponseV1
  - `items` VPCFirewallRule[], required
    - `action` 'allow' | 'deny', required — Action applied to traffic that matches the rule: allow or deny.
    - `destination_ports` string[], required — Destination ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080).
    - `destinations` FirewallRuleObject[], required — Destinations the rule matches, given as CIDR blocks or resource IDs.
      - `cidr` string — CIDR block, or an IP address that is converted to a CIDR. Mutually exclusive with resource_id.
      - `resource_id` string — ID of a VPC network, subnet, or VM. Mutually exclusive with cidr.
    - `direction` 'ingress' | 'egress', required — Direction of traffic the rule applies to: ingress (inbound) or egress (outbound).
    - `id` string, required — ID of the firewall rule.
    - `name` string, required — Name of the firewall rule.
    - `protocols` string[], required — Network protocols the rule matches (for example, tcp, udp).
    - `source_ports` string[], required — Source ports the rule matches. Each entry is a single port or a port range (for example, 3000-8080).
    - `sources` FirewallRuleObject[], required — Sources the rule matches, given as CIDR blocks or resource IDs.
      - `cidr` string — CIDR block, or an IP address that is converted to a CIDR. Mutually exclusive with resource_id.
      - `resource_id` string — ID of a VPC network, subnet, or VM. Mutually exclusive with cidr.
    - `state` 'active' | 'inactive', required — State of the firewall rule: active or inactive.
    - `vpc_network_id` string, required — ID of the VPC network the rule belongs to.

## Other responses

- `401` — Error Authentication Failed
- `403` — Error Permissions
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
